< Back

Get-AzureRmAutomationDscCompilationJob

Tue Jan 29, 2019 9:32 pm

NAME Get-AzureRmAutomationDscCompilationJob



SYNOPSIS

Gets DSC compilation jobs in Automation.





SYNTAX

Get-AzureRmAutomationDscCompilationJob [-ResourceGroupName] <String> [-AutomationAccountName] <String> -ConfigurationName <String>

[-DefaultProfile <IAzureContextContainer>] [-EndTime <DateTimeOffset>] [-StartTime <DateTimeOffset>] [-Status {Completed | Failed | Queued |

Starting | Resuming | Running | Stopped | Stopping | Suspended | Suspending | Activating | New}] [<CommonParameters>]



Get-AzureRmAutomationDscCompilationJob [-ResourceGroupName] <String> [-AutomationAccountName] <String> [-DefaultProfile <IAzureContextContainer>]

[-EndTime <DateTimeOffset>] [-StartTime <DateTimeOffset>] [-Status {Completed | Failed | Queued | Starting | Resuming | Running | Stopped |

Stopping | Suspended | Suspending | Activating | New}] [<CommonParameters>]



Get-AzureRmAutomationDscCompilationJob [-ResourceGroupName] <String> [-AutomationAccountName] <String> [-DefaultProfile <IAzureContextContainer>]

-Id <Guid> [<CommonParameters>]





DESCRIPTION

The Get-AzureRmAutomationDscCompilationJob cmdlet gets APS Desired State Configuration (DSC) compilation jobs in Azure Automation.





PARAMETERS

-AutomationAccountName <String>

Specifies the name of the Automation account that contains DSC compilation jobs that this cmdlet gets.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ConfigurationName <String>

Specifies the name of the DSC configuration for which this cmdlet gets compilation jobs.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-EndTime <DateTimeOffset>

Specifies an end time. This cmdlet gets compilations jobs that started up to the time that this parameter specifies.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Id <Guid>

Specifies the unique ID of the DSC compilation job that this cmdlet gets.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of a resource group in which this cmdlet gets DSC compilation jobs.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-StartTime <DateTimeOffset>

Specifies a start time. This cmdlet gets jobs that start at or after the time that this parameter specifies.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Status <String>

Specifies the status of jobs that this cmdlet gets. Valid values are:



- Completed



- Failed



- Queued



- Starting



- Resuming



- Running



- Stopped



- Stopping



- Suspended



- Suspending



- Activating



- New



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

Microsoft.Azure.Commands.Automation.Model.CompilationJob







NOTES









Example 1: Get all DSC compilation jobs



PS C:\\>Get-AzureRmAutomationDscCompilationJob -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17"



This command gets all compilation jobs in the Automation account named Contoso17.





Example 2: Get DSC compilation jobs for a configuration



PS C:\\>Get-AzureRmAutomationDscCompilationJob -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -ConfigurationName

"ContosoConfiguration"



This command gets all compilation jobs for the DSC configuration named ContosoConfiguration in the Automation account named Contoso17.





Example 3: Get a specific DSC compilation job



PS C:\\>Get-AzureRmAutomationDscCompilationJob -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -Id

c0a1718e-d8be-4fa3-91b6-82e1d3a36298



This command gets the compilation job with the specified ID in the Automation account named Contoso17.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ilationjob

Get-AzureRmAutomationDscCompilationJobOutput

Start-AzureRmAutomationDscCompilationJob