Configure an Azure Automation Account – Part 1 – Start Me Up


Welcome to part one of a three part series to get you up and running with Azure Automation.

The end goal is the execution of an Azure Automation run book. These posts put the required components in place with PowerShell.

I'll start with an overview of the process and the posts.

Post 1

    1. Create a new user in the Azure Active Directory associated with your subscription (this becomes the Automation Credential)
    2. Assign the user as co-administrator in the subscription
    3. Create an Azure Automation Account

 

Post 2

    1. Add an Azure Automation Credential
    2. Add an Azure Automation Variable

 

Post 3

    1. Create a run book that uses the components from posts one and two
    2. Test the run book

 

Right, then… let's do this thing!

 

Start Me Up

STEP 1: create a new user in the Azure Active Directory and associate it with your subscription. This standard AAD user will become the credential used to run Azure Automation jobs.

Connect to your AAD service with the Azure AD Cmdlets:

Connect-MsolService


 

 

Now, create a new AAD user:

New-MsolUser -UserPrincipalName AnneDroid@ninja-injury.com -DisplayName "Anne Droid" -FirstName Anne -LastName Droid -PasswordNeverExpires:$true -StrongPasswordRequired:$true -Password rd1gq!9518MYte"£t7SfaGd7y0yc&

    

Admire one's handy work:

Get-MsolUser -SearchString "Anne" | Select DisplayName


 

STEP 2: assign the user as co-administrator in the subscription.

Sadly, there isn't any PowerShell for this (yet)…

In the original portal go to 'SETTINGS'

 

Then chose 'ADMINISTRATORS'

 

Now input the newly created account name in the dialogue box that appears after pressing 'ADD'

 

   

STEP3: create an Azure Automation Account.

New-AzureAutomationAccount -Name "TheBigBadWolf" -Location "West Europe"


 

That's it for this post. Join me next week when I'll be adding an Azure Automation Credential (and Variable) to this new Automation Account.

Booyakkasha!

(I'm not sure why I felt the need to write that last word…)

 

Comments (3)

  1. anonymouscommenter says:

    Use PowerShell to add an Azure Automation Credential and an Azure Automation Variable.

  2. anonymouscommenter says:

    A sample run book to test your Azure Automation Account configuration.

  3. sam says:

    How can I create an Automation account and set the plan to Basic and not Free

Skip to main content