An Azure service that provides a cloud content delivery network with threat protection.
"az afd rule create" is not working properly
Hello,
Recently, the Azure CLI CDN functionality was migrated, starting with CLI version 2.88.0. As a result, some of the parameters previously used in our pipeline are no longer available, causing the pipeline to fail.
When I check the new documentation I got this
Old code:
az afd rule create \
--name 'BlobContainer$(ticketID)' \
--resource-group $(resourceGroupName) \
--profile-name $(afdProfileName) \
--action-name 'UrlRewrite' \
--source-pattern / \
--destination '/web-com-staticassets/' \
--preserve-unmatched-path true \
--rule-set-name 'staticassetsstorage$(ticketID)'
Now the options are moved inside --actions parameter. But it is not working . Please check the below screenshot.
Direct link of Azure CLI az afd rule documentation: https://learn.microsoft.com/en-us/cli/azure/afd/rule?view=azure-cli-latest#az-afd-rule-create
What is this Try "??" to show more?
How can I achieve my original requirement? please refer code block "Old code"