A2oz

How Do I Rename My Azure Automation Account?

Published in Azure Automation 2 mins read

You cannot directly rename an Azure Automation account. However, you can create a new Automation account with the desired name and migrate your resources to the new account.

Here's how to do it:

  1. Create a new Automation account with the desired name.
  2. Export your existing Automation account's resources. You can export your runbooks, variables, and other resources as JSON files using the Azure portal or PowerShell.
  3. Import the exported resources into the new Automation account. You can import the JSON files into the new account using the Azure portal or PowerShell.
  4. Update any references to the old Automation account. This includes any scripts, applications, or services that are using the old account's resources.

Example:

Let's say you have an Automation account named "AutomationAccount1" and want to rename it to "AutomationAccount2".

  1. Create a new Automation account named "AutomationAccount2".
  2. Export the resources from "AutomationAccount1".
  3. Import the exported resources into "AutomationAccount2".
  4. Update any scripts or applications that reference "AutomationAccount1" to use "AutomationAccount2".

Once you have migrated all of your resources to the new account, you can safely delete the old Automation account.

Note: This process can be time-consuming and complex, especially if you have a large number of resources in your Automation account. It's important to carefully plan and test the migration process before deleting the old account.

Related Articles