external help file | Module Name | online version | schema | content_git_url | original_content_git_url |
---|---|---|---|---|---|
Microsoft.Azure.PowerShell.Cmdlets.Automation.dll-Help.xml |
Az.Automation |
2.0.0 |
Gets the output of an Azure Automation source control sync job.
Get-AzAutomationSourceControlSyncJobOutput -SourceControlName <String> -JobId <Guid>
[-Stream <SourceControlSyncJobStreamType>] [-StreamId <String>] [-ResourceGroupName] <String>
[-AutomationAccountName] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
The Get-AzAutomationSourceControlSyncJobOutput cmdlet gets the output for a Azure Automation source control sync job.
This command gets the output of source control sync job with id 08d6d266-27b6-463c-beea-bc48a67ace15 for the source control 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
The automation account name.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The credentials, account, tenant, and subscription used for communication with Azure.
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Parameter Sets: (All)
Aliases: AzContext, AzureRmContext, AzureCredential
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The source control sync job id.
Type: System.Guid
Parameter Sets: (All)
Aliases: SourceControlSyncJobId
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The resource group name.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The source control name.
Type: System.String
Parameter Sets: (All)
Aliases: Name
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The stream type. Defaults to Any.
Type: Microsoft.Azure.Commands.Automation.Common.SourceControlSyncJobStreamType
Parameter Sets: (All)
Aliases:
Accepted values: Any, Output, Error
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
The stream id.
Type: System.String
Parameter Sets: (All)
Aliases: SourceControlSyncJobStreamId
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.