u/iamramanavenkat

"az afd rule create" is not working properly - after v2.88.0
▲ 4 r/azuredevops+1 crossposts

"az afd rule create" is not working properly - after v2.88.0

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

https://preview.redd.it/uh6hkdai24ih1.png?width=695&format=png&auto=webp&s=0f38ffd0c0e3361ff339daac410ea13abe5eca54

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.

https://preview.redd.it/3ut7h85p24ih1.png?width=1097&format=png&auto=webp&s=f4cc78444a22c1b5a205f7e2b29f270b32dc40ca

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?

https://preview.redd.it/kreyzkzp24ih1.png?width=698&format=png&auto=webp&s=7d539e1c7c3d6b08368c473c35e93b881d4bbe13

How can I achieve my original requirement? please refer code block "Old code"

reddit.com
u/iamramanavenkat — 12 days ago