@@ -35,31 +35,31 @@ determine when to use which method based on the characteristics of each:
35
35
36
36
### Azure PowerShell
37
37
38
- You can use [ ` Start-AzureRmAutomationDscCompilationJob ` ] ( /powershell/module/azurerm .automation/start-azurermautomationdsccompilationjob )
38
+ You can use [ ` Start-AzAutomationDscCompilationJob ` ] ( /powershell/module/az .automation/start-azautomationdsccompilationjob )
39
39
to start compiling with Windows PowerShell. The following sample code starts compilation of a DSC configuration called ** SampleConfig** .
40
40
41
41
``` powershell
42
- Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'SampleConfig'
42
+ Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'SampleConfig'
43
43
```
44
44
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
46
46
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 )
48
48
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 )
50
50
to view its streams (output). The following sample code starts compilation of the ** SampleConfig**
51
51
configuration, waits until it has completed, and then displays its streams.
52
52
53
53
``` powershell
54
- $CompilationJob = Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'SampleConfig'
54
+ $CompilationJob = Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'SampleConfig'
55
55
56
56
while($null -eq $CompilationJob.EndTime -and $null -eq $CompilationJob.Exception)
57
57
{
58
- $CompilationJob = $CompilationJob | Get-AzureRmAutomationDscCompilationJob
58
+ $CompilationJob = $CompilationJob | Get-AzAutomationDscCompilationJob
59
59
Start-Sleep -Seconds 3
60
60
}
61
61
62
- $CompilationJob | Get-AzureRmAutomationDscCompilationJobOutput –Stream Any
62
+ $CompilationJob | Get-AzAutomationDscCompilationJobOutput –Stream Any
63
63
```
64
64
65
65
### Basic Parameters
@@ -120,7 +120,7 @@ $Parameters = @{
120
120
'IsPresent' = $False
121
121
}
122
122
123
- Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'ParametersExample' -Parameters $Parameters
123
+ Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'ParametersExample' -Parameters $Parameters
124
124
```
125
125
126
126
For information about passing PSCredentials as parameters, see [ Credential Assets] ( #credential-assets ) below.
@@ -197,7 +197,7 @@ $ConfigData = @{
197
197
}
198
198
}
199
199
200
- Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'ConfigurationDataSample' -ConfigurationData $ConfigData
200
+ Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'ConfigurationDataSample' -ConfigurationData $ConfigData
201
201
```
202
202
203
203
### Working with Assets in Azure Automation during compilation
@@ -271,7 +271,7 @@ $ConfigData = @{
271
271
)
272
272
}
273
273
274
- Start-AzureRmAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'CredentialSample' -ConfigurationData $ConfigData
274
+ Start-AzAutomationDscCompilationJob -ResourceGroupName 'MyResourceGroup' -AutomationAccountName 'MyAutomationAccount' -ConfigurationName 'CredentialSample' -ConfigurationData $ConfigData
275
275
```
276
276
277
277
> [ !NOTE]
@@ -315,17 +315,17 @@ in to the Azure State Configuration service.
315
315
316
316
### Importing a node configuration with Azure PowerShell
317
317
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 )
319
319
cmdlet to import a node configuration into your automation account.
320
320
321
321
``` 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'
323
323
```
324
324
325
325
## Next steps
326
326
327
327
- To get started, see [ Getting started with Azure Automation State Configuration] ( automation-dsc-getting-started.md )
328
328
- 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 )
330
330
- For pricing information, see [ Azure Automation State Configuration pricing] ( https://azure.microsoft.com/pricing/details/automation/ )
331
331
- 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