Get-AzProviderOperation
获取可使用 Azure RBAC 保护的 Azure 资源提供程序的作。
语法
Default (默认值)
Get-AzProviderOperation
[[-OperationSearchString] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzProviderOperation 获取 Azure 资源提供程序公开的作。 作可以组合在 Azure RBAC 中创建自定义角色。 该命令采用作搜索字符串(具有可能的通配符(s)来确定要显示的作详细信息的输入。使用 Get-AzProviderOperation * 获取所有 Azure 资源提供程序的所有作。使用 Get-AzProviderOperation Microsoft.Compute/ 获取 Microsoft.Compute 资源提供程序的所有作。
示例
示例 1:获取所有提供程序的所有作
Get-AzProviderOperation *
示例 2:获取特定资源提供程序的作
Get-AzProviderOperation Microsoft.Insights/*
示例 3:获取可在虚拟机上执行的所有作
Get-AzProviderOperation */virtualMachines/*
参数
-DefaultProfile
用于与 azure 通信的凭据、帐户、租户和订阅
参数属性
| 类型: | IAzureContextContainer |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | AzContext, AzureRmContext, AzureCredential |
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-OperationSearchString
作搜索字符串(具有可能的通配符 \ 字符)
参数属性
| 类型: | String |
| 默认值: | * |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | Name |
参数集
(All)
| Position: | 0 |
| 必需: | False |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。
输入
String
输出
PSResourceProviderOperation
备注
关键字:azure, azurerm, arm, 资源, 管理, 经理, 资源组, 模板, 部署