共用方式為


Get-AzOperationalInsightsPurgeWorkspaceStatus

取得進行中清除作業的狀態。

語法

Get-AzOperationalInsightsPurgeWorkspaceStatus
   [-ResourceGroupName] <String>
   [-WorkspaceName] <String>
   [-PurgeId] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

取得進行中清除作業的狀態。

範例

範例 1

Get-AzOperationalInsightsPurgeWorkspaceStatus -ResourceGroupName "ContosoResourceGroup" -WorkspaceName "MyWorkspace" -PurgeId "cd944bc7-ba11-447e-910c-c6393ac020a9"

此命令會依資源組名、工作區名稱和從 New-AzOperationalInsightsPurgeWorkspace 命令傳回的清除標識符,取得進行中清除作業的狀態。

參數

-DefaultProfile

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

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-PurgeId

在清除狀態要求中,這是傳回其狀態之作業的標識碼。

類型:String
Position:2
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ResourceGroupName

資源組名。

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-WorkspaceName

包含數據表的工作區名稱。

類型:String
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

輸入

String

輸出

PSWorkspacePurgeStatusResponse