你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzProviderOperation
使用 Azure RBAC 获取作为安全对象的 Azure 资源提供程序的操作。
语法
Get-AzProviderOperation
[[-OperationSearchString] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzProviderOperation 获取 Azure 资源提供程序公开的操作。 操作可以组合在 Azure RBAC 中创建自定义角色。 该命令采用操作搜索字符串(具有可能的 wild卡() 字符(s)作为输入,该字符串确定要显示的操作详细信息。使用 Get-AzProviderOperation * 获取所有 Azure 资源提供程序的所有操作。使用 Get-AzProviderOperation Microsoft.Compute/ 获取 Microsoft.Compute 资源提供程序的所有操作。
示例
示例 1:获取所有提供程序的所有操作
Get-AzProviderOperation *
示例 2:获取特定资源提供程序的操作
Get-AzProviderOperation Microsoft.Insights/*
示例 3:获取可在虚拟机上执行的所有操作
Get-AzProviderOperation */virtualMachines/*
参数
-DefaultProfile
用于与 azure 通信的凭据、帐户、租户和订阅
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OperationSearchString
操作搜索字符串(可能为 wild卡 \ 字符)
Type: | String |
Aliases: | Name |
Position: | 0 |
Default value: | "*" |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
输入
输出
备注
关键字:azure, azurerm, arm, 资源, 管理, 经理, 资源组, 模板, 部署
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈