question

NamnikaJanbandhu-8920 avatar image
0 Votes"
NamnikaJanbandhu-8920 asked tbgangav-MSFT edited

Automation Account

I want help. this error is showing still in the Azure powershell . when i type this command

Import-AzAutomationDscConfiguration -Published
-ResourceGroupName learn-31475da3-ded3-458f-89ea-911d53361f01 -SourcePath $HOME/MyDscConfiguration.ps1
-Force `
-AutomationAccountName [your-automation-account-name]

this error is showing :
Import-AzAutomationDscConfiguration: The Automation account was not found.


I want like this ouput :
ResourceGroupName : learn-31475da3-ded3-458f-89ea-911d53361f01
AutomationAccountName : [your-automation-account-name]
Location : eastus
State : Published
Name : MyDscConfiguration
Tags : {}
CreationTime : 6/25/21 5:44:36 PM +00:00
LastModifiedTime : 6/25/21 5:44:36 PM +00:00
Description :
Parameters : {}
LogVerbose : False

azure-automation
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Sam-Cogan avatar image
0 Votes"
Sam-Cogan answered

I assume you are replace [your-automation-account-name] with your actual automation account name? Assuming you are, check that you have selected the correct subscription using the Select-AzSubscription command.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.