Remove-AzManagementGroupDeployment

Entfernt eine Bereitstellung in einer Verwaltungsgruppe und alle zugehörigen Vorgänge.

Syntax

Remove-AzManagementGroupDeployment
      [-ManagementGroupId] <String>
      [-Name] <String>
      [-AsJob]
      [-PassThru]
      [-Pre]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzManagementGroupDeployment
      -Id <String>
      [-AsJob]
      [-PassThru]
      [-Pre]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Remove-AzManagementGroupDeployment
      -InputObject <PSDeployment>
      [-AsJob]
      [-PassThru]
      [-Pre]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Beschreibung

Mit dem Cmdlet Remove-AzManagementGroupDeployment wird eine Azure-Bereitstellung in einer Verwaltungsgruppe und allen zugehörigen Vorgängen entfernt.

Beispiele

Beispiel 1: Entfernen einer Bereitstellung mit einem bestimmten Namen

Remove-AzManagementGroupDeployment -ManagementGroupId "myMG" -Name "RolesDeployment"

Mit diesem Befehl wird die Bereitstellung "RolesDeployment" in der Verwaltungsgruppe "myMG" entfernt.

Beispiel 2: Abrufen einer Bereitstellung und Entfernen

Get-AzManagementGroupDeployment -ManagementGroupId "myMG" -Name "RolesDeployment" | Remove-AzManagementGroupDeployment

Dieser Befehl ruft die Bereitstellung "RolesDeployment" in der Verwaltungsgruppe "myMG" ab und entfernt sie.

Parameter

-AsJob

Cmdlet im Hintergrund ausführen

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Hiermit werden Sie vor der Ausführung des Cmdlets zur Bestätigung aufgefordert.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Anmeldeinformationen, Konto, Mandant und Abonnement für die Kommunikation mit Azure

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Id

Die vollqualifizierte Ressourcen-ID der Bereitstellung. Beispiel: /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Resources/deployments/{deploymentName}

Type:String
Aliases:DeploymentId, ResourceId
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Das Bereitstellungsobjekt.

Type:PSDeployment
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ManagementGroupId

Die Verwaltungsgruppen-ID.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

Der Name der Bereitstellung

Type:String
Aliases:DeploymentName
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-PassThru

{{ PassThru Description }}

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Pre

Wenn festgelegt, gibt an, dass das Cmdlet Vorabversionen von API-Versionen verwenden soll, wenn automatisch bestimmt wird, welche Version verwendet werden soll.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Zeigt, was geschieht, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Eingaben

PSDeployment

Ausgaben

Boolean