Get-AzAutomationSourceControlSyncJob
Mendapatkan pekerjaan sinkronisasi kontrol sumber Azure Automation.
Sintaks
Get-AzAutomationSourceControlSyncJob
-SourceControlName <String>
[-JobId <Guid>]
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Get-AzAutomationSourceControlSyncJob mendapatkan pekerjaan sinkronisasi kontrol sumber Azure Automation. Untuk mendapatkan pekerjaan sinkronisasi kontrol sumber tertentu, tentukan id-nya.
Contoh
Contoh 1
Perintah ini mendapatkan semua pekerjaan sinkronisasi kontrol sumber Automation untuk kontrol sumber VSTSNative.
Get-AzAutomationSourceControlSyncJob -ResourceGroupName "rg1" `
-AutomationAccountName "devAccount" `
-Name "VSTSNative"
SourceControlSyncJobId SyncType Status StartTime EndTime
---------------------- -------- ------ --------- -------
08d6d266-27b6-463c-beea-bc48a67ace15 FullSync Failed 08/15/2018 09:17 AM 08/15/2018 09:18 AM
b566d564-878a-4641-8c44-25bf7850531e FullSync Failed 08/15/2018 09:09 AM 08/15/2018 09:10 AM
Contoh 2
Perintah ini mendapatkan pekerjaan sinkronisasi kontrol sumber dengan id 08d6d266-27b6-463c-beea-bc48a67ace15 untuk kontrol sumber VSTSNative.
Get-AzAutomationSourceControlSyncJob -ResourceGroupName "rg1" `
-AutomationAccountName "devAccount" `
-Name "VSTSNative" `
-JobId "08d6d266-27b6-463c-beea-bc48a67ace15"
Status SyncType Exception
------ -------- ---------
Failed FullSync There were errors while syncing the user runbooks. Please see error streams for more information. (T...
Contoh 3
Mendapatkan pekerjaan sinkronisasi kontrol sumber Azure Automation. (dibuat otomatis)
Get-AzAutomationSourceControlSyncJob -AutomationAccountName 'devAccount' -JobId 00000000-0000-0000-0000-00000000000000000 -ResourceGroupName 'rg1' -SourceControlName 'VSTSNative'
Parameter
-AutomationAccountName
Nama akun automasi.
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 |
-JobId
Id pekerjaan sinkronisasi kontrol sumber.
Type: | Guid |
Aliases: | SourceControlSyncJobId |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Nama grup sumber daya.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SourceControlName
Nama kontrol sumber pekerjaan.
Type: | String |
Aliases: | Name |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Input
Output
Azure PowerShell
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk