Skip to content

Commit 37e0e2b

Browse files
authored
Merge pull request #49422 from DCtheGeek/dmc-automation-patch2
Fixes MicrosoftDocs/azure-docs#13569 - Fix cmdlet and remove type
2 parents f1da207 + 39e5101 commit 37e0e2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/automation/automation-dsc-compile.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@ DSC configurations in Azure Automation can reference Automation credential asset
259259
`Get-AzureRmAutomationCredential`. If a configuration has a parameter that has a **PSCredential**
260260
type, then you can use the `Get-AutomationRmAutomationCredential` cmdlet by passing the string name
261261
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.
265265

266266
Keeping credentials secure in node configurations (MOF configuration documents) requires encrypting
267267
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
280280
Configuration CredentialSample
281281
{
282282
Import-DscResource -ModuleName PSDesiredStateConfiguration
283-
$Cred = Get-AutomationRmAutomationCredential -ResourceGroupName 'ResourceGroup01' -AutomationAccountName 'ContosoAutomationAccount' -Name 'SomeCredentialAsset'
283+
$Cred = Get-AutomationPSCredential 'SomeCredentialAsset'
284284
285285
Node $AllNodes.NodeName
286286
{

0 commit comments

Comments
 (0)