You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And had the following error when trying to create azapi_resource.
ChainedTokenCredential: failed to
│ acquire a token.
│ Attempted credentials:
│ managed identity timed out
│ AzureCLICredential: Azure CLI not found on path
So i tried to set managed identity based auth to false using the use_msi = false
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: Failed to obtain a credential.
│
│ with provider["registry.terraform.io/azure/azapi"],
│ on main.tf line 115, in provider "azapi":
│ 115: provider "azapi" {
│
│ no credentials were successfully initialized
╵
Which indicates that service principal credentials are not being used.
Expected Behaviour - The provider should use the service principal rather that a managed identity
The text was updated successfully, but these errors were encountered:
https://github.com/Azure/terraform-provider-azapi/blob/main/docs/guides/service_principal_client_certificate.md#configuring-the-service-principal-in-terraform
I tried to run a similar setup https://github.com/thomast1906/thomasthorntoncloud-examples/blob/master/Terraform-OpenAI-ContentFilter-AzAPI/terraform/main.tf#L38 of code with provider version as below.
Provider version used -
azure/azapi v1.14.0...
And had the following error when trying to create
azapi_resource
.So i tried to set managed identity based auth to false using the
use_msi = false
And ran into the following error
Which indicates that service principal credentials are not being used.
Expected Behaviour - The provider should use the service principal rather that a managed identity
The text was updated successfully, but these errors were encountered: