Automating App Service certificate domain verification #6005
|
We are trying to automate the creation of Azure App service certificates. We are able to create the certificate order and certificate using Bicep. Once the cert is created we need to add a txt record to the domain for verification. Is there a way to get the TXT record value corresponding to the created certificate by referring to any output values? In the current scenario, we copy the value manually from the portal, but we would like to get it using CLI. Can anyone help me with this? var rgname = 'test-rg' resource rg 'Microsoft.Resources/resourceGroups@2021-04-01' existing = { resource kv 'Microsoft.KeyVault/vaults@2021-10-01' existing = { resource cer 'Microsoft.CertificateRegistration/certificateOrders@2021-03-01' = { resource symbolicname 'Microsoft.CertificateRegistration/certificateOrders/certificates@2021-03-01' = { |
Replies: 1 comment 5 replies
|
I would like to test this, however I am not in a position to make any cert request at this time. Here are the API's.. https://docs.microsoft.com/en-us/rest/api/appservice/app-service-certificate-orders/retrieve-certificate-actions If you execute those, does it return the txt DNS record information? I guess the first one will return the DNS info that you need. Let me know and I will consider purchasing a new certificate to test this out. |
I would like to test this, however I am not in a position to make any cert request at this time.
Here are the API's..
https://docs.microsoft.com/en-us/rest/api/appservice/app-service-certificate-orders/retrieve-certificate-actions
https://docs.microsoft.com/en-us/rest/api/appservice/app-service-certificate-orders/verify-domain-ownership
If you execute those, does it return the txt DNS record information?
I guess the first one will return the DNS info that you need. Let me know and I will consider purchasing a new certificate to test this out.