File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
articles/governance/policy/concepts Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -578,8 +578,8 @@ Policy, use one of the following methods:
578
578
# Use Get-AzPolicyAlias to list available providers
579
579
Get-AzPolicyAlias -ListAvailable
580
580
581
- # Use Get-AzPolicyAlias to list aliases for a Namespace (such as Azure Automation -- Microsoft.Automation )
582
- Get-AzPolicyAlias -NamespaceMatch 'automation'
581
+ # Use Get-AzPolicyAlias to list aliases for a Namespace (such as Azure Compute -- Microsoft.Compute )
582
+ ( Get-AzPolicyAlias -NamespaceMatch 'compute').Aliases
583
583
```
584
584
585
585
- Azure CLI
@@ -590,8 +590,8 @@ Policy, use one of the following methods:
590
590
# List namespaces
591
591
az provider list --query [*].namespace
592
592
593
- # Get Azure Policy aliases for a specific Namespace (such as Azure Automation -- Microsoft.Automation )
594
- az provider show --namespace Microsoft.Automation --expand "resourceTypes/aliases" --query "resourceTypes[].aliases[].name"
593
+ # Get Azure Policy aliases for a specific Namespace (such as Azure Compute -- Microsoft.Compute )
594
+ az provider show --namespace Microsoft.Compute --expand "resourceTypes/aliases" --query "resourceTypes[].aliases[].name"
595
595
```
596
596
597
597
- REST API / ARMClient
You can’t perform that action at this time.
0 commit comments