Reputation: 599
Here I'm working with Azure Automation and i'm trying to schedule the auto start and auto stop of Virtual Machines.I have taken a runbook "Scheduled Virtual Machine ShutDown/StartUp" from the gallery and created a runbook. when i tried to test it, then it's prompting me to enter "AZURE CREDENTIAL NAME" and "AZURE SUBSCRIPTION NAME", I have entered azure credential name as my "account name"(i.e praveengogula22outlook.onmicrosoft.com) and azure subscription name as "Azure Pass". Then it throws an error saying that "Failed to get credential with name [some name] Exiting runbook due to error". I just want to know what exactly "AZURE CREDENTIAL NAME" and which name should i enter over there.So can any one please provide me with a solution to automate startup/shutdown of virtual machines. Thank You.
Upvotes: 4
Views: 947
Reputation: 12452
You need to create a credential asset in your automation account. The account you use for the credential must be an organizational account (not a microsoft account) and it must have access to the subscription you are specifying.
When you execute your runbook you will then give it the name of this credential asset.
Upvotes: 4