In other Azure CLI scripts for web apps and containers, I’m able to extract the verification ID needed for creating managed custom domains with a command like this:
# Set Variable for Verification ID of the Container App
$ContainerAppVerificationID = Invoke-Expression "az containerapp show --name $ContainerApp --resource-group $ResourceGroup --query 'properties.customDomainVerificationId' --output tsv"
However, this same concept is not working for APIM resources. I’ve tried this below, but it does not work.
# Set Variable for Verification ID of APIM
$APIM_VERIFICATION_ID = Invoke-Expression "az apim show --name $APIM_NAME --resource-group $APIM_RESOURCE_GROUP --query 'properties.customDomainVerificationId' --output tsv"
Does anyone know how this variable can be set dynamically in CLI?
I have tried other commands that have worked on web apps and containers, the same results were not received.
Thank you
jobatthemall is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.