Failed to get credentials named [somename.onmicrosoft.com] Exit workbook due to error?

Here I work with Azure Automation, and I am trying to schedule automatic starting and automatic stopping of virtual machines. I took the ShutDown / StartUp Scheduled Virtual Machine workbook from the gallery and created the workbook. when I tried to test it, it prompted me to enter “AZURE CREDENTIAL NAME” and “AZURE SUBSCRIPTION NAME”, I entered the Azure account name as my “account name” (for example, praveengogula22outlook.onmicrosoft.com) and the azure subscription name like the Cote d'Azur. Then it gives the error message “ Failed to get credentials with the name [some name] Exit from workbook due to error. I just want to know what exactly "AZURE CREDENTIAL NAME" is and what name I should enter here. Therefore, anyone can provide me with a solution for automating start / stop of virtual machines. Thank.

+4
source share
1 answer

You need to create credentials in your automation account. The account you use for the credentials must be an organization account (not a microsoft account) and must have access to the subscription that you specify.
When you complete your workbook, you will give it the name of this asset.

+4
source

All Articles