Edit

Share via


Get-AzProviderOperation

Gets the operations for an Azure resource provider that are securable using Azure RBAC.

Syntax

Default (Default)

Get-AzProviderOperation
    [[-OperationSearchString] <String>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The Get-AzProviderOperation gets the operations exposed by Azure resource providers. Operations can be composed to create custom roles in Azure RBAC. The command takes as input an operation search string (with possible wildcard() character(s)) which determines the operations details to display. Use Get-AzProviderOperation * to get all operations for all Azure resource providers. Use Get-AzProviderOperation Microsoft.Compute/ to get all operations of Microsoft.Compute resource provider.

Examples

Example 1: Get all actions for all providers

Get-AzProviderOperation *

Example 2: Get actions for a particular resource provider

Get-AzProviderOperation Microsoft.Insights/*

Example 3: Get all actions that can be performed on virtual machines

Get-AzProviderOperation */virtualMachines/*

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-OperationSearchString

The operation search string (with possible wildcard (*) characters)

Parameter properties

Type:String
Default value:*
Supports wildcards:False
DontShow:False
Aliases:Name

Parameter sets

(All)
Position:0
Mandatory:False
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Outputs

PSResourceProviderOperation

Notes

Keywords: azure, azurerm, arm, resource, management, manager, resource, group, template, deployment