@MCCZ Thanks for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.
Based on the shared information, I understand that you are facing issue while trying to query the event grid subscription of custom topic using PowerShell.
- If you Event Subscription is not part domain then use the parameter
-scope
to get the event grid subscription details of a custom topic.
Get-AzEventGridSubscription -Name <SubscriptionName> -Scope "<EventGridTopicResourceId>"
- Portal allows you to create an Event subscription for a custom topic which is part of custom domain in Event Grid.
If you want to get that event subscription properties, then you need to pass -DomainName
parameter as it is required parameter as shown below.
Hope this helps, let me know if you have any further questions on this.