Get-​Azure​Rm​Automation​Dsc​Compilation​Job

Gets DSC compilation jobs in Automation.

Syntax

Get-AzureRmAutomationDscCompilationJob
   [-ResourceGroupName] <String>
   [-AutomationAccountName] <String>
   -ConfigurationName <String>
   [-EndTime <DateTimeOffset>]
   [-StartTime <DateTimeOffset>]
   [-Status <String>]
   [<CommonParameters>]
Get-AzureRmAutomationDscCompilationJob
   [-ResourceGroupName] <String>
   [-AutomationAccountName] <String>
   [-EndTime <DateTimeOffset>]
   [-StartTime <DateTimeOffset>]
   [-Status <String>]
   [<CommonParameters>]
Get-AzureRmAutomationDscCompilationJob
   [-ResourceGroupName] <String>
   [-AutomationAccountName] <String>
   -Id <Guid>
   [<CommonParameters>]

Description

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

Examples

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.

Required Parameters

-AutomationAccountName

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

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ConfigurationName

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

Type:String
Aliases:Name
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Id

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

Type:Guid
Aliases:JobId
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

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

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-EndTime

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

Type:DateTimeOffset
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StartTime

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

Type:DateTimeOffset
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Status

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

  • Failed
  • Queued
  • Starting
  • Resuming
  • Running
  • Stopped
  • Stopping
  • Suspended
  • Suspending
  • Activating
Type:String
Parameter Sets:Completed, Failed, Queued, Starting, Resuming, Running, Stopped, Stopping, Suspended, Suspending, Activating
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False