Get-AzureRmAutomationSourceControlSyncJobOutput
Ruft die Ausgabe eines Azure Automation-Quellcodeverwaltungssynchronisierungsauftrags ab.
Warnung
Das AzureRM PowerShell-Modul ist seit dem 29. Februar 2024 offiziell veraltet. Benutzern wird empfohlen, von AzureRM zum Az PowerShell-Modul zu migrieren, um weiterhin Support und Updates zu erhalten.
Obwohl das AzureRM-Modul weiterhin funktioniert, wird es nicht mehr Standard tained oder unterstützt, wobei eine fortgesetzte Verwendung nach Ermessen und Risiko des Benutzers erfolgt. Weitere Informationen zum Übergang zum Az-Modul finden Sie in unseren Migrationsressourcen.
Syntax
Get-AzureRmAutomationSourceControlSyncJobOutput
-SourceControlName <String>
-JobId <Guid>
[-Stream <SourceControlSyncJobStreamType>]
[-StreamId <String>]
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Beschreibung
Das Cmdlet Get-AzureRmAutomationSourceControlSyncJobOutput ruft die Ausgabe für einen Azure Automation-Quellcodeverwaltungssynchronisierungsauftrag ab.
Beispiele
Beispiel 1
Dieser Befehl ruft die Ausgabe des Quellcodeverwaltungssynchronisierungsauftrags mit der ID 08d6d266-27b6-463c-beea-bc48a67ace15 für die Quellcodeverwaltung VSTSNative ab.
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
========================================================================================================
Parameter
-AutomationAccountName
Der Name des Automatisierungskontos.
Typ: | String |
Position: | 1 |
Standardwert: | None |
Erforderlich: | True |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | False |
-DefaultProfile
Anmeldeinformationen, Konto, Mandant und Abonnement für die Kommunikation mit Azure
Typ: | IAzureContextContainer |
Aliase: | AzureRmContext, AzureCredential |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Pipelineeingabe akzeptieren: | False |
Platzhalterzeichen akzeptieren: | False |
-JobId
Die Id des Synchronisierungsauftrags für die Quellcodeverwaltung.
Typ: | Guid |
Aliase: | SourceControlSyncJobId |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | False |
-ResourceGroupName
Der Name der Ressourcengruppe.
Typ: | String |
Position: | 0 |
Standardwert: | None |
Erforderlich: | True |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | False |
-SourceControlName
Der Name der Quellcodeverwaltung.
Typ: | String |
Aliase: | Name |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | False |
-Stream
Der Datenstromtyp. Der Standardwert ist "Any".
Typ: | SourceControlSyncJobStreamType |
Zulässige Werte: | Any, Output, Error |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | False |
-StreamId
Die Stream-ID.
Typ: | String |
Aliase: | SourceControlSyncJobStreamId |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Pipelineeingabe akzeptieren: | True |
Platzhalterzeichen akzeptieren: | False |
Eingaben
SourceControlSyncJobStreamType