Get-AzProviderOperation
Retrieves the operations that a resource provider can perform.
Syntax
Get-AzProviderOperation [[-Operation] String[]] [[-ProviderNamespace] String[]] [-Force] [-AllowWildcard] [-DefaultProfile] [<CommonParameters>]
Description
The Get-AzProviderOperation cmdlet retrieves the operations that a resource provider can perform. This cmdlet helps you discover the available actions for different Azure services.
Parameters
Required
Specifies the operation to retrieve. You can use wildcards.
Specifies the namespace of the resource provider. You can use wildcards.
Optional
Do not prompt for confirmation.
Allow wildcard characters in parameter values. This parameter is only valid for string parameters.
The credentials, account, tenant, and subscription that are used for communication with Azure.
Examples
Example 1: Get all operations for a specific provider
Get-AzProviderOperation -ProviderNamespace "Microsoft.Compute"
This command retrieves all operations available for the Microsoft.Compute resource provider.
Example 2: Get specific operations for a provider using wildcards
Get-AzProviderOperation -ProviderNamespace "Microsoft.Storage" -Operation "StorageAccounts/read"
This command retrieves the 'read' operation for all storage accounts under the Microsoft.Storage provider.
Example 3: Get all operations starting with "VirtualMachines"
Get-AzProviderOperation -ProviderNamespace "Microsoft.Compute" -Operation "VirtualMachines/*"
This command retrieves all operations related to Virtual Machines from the Microsoft.Compute provider.