File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -259,9 +259,9 @@ DSC configurations in Azure Automation can reference Automation credential asset
259
259
` Get-AzureRmAutomationCredential ` . If a configuration has a parameter that has a ** PSCredential**
260
260
type, then you can use the ` Get-AutomationRmAutomationCredential ` cmdlet by passing the string name
261
261
of an Azure Automation credential asset to the cmdlet to retrieve the credential. You can then use
262
- then use that object for the parameter requiring the ** PSCredential** object. Behind the scenes,
263
- the Azure Automation credential asset with that name is retrieved and passed to the configuration.
264
- The example below shows this in action.
262
+ that object for the parameter requiring the ** PSCredential** object. Behind the scenes, the Azure
263
+ Automation credential asset with that name is retrieved and passed to the configuration. The
264
+ example below shows this in action.
265
265
266
266
Keeping credentials secure in node configurations (MOF configuration documents) requires encrypting
267
267
the credentials in the node configuration MOF file. However, currently you must tell PowerShell DSC
@@ -280,7 +280,7 @@ The following example shows a DSC configuration that uses an Automation credenti
280
280
Configuration CredentialSample
281
281
{
282
282
Import-DscResource -ModuleName PSDesiredStateConfiguration
283
- $Cred = Get-AutomationRmAutomationCredential -ResourceGroupName 'ResourceGroup01' -AutomationAccountName 'ContosoAutomationAccount' -Name 'SomeCredentialAsset'
283
+ $Cred = Get-AutomationPSCredential 'SomeCredentialAsset'
284
284
285
285
Node $AllNodes.NodeName
286
286
{
You can’t perform that action at this time.
0 commit comments