< Back
Set-AzureRmAutomationAccount
Post
NAME Set-AzureRmAutomationAccount
SYNOPSIS
Modifies an Automation account.
SYNTAX
Set-AzureRmAutomationAccount [-ResourceGroupName] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>] [-Plan {Free | Basic}]
[-Tags <IDictionary>] [<CommonParameters>]
DESCRIPTION
The Set-AzureRmAutomationAccount cmdlet modifies an Azure Automation account.
For more information about Automation accounts, see the New-AzureRmAutomationAccount cmdlet.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the Automation account that this cmdlet modifies.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Plan <String>
Specifies the plan for the Automation account. Valid values are:
- Basic
- Free
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of a resource group that contains the Automation account that this cmdlet modifies.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Tags <IDictionary>
Key-value pairs in the form of a hash table. For example:
@{key0="value0";key1=$null;key2="value2"}
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Automation.Model.AutomationAccount
NOTES
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.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ionaccount
Get-AzureRmAutomationAccount
New-AzureRmAutomationAccount
Remove-AzureRmAutomationAccount
SYNOPSIS
Modifies an Automation account.
SYNTAX
Set-AzureRmAutomationAccount [-ResourceGroupName] <String> [-Name] <String> [-DefaultProfile <IAzureContextContainer>] [-Plan {Free | Basic}]
[-Tags <IDictionary>] [<CommonParameters>]
DESCRIPTION
The Set-AzureRmAutomationAccount cmdlet modifies an Azure Automation account.
For more information about Automation accounts, see the New-AzureRmAutomationAccount cmdlet.
PARAMETERS
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
Specifies the name of the Automation account that this cmdlet modifies.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Plan <String>
Specifies the plan for the Automation account. Valid values are:
- Basic
- Free
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of a resource group that contains the Automation account that this cmdlet modifies.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Tags <IDictionary>
Key-value pairs in the form of a hash table. For example:
@{key0="value0";key1=$null;key2="value2"}
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Automation.Model.AutomationAccount
NOTES
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.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ionaccount
Get-AzureRmAutomationAccount
New-AzureRmAutomationAccount
Remove-AzureRmAutomationAccount