Stop-AzAutomationDscNodeConfigurationDeployment
Stoppt eine DSC-Knotenkonfigurationsbereitstellung in der Automatisierung. Er beendet nur den aktuellen Bereitstellungsauftrag, hebt jedoch nicht die Zuweisung bereits zugewiesener Knotenkonfigurationen auf.
Syntax
Stop-AzAutomationDscNodeConfigurationDeployment
-JobId <Guid>
[-Force]
[-PassThru]
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Stop-AzAutomationDscNodeConfigurationDeployment
[-PassThru]
-InputObject <NodeConfigurationDeployment>
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Beschreibung
Das Cmdlet Stop-AzAutomationDscNodeConfigurationDeployment stoppt eine Bereitstellung einer DSC-Knotenkonfiguration (Desired State Configuration) in Azure Automation. Die Zuweisung der Knotenkonfiguration an Knotengruppen wird beendet, falls vorhanden Standard zugewiesen werden sollen, aber die Zuweisung bereits zugewiesener Knoten nicht aufheben. Um die Registrierung eines geplanten Auftrags aufzuheben, verwenden Sie bitte das Unregister-AzAutomationScheduledRunbook mit der JobScheduleId, um die Zuweisung eines vorhandenen geplanten Auftrags aufzuheben.
Beispiele
Beispiel 1: Bereitstellen einer Azure DSC-Knotenkonfiguration in der Automatisierung
Stop-AzAutomationDscNodeConfigurationDeployment -AutomationAccountName "Contoso01" -ResourceGroupName "ResourceGroup01" -JobId 00000000-0000-0000-0000-000000000000
Mit dem obigen Befehl wird der DSC-Knotenkonfigurationsbereitstellungsauftrag mit der übergebenen jobId beendet.
Parameter
-AutomationAccountName
Gibt den Namen des Automatisierungskontos an, das die DSC-Konfiguration enthält, die dieses Cmdlet kompiliert.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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: | False |
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 |
-Force
ps_force
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Eingabeobjekt für Die Leitung
Type: | NodeConfigurationDeployment |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-JobId
Gibt die Auftrags-ID eines vorhandenen Bereitstellungsauftrags an.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PassThru
Gibt ein Objekt zurück, das das Element darstellt, mit dem Sie arbeiten. Standardmäßig wird von diesem Cmdlet keine Ausgabe generiert.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Gibt den Namen einer Ressourcengruppe an, in der dieses Cmdlet eine Konfiguration kompiliert.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |