Set-AzureRmAutomationAccount

Modifies an Automation account.

Important

Because Az PowerShell modules now have all the capabilities of AzureRM PowerShell modules and more, we'll retire AzureRM PowerShell modules on 29 February 2024.

To avoid service interruptions, update your scripts that use AzureRM PowerShell modules to use Az PowerShell modules by 29 February 2024. To automatically update your scripts, follow the quickstart guide.

Syntax

Set-AzureRmAutomationAccount
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-Plan <String>]
   [-Tags <IDictionary>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Set-AzureRmAutomationAccount cmdlet modifies an Azure Automation account. For more information about Automation accounts, see the New-AzureRmAutomationAccount cmdlet.

Examples

Example 1: Set the tags for an Automation account

PS C:\>$Tags = @{"tag01"="value01";"tag02"="value02"}
PS C:\> Set-AzureRmAutomationAccount -Name "AutomationAccount01" -ResourceGroupName "ResourceGroup01" -Tags $Tags

The first command assigns two key/value pairs to the $Tags variable. The second command sets tags in $Tags for the Automation account named AutomationAccount01.

Example 2: Change the plan for an Automation account

PS C:\>Set-AzureRmAutomationAccount -Name "AutomationAccount01" -ResourceGroupName "ResourceGroup01" -Plan Basic

This command changes the plan to Basic for the Automation account named AutomationAccount01.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Type:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the Automation account that this cmdlet modifies.

Type:String
Aliases:AutomationAccountName
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-Plan

Specifies the plan for the Automation account. Valid values are:

  • Basic
  • Free
Type:String
Accepted values:Free, Basic
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of a resource group that contains the Automation account that this cmdlet modifies.

Type:String
Position:0
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
-Tags

Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"}

Type:IDictionary
Aliases:Tag
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

IDictionary

Outputs

AutomationAccount