Bagikan melalui


Get-AzAutomationSourceControlSyncJobOutput

Mendapatkan output dari pekerjaan sinkronisasi kontrol sumber Azure Automation.

Sintaks

Get-AzAutomationSourceControlSyncJobOutput
   -SourceControlName <String>
   -JobId <Guid>
   [-Stream <SourceControlSyncJobStreamType>]
   [-StreamId <String>]
   [-ResourceGroupName] <String>
   [-AutomationAccountName] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Deskripsi

Cmdlet Get-AzAutomationSourceControlSyncJobOutput mendapatkan output untuk pekerjaan sinkronisasi kontrol sumber Azure Automation.

Contoh

Contoh 1

Perintah ini mendapatkan output pekerjaan sinkronisasi kontrol sumber dengan id 08d6d266-27b6-463c-beea-bc48a67ace15 untuk kontrol sumber VSTSNative.

Get-AzAutomationSourceControlSyncJobOutput -ResourceGroupName "rg1" `
                                                        -AutomationAccountName "devAccount" `
                                                        -SourceControlName "VSTSNative" `
                                                        -JobId "08d6d266-27b6-463c-beea-bc48a67ace15" `
                                                        -Stream Output | ForEach-Object {$_.summary}

Azure Automation Source Control Public Preview.
Supported runbooks to sync: PowerShell Workflow, PowerShell Scripts, DSC Configurations, Graphical, and Python 2.
Setting AzureRmEnvironment.
Getting AzureRunAsConnection.
Logging in to Azure...
Source control information for syncing:
[RepoUrl = https://contoso.visualstudio.com/_git/GitDemo] [Branch  = master] [FolderPath = /]
Verifying url: https://fcontoso.visualstudio.com/_git/GitDemo
Connecting to VSTS...

Source Control Sync Summary:

2 files synced:
 - RunbookA.ps1
 - RunbookB.ps1

Failed to import runbook:
 - RunbookC.ps1

File is not a runbook:
 - README.md
 - text_file.txt

File size exceeds 1Mb:
 - RunbookD_GreatherThan1MB.ps1

Invalid runbook name:
 - RunbookZ_ĈĦŕĬŞ.ps1

Parameter

-AutomationAccountName

Nama akun automasi.

Jenis:String
Position:1
Nilai default:None
Diperlukan:True
Terima input alur:True
Terima karakter wildcard:False

-DefaultProfile

Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan Azure.

Jenis:IAzureContextContainer
Alias:AzContext, AzureRmContext, AzureCredential
Position:Named
Nilai default:None
Diperlukan:False
Terima input alur:False
Terima karakter wildcard:False

-JobId

Id pekerjaan sinkronisasi kontrol sumber.

Jenis:Guid
Alias:SourceControlSyncJobId
Position:Named
Nilai default:None
Diperlukan:True
Terima input alur:True
Terima karakter wildcard:False

-ResourceGroupName

Nama grup sumber daya.

Jenis:String
Position:0
Nilai default:None
Diperlukan:True
Terima input alur:True
Terima karakter wildcard:False

-SourceControlName

Nama kontrol sumber.

Jenis:String
Alias:Name
Position:Named
Nilai default:None
Diperlukan:True
Terima input alur:True
Terima karakter wildcard:False

-Stream

Jenis aliran. Default ke Apa Pun.

Jenis:SourceControlSyncJobStreamType
Nilai yang diterima:Any, Output, Error
Position:Named
Nilai default:None
Diperlukan:False
Terima input alur:True
Terima karakter wildcard:False

-StreamId

Id aliran.

Jenis:String
Alias:SourceControlSyncJobStreamId
Position:Named
Nilai default:None
Diperlukan:False
Terima input alur:True
Terima karakter wildcard:False

Input

String

Guid

SourceControlSyncJobStreamType

Output

SourceControlSyncJobStream

SourceControlSyncJobStreamRecord