Problem
When configuring Azure Databricks with the Databricks provider, the following errors may occur intermittently:
terraform apply: │ Error: invalid character '<' looking for beginning of value
terraform apply: │ <!doctype html><html><head><meta... (487 more bytes)
terraform apply: │
{"error":{"code":"Unauthorized","message":"AAA10000: Request is missing a Bearer or PoP token."}}: timestamp=2023-03-02
2023-02-02T22:17:45.061Z [DEBUG] provider.terraform-provider-azurerm_v2.99.0_x5: AzureRM Request:
POST /3dddd3d3-094d-4006-9849-0d11d61f4ddd/oauth2/token?api-version=1.0 HTTP/1.1
Host: login.microsoftonline.com
User-Agent: Go/go1.17.5 (amd64-linux) go-autorest/adal/v1.0.0
Content-Length: 170
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip
Prerequisites
- Azure
- Databricks Provider
Cause
- Intermittent DNS issues
- Private Link/Private Endpoint misconfigurations
Solution:
- Investigate your DNS service for intermittent issues.
- If using agents, ensure the environment where the agent executes is correctly configured.
Outcome
Resolving DNS issues should allow the configuration to complete successfully each time.
Additional Information