Problem
While configuring Azure Databricks using Databricks provider, the following errors occur intermittently/randomly.
terraform apply: │ Error: invalid character '<' looking for beginning of value
terraform apply: │ <!doctype html><html><head><meta... (487 more bytes)
terraform apply: │
As well as authentication errors.
{"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
- DNS
- Private link / Private endpoint
Solution:
- Review DNS service for intermittent DNS issues. If using agents, please verify the environment where the agent is executing runs.
Outcome
After resolving the DNS issue, the run should complete successfully each time the job is executed.
Additional Information