共用方式為


Remove-AzAutomationDscNodeConfiguration

從自動化中的 DSC 節點組態中移除元數據。

語法

Remove-AzAutomationDscNodeConfiguration
      [-Name] <String>
      [-Force]
      [-IgnoreNodeMappings]
      [-ResourceGroupName] <String>
      [-AutomationAccountName] <String>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Remove-AzAutomationDscNodeConfiguration Cmdlet 會從 Azure 自動化中的 APS 預期狀態設定 (DSC) 節點組態中移除元數據。 自動化會將 DSC 節點組態儲存為 Managed 物件格式 (MOF) 組態檔。

範例

範例 1

從自動化中的 DSC 節點組態中移除元數據。 ( 自動產生 )

Remove-AzAutomationDscNodeConfiguration -AutomationAccountName 'AutomationAccount01' -IgnoreNodeMappings -Name 'Configuration01' -ResourceGroupName myresourcegroup

參數

-AutomationAccountName

指定自動化帳戶的名稱,其中包含此 Cmdlet 移除元數據的 DSC 節點組態。

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

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

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

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

-Force

ps_force

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

-IgnoreNodeMappings

表示此 Cmdlet 會忽略節點對應。

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

-Name

指定此 Cmdlet 移除元數據的 DSC 節點組態名稱。

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

-ResourceGroupName

指定資源群組的名稱。 此 Cmdlet 會移除此參數所指定資源群組中 DSC 節點組態的元數據。

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

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

輸出