Azure / terraform-provider-azapi

Terraform provider for Azure Resource Manager Rest API
https://registry.terraform.io/providers/Azure/azapi/latest
Mozilla Public License 2.0
181 stars 48 forks source link

Error adding custom domain to ACA through azapi #380

Open AstridBro opened 10 months ago

AstridBro commented 10 months ago

I went into the step to set up the customDomain and it requires me to have a self-signed certificate. I did try and successfully generate a new certificate in Azure Key Vault and upload my own certificate into Azure Key Vault.

But when running the pipelines to deploy app environment, it shows this error as the image below

47b0a980-6e87-4fc0-b084-d3792ffd5c87

"Certificate must contain one private key".

I have tried uploading the certificate and adding the custom domain from the portal. And it works nicely. It works fine when using Azure CLI as well, but using azapi there might be a bug here.

ms-henglu commented 10 months ago

Hi @AstridBro ,

Thank you for taking time to report this issue!

Would you please share the azapi config? My guess is that there're some fields not configured correctly, you could compare the config with the resource created by Portal, you could check it's configuration by click the "JSON view" in the Portal.

Thanks!