Open FrancescaRodricks opened 1 week ago
Hi @FrancescaRodricks ,
Thank you for taking time to report this issue!
Please share the debug log to help us investigate.
Here's how:
TF_LOG=DEBUG
TF_LOG_PATH=./terraform.log
terraform plan
command and the logs will be stored in the terraform.log
file.
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