Azure Automation Accounts | Maximum number of Accounts reached

rhod3rz 0 Reputation points
2025-02-28T12:49:31.5366667+00:00

Getting the following error when trying to create an automation account via Terraform.

"Maximum number of Accounts reached. If Deleted recently, please restore the same account".

If I look at automation accounts for the subscription I have none created, and none in a deleted/recoverable state.

Please advise.

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,327 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shikha Ghildiyal 4,300 Reputation points Microsoft Employee
    2025-02-28T13:42:37.51+00:00

    Hi rhod3rz

    Thanks for reaching out to Microsoft Q&A.

    To recover the deleted automation accounts, try with below steps: 1.Sign-in into azure portal. 2.On search bar type automation accounts, displayed all active accounts.

    User's image

    3.On Automation account page left side "Recovery Deleted accounts" option will appear Click on that. User's image

    4.Click on subscription, choose your subscription from dropdown list. P1

    5.list of all deleted accounts within that subscription will be displayed. 6.Click the check box that you want recover. User's image

    7.After Selection of the account at bottom of page, recover button is displayed click on that. Screenshot 2024-12-11 235321

    8.Go the automation account page and refresh it, restored account displayed in the active list. User's image

    Note: You can only restore an automation account within 30 days of deletion.

    Also, To permanently delete a soft-deleted in azure automation account, please follow the below steps:

      In the azure portal go to automation accounts. 
    

    Select the automation account which you want to delete. 3.Click on the delete button at the top of the page.

    Confirm the deletion to put the account in a soft delete state for up to 30 days.

    .After deletion, the account enters a soft delete state and can be recovered within 30 days, but it can't be deleted permanently during this time period.

    After 30 Days automation account will be permanently deleted, and it can't be recovered.

    If you need a new account with same name wait until this period is over.

    Once old account is deleted you can create new account. Note: If your account is linked with a log analytics workspace, first need to unlink it.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


Your answer

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