Edit

Share via


Get-AzAutomationDscNodeConfiguration

Gets metadata for DSC node configurations in Automation.

Syntax

ByAll (Default)

Get-AzAutomationDscNodeConfiguration
    [-ResourceGroupName] <String>
    [-AutomationAccountName] <String>
    [-RollupStatus <String>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ByNodeConfigurationName

Get-AzAutomationDscNodeConfiguration
    [-ResourceGroupName] <String>
    [-AutomationAccountName] <String>
    -Name <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

ByConfigurationName

Get-AzAutomationDscNodeConfiguration
    [-ResourceGroupName] <String>
    [-AutomationAccountName] <String>
    -ConfigurationName <String>
    [-RollupStatus <String>]
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The Get-AzAutomationDscNodeConfiguration cmdlet gets metadata for APS Desired State Configuration (DSC) node configurations in Azure Automation. Automation stores DSC node configuration as a Managed Object Format (MOF) configuration document.

Examples

Example 1: Get all DSC node configurations

Get-AzAutomationDscNodeConfiguration -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17"

This command gets metadata for all DSC node configurations in the Automation account named Contoso17.

Example 2: Get all DSC node configurations for a DSC configuration

Get-AzAutomationDscNodeConfiguration -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -ConfigurationName "ContosoConfiguration"

This command gets metadata for all DSC node configurations in the Automation account named Contoso17 that the DSC configuration named ContosoConfiguration generated.

Example 3: Get a DSC node configuration by name

Get-AzAutomationDscNodeConfiguration -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -Name "ContosoConfiguration.webserver"

This command gets metadata for a DSC node configuration with the name ContosoConfiguration.webserver in the Automation account named Contoso17.

Parameters

-AutomationAccountName

Specifies the name of an Automation account that contains the DSC node configurations for which this cmdlet gets metadata.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-ConfigurationName

Specifies the name of DSC configuration for which this cmdlet gets node configuration metadata.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByConfigurationName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-DefaultProfile

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

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Specifies the name of the DSC node configuration for which this cmdlet gets metadata.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:NodeConfigurationName

Parameter sets

ByNodeConfigurationName
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-ResourceGroupName

Specifies the name of a resource group. This cmdlet gets metadata for DSC node configurations in the resource group that this parameter specifies.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-RollupStatus

Specifies the rollup status of DSC node configurations that this cmdlet gets. Valid values are:

  • Bad
  • Good Bad: Non-Compliant Good: Compliant

Note

Even if one node is non-compliant, the overall state of the node configuration shows as bad.

Parameter properties

Type:String
Default value:None
Accepted values:Good, Bad
Supports wildcards:False
DontShow:False

Parameter sets

ByAll
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False
ByConfigurationName
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

Outputs

CompilationJob