automation user

TO 1 Reputation point
2021-09-10T23:25:54.227+00:00

I'd like to start VM automatically using automation user and runbook but dose not work...

  1. create automation user
  2. import "Start Azure V2 VMs" from gallery and create runbook
  3. publish runbook and link to schedule and input "RESOURCEGROUPNAME" and "VMNAME"

What is missing in this procedure?

Thanks,

Azure Automation
Azure Automation

An Azure service that is used to automate, configure, and install updates across hybrid environments.

0 comments No comments

Answer accepted by question author
Charles Thivierge 4,201 Reputation points
2021-09-11T03:48:10.21+00:00

Ok, have you created the user in the "Credentials" section in the Automation Account ?
On the left side, under Shared Resources, click on Credentials

Then, create a user...
Name: You decide the name
User Name: It has to be a valid user in your tenant AD
Password: The password of the user account.

When created, you can call this user in your Automation Account script

hth

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. Charles Thivierge 4,201 Reputation points
    2021-09-10T23:52:06.46+00:00

    You have created the automation account as well as the run as account ?

    Then you have imported a ps script from the gallery and then you want to run this script with the automation account?

    Any error message?

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.