Stop-AzAutomationJob
Menghentikan pekerjaan Automation.
Sintaks
Stop-AzAutomationJob
[-Id] <Guid>
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Stop-AzAutomationJob menghentikan pekerjaan Azure Automation. Tentukan pekerjaan Automation yang sedang berjalan.
Contoh
Contoh 1: Menghentikan pekerjaan
Stop-AzAutomationJob -AutomationAccountName "Contoso17" -Id 2989b069-24fe-40b9-b3bd-cb7e5eac4b64 -ResourceGroupName "ResourceGroup01"
Perintah ini menghentikan pekerjaan yang memiliki ID yang ditentukan.
Parameter
-AutomationAccountName
Menentukan nama akun Automation tempat cmdlet ini menghentikan pekerjaan.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan azure
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Id
Menentukan ID pekerjaan yang dihentikan cmdlet ini.
Type: | Guid |
Aliases: | JobId |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Menentukan nama grup sumber daya.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |