Running the following command
Get-AzEventGridSubscription -ResourceGroup $ResourceGroup -TopicName $EventGridTopic
in Az PowerShell 12.x, the command results in
cmdlet Get-AzEventGridSubscription at command pipeline position 1
Supply values for the following parameters:
DomainName:
Get-AzEventGridSubscription: Cannot bind argument to parameter 'DomainName' because it is an empty string.
even it works in Az PowerShell 11.x.
As No event grid domains to display
shown in the Azure Portal and an empty string is not allowed, I have no idea what value to provide. I also failed to find how to migrate the call to the newer version (there is neither any guidance in the cmdlet docs, Release Notes, Migration Guide nor Upcoming Breaking Changes).
What is the correct way to list all subscriptions in 12.x?
The following works:
Get-AzEventGridSubscription `
-ResourceGroup $ResourceGroupName `
-ProviderNamespace "Microsoft.EventGrid" `
-ResourceTypeName "topics" `
-ResourceName $EventGridTopicName `
-Top 100