共用方式為


Get-AzureRmProviderOperation

取得使用 Azure RBAC 安全性實體的 Azure 資源提供者作業。

警告

自 2024 年 2 月 29 日起,AzureRM PowerShell 模組已正式淘汰。 建議使用者從 AzureRM 遷移至 Az PowerShell 模組,以確保持續支援和更新。

雖然 AzureRM 模組可能仍可運作,但不再維護或支援它,但會根據用戶的判斷權和風險放置任何繼續使用。 如需轉換至 Az 模組的指引,請參閱我們的 移轉資源

Syntax

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

Description

Get-AzureRmProviderOperation 會取得 Azure 資源提供者所公開的作業。 作業可以組成以在 Azure RBAC 中建立自定義角色。 此命令會接受作業搜尋字串的輸入(具有可能的通配符(s),以決定要顯示的作業詳細數據。使用 Get-AzureRmProviderOperation * 取得所有 Azure 資源提供者的所有作業。使用 Get-AzureRmProviderOperation Microsoft.Compute/ 取得 Microsoft.Compute 資源提供者的所有作業。

範例

取得所有提供者的所有動作

PS C:\> Get-AzureRmProviderOperation *

取得特定資源提供者的動作

PS C:\> Get-AzureRmProviderOperation Microsoft.Insights/*

取得可在虛擬機上執行的所有動作

PS C:\> Get-AzureRmProviderOperation */virtualMachines/*

參數

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶

類型:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
Accept pipeline input:False
Accept wildcard characters:False

-OperationSearchString

作業搜尋字串 (具有可能的通配符 \ 字元)

類型:String
Aliases:Name
Position:0
預設值:"*"
必要:False
Accept pipeline input:True
Accept wildcard characters:False

輸入

String

參數:OperationSearchString (ByValue)

輸出

PSResourceProviderOperation

備註

關鍵詞:azure, azurerm, arm, 資源, 管理, 管理員, 資源, 群組, 範本, 部署