@@ -39,31 +39,31 @@ determine when to use which method based on the characteristics of each:
39
39
40
40
### Azure PowerShell
41
41
42
- You can use [ ` Start-AzureRmAutomationDscCompilationJob ` ] ( /powershell/module/azurerm .automation/start-azurermautomationdsccompilationjob )
42
+ You can use [ ` Start-AzAutomationDscCompilationJob ` ] ( /powershell/module/az .automation/start-azautomationdsccompilationjob )
43
43
to start compiling with Windows PowerShell. The following sample code starts compilation of a DSC configuration called ** SampleConfig** .
44
44
45
45
``` powershell
46
- Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'SampleConfig'
46
+ Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'SampleConfig'
47
47
```
48
48
49
- ` Start-AzureRmAutomationDscCompilationJob ` returns a compilation job object that you can use to
49
+ ` Start-AzAutomationDscCompilationJob ` returns a compilation job object that you can use to
50
50
track its status. You can then use this compilation job object with
51
- [ ` Get-AzureRmAutomationDscCompilationJob ` ] ( /powershell/module/azurerm .automation/get-azurermautomationdsccompilationjob )
51
+ [ ` Get-AzAutomationDscCompilationJob ` ] ( /powershell/module/az .automation/get-azautomationdsccompilationjob )
52
52
to determine the status of the compilation job, and
53
- [ ` Get-AzureRmAutomationDscCompilationJobOutput ` ] ( /powershell/module/azurerm .automation/get-azurermautomationdsccompilationjoboutput )
53
+ [ ` Get-AzAutomationDscCompilationJobOutput ` ] ( /powershell/module/az .automation/get-azautomationdscconfiguration )
54
54
to view its streams (output). The following sample code starts compilation of the ** SampleConfig**
55
55
configuration, waits until it has completed, and then displays its streams.
56
56
57
57
``` powershell
58
- $CompilationJob = Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'SampleConfig'
58
+ $CompilationJob = Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'SampleConfig'
59
59
60
60
while($null -eq $CompilationJob.EndTime -and $null -eq $CompilationJob.Exception)
61
61
{
62
- $CompilationJob = $CompilationJob | Get-AzureRmAutomationDscCompilationJob
62
+ $CompilationJob = $CompilationJob | Get-AzAutomationDscCompilationJob
63
63
Start-Sleep -Seconds 3
64
64
}
65
65
66
- $CompilationJob | Get-AzureRmAutomationDscCompilationJobOutput –Stream Any
66
+ $CompilationJob | Get-AzAutomationDscCompilationJobOutput –Stream Any
67
67
```
68
68
69
69
### Basic Parameters
@@ -124,7 +124,7 @@ $Parameters = @{
124
124
'IsPresent' = $False
125
125
}
126
126
127
- Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'ParametersExample' -Parameters $Parameters
127
+ Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'ParametersExample' -Parameters $Parameters
128
128
```
129
129
130
130
For information about passing PSCredentials as parameters, see [ Credential Assets] ( #credential-assets ) below.
@@ -201,7 +201,7 @@ $ConfigData = @{
201
201
}
202
202
}
203
203
204
- Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'ConfigurationDataSample' -ConfigurationData $ConfigData
204
+ Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'ConfigurationDataSample' -ConfigurationData $ConfigData
205
205
```
206
206
207
207
### Working with Assets in Azure Automation during compilation
@@ -275,7 +275,7 @@ $ConfigData = @{
275
275
)
276
276
}
277
277
278
- Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'CredentialSample' -ConfigurationData $ConfigData
278
+ Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'CredentialSample' -ConfigurationData $ConfigData
279
279
```
280
280
281
281
> [ !NOTE]
@@ -319,17 +319,17 @@ in to the Azure State Configuration service.
319
319
320
320
### Importing a node configuration with Azure PowerShell
321
321
322
- You can use the [ Import-AzureRmAutomationDscNodeConfiguration ] ( /powershell/module/azurerm .automation/import-azurermautomationdscnodeconfiguration )
322
+ You can use the [ Import-AzAutomationDscNodeConfiguration ] ( /powershell/module/az .automation/import-azautomationdscnodeconfiguration )
323
323
cmdlet to import a node configuration into your automation account.
324
324
325
325
``` powershell
326
- Import-AzureRmAutomationDscNodeConfiguration -AutomationAccountName 'MyAutomationAccount' -ResourceGroupName 'MyResourceGroup' -ConfigurationName 'MyNodeConfiguration' -Path 'C:\MyConfigurations\TestVM1.mof'
326
+ Import-AzAutomationDscNodeConfiguration -AutomationAccountName 'MyAutomationAccount' -ResourceGroupName 'MyResourceGroup' -ConfigurationName 'MyNodeConfiguration' -Path 'C:\MyConfigurations\TestVM1.mof'
327
327
```
328
328
329
329
## Next steps
330
330
331
331
- To get started, see [ Getting started with Azure Automation State Configuration] ( automation-dsc-getting-started.md )
332
332
- 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 )
333
- - For PowerShell cmdlet reference, see [ Azure Automation State Configuration cmdlets] ( /powershell/module/azurerm.automation/# automation )
333
+ - For PowerShell cmdlet reference, see [ Azure Automation State Configuration cmdlets] ( /powershell/module/az. automation )
334
334
- For pricing information, see [ Azure Automation State Configuration pricing] ( https://azure.microsoft.com/pricing/details/automation/ )
335
335
- 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