Type of issue
Code doesn't work
Reference command name
as per SO post https://stackoverflow.com/questions/79599403/az-cli-query-filter-for-support-tickets/79599404#79599404
All filters and queries are case sensitive, the guidance has the wrong case.
az support in-subscription tickets --help
shows the following text:
> list : Lists all the support tickets for an Azure subscription. You can also filter the
> support tickets by Status, CreatedDate, ServiceId, and ProblemClassificationId
> using the $filter parameter. Output will be a paged result with nextLink, using which
> you can retrieve the next set of support tickets.
az support in-subscription tickets list --help
shows the following text:
> List support tickets created on or after a certain date and in open state for a subscription
> az support in-subscription tickets list --filter "CreatedDate ge 2024-01-01T22:08:51Z and Status eq 'Open'"
The filter that actually works uses lowercase 'createdDate':
az support in-subscription tickets list --filter "createdDate ge 2025-02-01"
Feedback
guidance and code samples should have the correct case and not extra underscores in front of property names
Page URL
https://learn.microsoft.com/en-us/cli/azure/support/in-subscription/tickets?view=azure-cli-latest#az-support-in-subscription-tickets-list
Content source URL
No response
Author
No response
Document Id
No response
Type of issue
Code doesn't work
Reference command name
as per SO post https://stackoverflow.com/questions/79599403/az-cli-query-filter-for-support-tickets/79599404#79599404
All filters and queries are case sensitive, the guidance has the wrong case.
az support in-subscription tickets --helpshows the following text:
> list : Lists all the support tickets for an Azure subscription. You can also filter the
> support tickets by Status, CreatedDate, ServiceId, and ProblemClassificationId
> using the $filter parameter. Output will be a paged result with nextLink, using which
> you can retrieve the next set of support tickets.
az support in-subscription tickets list --helpshows the following text:
> List support tickets created on or after a certain date and in open state for a subscription
> az support in-subscription tickets list --filter "CreatedDate ge 2024-01-01T22:08:51Z and Status eq 'Open'"
The filter that actually works uses lowercase 'createdDate':
az support in-subscription tickets list --filter "createdDate ge 2025-02-01"Feedback
guidance and code samples should have the correct case and not extra underscores in front of property names
Page URL
https://learn.microsoft.com/en-us/cli/azure/support/in-subscription/tickets?view=azure-cli-latest#az-support-in-subscription-tickets-list
Content source URL
No response
Author
No response
Document Id
No response