Get-AzAutomationSourceControlSyncJobOutput
Hiermee haalt u de uitvoer op van een synchronisatietaak voor azure Automation-broncodebeheer.
Syntaxis
Get-AzAutomationSourceControlSyncJobOutput
-SourceControlName <String>
-JobId <Guid>
[-Stream <SourceControlSyncJobStreamType>]
[-StreamId <String>]
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
De Get-AzAutomationSourceControlSyncJobOutput cmdlet haalt de uitvoer op voor een Azure Automation-bronbeheersynchronisatietaak.
Voorbeelden
Voorbeeld 1
Met deze opdracht wordt de uitvoer van de synchronisatietaak voor broncodebeheer opgehaald met id 08d6d266-27b6-463c-beea-bc48a67ace15 voor het bronbeheer 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
Parameters
-AutomationAccountName
De naam van het Automation-account.
Type: | String |
Position: | 1 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-DefaultProfile
De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliassen: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-JobId
De synchronisatietaak-id van broncodebeheer.
Type: | Guid |
Aliassen: | SourceControlSyncJobId |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-ResourceGroupName
De naam van de resourcegroep.
Type: | String |
Position: | 0 |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-SourceControlName
De naam van het broncodebeheer.
Type: | String |
Aliassen: | Name |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-Stream
Het stroomtype. Standaard ingesteld op Any.
Type: | SourceControlSyncJobStreamType |
Geaccepteerde waarden: | Any, Output, Error |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-StreamId
De stream-id.
Type: | String |
Aliassen: | SourceControlSyncJobStreamId |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
Invoerwaarden
SourceControlSyncJobStreamType
Uitvoerwaarden
Azure PowerShell