Skip to content

Commit 6e40f06

Browse files
authored
Merge pull request #44602 from kenjohnson03/patch-1
Update for Az Module
2 parents 18c6db6 + b6a01dc commit 6e40f06

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

articles/automation/automation-dsc-compile.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,31 +35,31 @@ determine when to use which method based on the characteristics of each:
3535

3636
### Azure PowerShell
3737

38-
You can use [`Start-AzureRmAutomationDscCompilationJob`](/powershell/module/azurerm.automation/start-azurermautomationdsccompilationjob)
38+
You can use [`Start-AzAutomationDscCompilationJob`](/powershell/module/az.automation/start-azautomationdsccompilationjob)
3939
to start compiling with Windows PowerShell. The following sample code starts compilation of a DSC configuration called **SampleConfig**.
4040

4141
```powershell
42-
Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'SampleConfig'
42+
Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'SampleConfig'
4343
```
4444

45-
`Start-AzureRmAutomationDscCompilationJob` returns a compilation job object that you can use to
45+
`Start-AzAutomationDscCompilationJob` returns a compilation job object that you can use to
4646
track its status. You can then use this compilation job object with
47-
[`Get-AzureRmAutomationDscCompilationJob`](/powershell/module/azurerm.automation/get-azurermautomationdsccompilationjob)
47+
[`Get-AzAutomationDscCompilationJob`](/powershell/module/az.automation/get-azautomationdsccompilationjob)
4848
to determine the status of the compilation job, and
49-
[`Get-AzureRmAutomationDscCompilationJobOutput`](/powershell/module/azurerm.automation/get-azurermautomationdsccompilationjoboutput)
49+
[`Get-AzAutomationDscCompilationJobOutput`](/powershell/module/az.automation/get-azautomationdscconfiguration)
5050
to view its streams (output). The following sample code starts compilation of the **SampleConfig**
5151
configuration, waits until it has completed, and then displays its streams.
5252

5353
```powershell
54-
$CompilationJob = Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'SampleConfig'
54+
$CompilationJob = Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'SampleConfig'
5555
5656
while($null -eq $CompilationJob.EndTime -and $null -eq $CompilationJob.Exception)
5757
{
58-
$CompilationJob = $CompilationJob | Get-AzureRmAutomationDscCompilationJob
58+
$CompilationJob = $CompilationJob | Get-AzAutomationDscCompilationJob
5959
Start-Sleep -Seconds 3
6060
}
6161
62-
$CompilationJob | Get-AzureRmAutomationDscCompilationJobOutput –Stream Any
62+
$CompilationJob | Get-AzAutomationDscCompilationJobOutput –Stream Any
6363
```
6464

6565
### Basic Parameters
@@ -120,7 +120,7 @@ $Parameters = @{
120120
'IsPresent' = $False
121121
}
122122
123-
Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'ParametersExample' -Parameters $Parameters
123+
Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'ParametersExample' -Parameters $Parameters
124124
```
125125

126126
For information about passing PSCredentials as parameters, see [Credential Assets](#credential-assets) below.
@@ -197,7 +197,7 @@ $ConfigData = @{
197197
}
198198
}
199199
200-
Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'ConfigurationDataSample' -ConfigurationData $ConfigData
200+
Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'ConfigurationDataSample' -ConfigurationData $ConfigData
201201
```
202202

203203
### Working with Assets in Azure Automation during compilation
@@ -271,7 +271,7 @@ $ConfigData = @{
271271
)
272272
}
273273
274-
Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'CredentialSample' -ConfigurationData $ConfigData
274+
Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'CredentialSample' -ConfigurationData $ConfigData
275275
```
276276

277277
> [!NOTE]
@@ -315,17 +315,17 @@ in to the Azure State Configuration service.
315315

316316
### Importing a node configuration with Azure PowerShell
317317

318-
You can use the [Import-AzureRmAutomationDscNodeConfiguration](/powershell/module/azurerm.automation/import-azurermautomationdscnodeconfiguration)
318+
You can use the [Import-AzAutomationDscNodeConfiguration](/powershell/module/az.automation/import-azautomationdscnodeconfiguration)
319319
cmdlet to import a node configuration into your automation account.
320320

321321
```powershell
322-
Import-AzureRmAutomationDscNodeConfiguration -AutomationAccountName 'MyAutomationAccount' -ResourceGroupName 'MyResourceGroup' -ConfigurationName 'MyNodeConfiguration' -Path 'C:\MyConfigurations\TestVM1.mof'
322+
Import-AzAutomationDscNodeConfiguration -AutomationAccountName 'MyAutomationAccount' -ResourceGroupName 'MyResourceGroup' -ConfigurationName 'MyNodeConfiguration' -Path 'C:\MyConfigurations\TestVM1.mof'
323323
```
324324

325325
## Next steps
326326

327327
- To get started, see [Getting started with Azure Automation State Configuration](automation-dsc-getting-started.md)
328328
- To learn about compiling DSC configurations so that you can assign them to target nodes, see [Compiling configurations in Azure Automation State Configuration](automation-dsc-compile.md)
329-
- For PowerShell cmdlet reference, see [Azure Automation State Configuration cmdlets](/powershell/module/azurerm.automation/#automation)
329+
- For PowerShell cmdlet reference, see [Azure Automation State Configuration cmdlets](/powershell/module/az.automation)
330330
- For pricing information, see [Azure Automation State Configuration pricing](https://azure.microsoft.com/pricing/details/automation/)
331331
- To see an example of using Azure Automation State Configuration in a continuous deployment pipeline, see [Continuous Deployment Using Azure Automation State Configuration and Chocolatey](automation-dsc-cd-chocolatey.md)

0 commit comments

Comments
 (0)