Get-AzureRmAutomationSourceControlSyncJobOutput
Hämtar utdata från ett synkroniseringsjobb för Azure Automation-källkontroll.
Varning
AzureRM PowerShell-modulen är officiellt inaktuell från och med den 29 februari 2024. Användare rekommenderas att migrera från AzureRM till Az PowerShell-modulen för att säkerställa fortsatt support och uppdateringar.
Även om AzureRM-modulen fortfarande kan fungera, underhålls den inte längre eller stöds, vilket gör att användaren kan välja och riskera fortsatt användning. Se våra migreringsresurser för vägledning om övergången till Az-modulen.
Syntax
Get-AzureRmAutomationSourceControlSyncJobOutput
-SourceControlName <String>
-JobId <Guid>
[-Stream <SourceControlSyncJobStreamType>]
[-StreamId <String>]
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Cmdleten Get-AzureRmAutomationSourceControlSyncJobOutput hämtar utdata för ett synkroniseringsjobb för Azure Automation-källkontroll.
Exempel
Exempel 1
Det här kommandot hämtar utdata från källkontrollsynkroniseringsjobbet med ID 08d6d266-27b6-463c-beea-bc48a67ace15 för källkontrollen VSTSNative.
PS C:\> Get-AzureRmAutomationSourceControlSyncJobOutput -ResourceGroupName "rg1" `
-AutomationAccountName "devAccount" `
-Name "VSTSNative"
-Id "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
========================================================================================================
Parametrar
-AutomationAccountName
Namnet på automationskontot.
Typ: | String |
Position: | 1 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-DefaultProfile
Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.
Typ: | IAzureContextContainer |
Alias: | AzureRmContext, AzureCredential |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-JobId
Källkontrollens synkroniseringsjobb-ID.
Typ: | Guid |
Alias: | SourceControlSyncJobId |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-ResourceGroupName
Resursgruppens namn.
Typ: | String |
Position: | 0 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-SourceControlName
Källkontrollnamnet.
Typ: | String |
Alias: | Name |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-Stream
Strömtypen. Standardvärdet är Alla.
Typ: | SourceControlSyncJobStreamType |
Godkända värden: | Any, Output, Error |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
-StreamId
Ström-ID:t.
Typ: | String |
Alias: | SourceControlSyncJobStreamId |
Position: | Named |
Standardvärde: | None |
Obligatorisk: | False |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
Indata
SourceControlSyncJobStreamType