-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"--cache-duration" on "az afd rule create" not working as expected #4635
Comments
@umuel8462 |
@umuel8462, the Can you kindly answer two questions?
In the interim, I've opened a GitHub issue for the ML engineering team. You can see that here: Github issue 29970. |
Hi @dbradish-microsoft, here is the output with the --debug parameter:
|
Type of issue
Code doesn't work
Feedback
I tried executing this command:
az afd rule create --resource-group xxxxxx --profile-name xxxxxxx --rule-set-name xxxxxxx --name xxxxxx --order 1 --match-processing-behavior Continue --match-variable RequestUri --operator BeginsWith --match-values 'xxxxxxxx' --negate-condition false --action-name RouteConfigurationOverride --cache-behavior OverrideAlways --cache-duration '365.23:59:59' --enable-compression true --query-string-caching-behavior IgnoreQueryString --origin-group '/subscriptions/xxxxxxx/resourcegroups/rg-ledger-germanywest-prod/providers/Microsoft.Cdn/profiles/frontdoor-xxxxxxx/origingroups/xxxxxxx' --forwarding-protocol MatchRequest
According to the docs, --cache-duration is in the valid format ([d.]hh:mm:ss)
Still, the following error is printed:
InvalidArgumentValue: --cache-duration: Unable to parse: '365.23:59:59'. Expected format: Format: time (hh:mm:ss.xxxxxx)
Page URL
https://learn.microsoft.com/en-us/cli/azure/afd/rule?view=azure-cli-latest
Content source URL
https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/afd/rule.yml
Author
@dbradish-microsoft
Document Id
d4e72781-eadc-1f91-46cc-f8f40bb0d7ae
The text was updated successfully, but these errors were encountered: