Azure / Azure/autorest.powershell
Feature Request to take partial -Resource ID's as inputs
- Dominant language
- C#
- Stars
- 123
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
Get-AzEventHubNamespace would take in InputObject parameters of resource id `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}` as mentioned in Swagger.
However, for network rule sets of a namespace, Get-AzEventHubNetworkRuleSet the valid resource id would be `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets/default`. And any other resource Id would be invalid.
It would be good if we can have a directive that can get Get-AzEventHubNetworkRuleSet to work for both `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}` and `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets/default`. That way network rule sets cmdlets can be pipelined with namespace cmdlets as well, given that the second resource Id does not contain any identity specific information it is nothing but, ResourceId of namespace + "networkRuleSets/default"
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.