Home Arrow Icon Knowledge base Arrow Icon Global Arrow Icon How do I create an Azure Automation Account


How do I create an Azure Automation Account


To create an Azure Automation account, follow these steps:

1. Sign in to the Azure Portal: Log in to the Azure portal with an account that has the necessary permissions, such as being a member of the subscription Administrators role and a co-administrator of the subscription[1][7].

2. Create a New Resource: From the top menu, select + Create a resource**[1][9].

3. Search for Automation: In the search box, type "Automation" and press Enter. Select Automation from the search results[3][9].

4. Configure the Automation Account:
- Name: Enter a unique name for your Automation account.
- Subscription: Select the Azure subscription you want to use.
- Resource Group: Choose an existing resource group or create a new one.
- Location: Select a region for your Automation account[1][5][7].

5. Create the Automation Account: Ensure that the Create Azure Run As account option is set to Yes if you want to create a Run As account for authentication. Then, click Create to create the Automation account[1][12].

6. Review and Verify: Once the account is created, you can verify it by navigating to the All Resources page in the Azure portal[5].

Alternatively, you can create an Azure Automation account using Azure PowerShell. Here’s a basic script to do so:

powershell
# Connect to Azure
Connect-AzAccount

# Select your subscription
Get-AzSubscription
Select-AzSubscription -SubscriptionId "YourSubscriptionId"

# Create a new resource group
New-AzResourceGroup -Name 'Azure-AA-RG' -Location 'EastUS'

# Create the Automation account
New-AzAutomationAccount -Name 'Azure-AA' -Location 'EastUS' -ResourceGroupName 'Azure-AA-RG'

Replace `"YourSubscriptionId"` with your actual subscription ID and adjust the name and location as needed[2][5].

Citations:
[1] https://help.communicationsquare.com/article/261-how-to-create-an-azure-automation-account
[2] https://wmatthyssen.com/2024/02/22/create-an-azure-automation-account-with-azure-powershell/
[3] https://www.modernendpoint.com/managed/Creating-an-Azure-Automation-Account/
[4] https://docs.azure.cn/en-us/automation/learn/powershell-runbook-managed-identity
[5] https://www.progress.com/blogs/getting-started-with-azure-automation-introduction
[6] https://stackoverflow.com/questions/72792161/azure-table-on-azure-automation
[7] https://learn.microsoft.com/en-us/azure/automation/automation-create-standalone-account
[8] https://seesmitty.com/how-to-get-started-with-an-azure-automation-account-pt-2/
[9] https://learn.microsoft.com/en-us/azure/automation/quickstarts/create-azure-automation-account-portal
[10] https://github.com/Huachao/azure-content/blob/master/articles/automation/automation-configuring.md
[11] https://www.youtube.com/watch?v=YK8Y0LK5eo4
[12] https://www.sqlshack.com/getting-started-with-azure-automation/