Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
New-AzAutomationAccount
- Module:
- Az.Automation Module
Creates an Automation account.
Syntax
AutomationServicesEncryption (Default)
New-AzAutomationAccount
[-ResourceGroupName] <String>
[-Name] <String>
[-Location] <String>
[-Plan <String>]
[-Tags <IDictionary>]
[-AssignSystemIdentity]
[-AssignUserIdentity <String[]>]
[-AutomationServicesEncryption]
[-DisablePublicNetworkAccess]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
KeyVaultEncryption
New-AzAutomationAccount
[-ResourceGroupName] <String>
[-Name] <String>
[-Location] <String>
-KeyName <String>
-KeyVersion <String>
-KeyVaultUri <String>
[-Plan <String>]
[-Tags <IDictionary>]
[-AssignSystemIdentity]
[-AssignUserIdentity <String[]>]
[-KeyVaultEncryption]
[-UserIdentityEncryption <String>]
[-DisablePublicNetworkAccess]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzAutomationAccount cmdlet creates an Azure Automation account in a resource group. An Automation account is a container for Automation resources that is isolated from the resources of other Automation accounts. Automation resources include runbooks, Desired State Configuration (DSC) configurations, jobs, and assets.
Examples
Example 1: Create an automation account
New-AzAutomationAccount -Name "ContosoAutomationAccount" -Location "East US" -ResourceGroupName "ResourceGroup01"
This command creates a new automation account named ContosoAutomationAccount in the East US region.
Example 2
Creates an Automation account. (autogenerated)
New-AzAutomationAccount -Location 'East US' -Name 'ContosoAutomationAccount' -ResourceGroupName 'ResourceGroup01' -Tags <IDictionary>
Parameters
-AssignSystemIdentity
Generate and assign a new System Identity for this automation account
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-AssignUserIdentity
Assign the User Assigned Identities to this automation account
Parameter properties
| Type: | String[] |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-AutomationServicesEncryption
Specify whether set Automation Account KeySource to Microsoft.Automation or not.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure
Parameter properties
| Type: | IAzureContextContainer |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
-DisablePublicNetworkAccess
Whether to disable traffic on the non-ARM endpoints (Webhook/Agent) from the public internet
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-KeyName
CMK KeyName
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-KeyVaultEncryption
Specify whether set Automation Account KeySource to Microsoft.KeyVault (enable CMK) or not.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-KeyVaultUri
CMK KeyVaultUri
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-KeyVersion
CMK KeyVersion
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-Location
Specifies the location in which this cmdlet creates the Automation account. To obtain valid locations, use the Get-AzLocation cmdlet.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-Name
Specifies a name for the Automation account.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | AutomationAccountName |
Parameter sets
-Plan
Specifies the plan for the Automation account. Valid values are:
- Basic
- Free
Parameter properties
| Type: | String |
| Default value: | None |
| Accepted values: | Free, Basic |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-ResourceGroupName
Specifies the name of a resource group to which this cmdlet adds an Automation account.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
-Tags
Key-value pairs in the form of a hash table. For example: @{key0="value0";key1=$null;key2="value2"}
Parameter properties
| Type: | IDictionary |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | Tag |
Parameter sets
-UserIdentityEncryption
User Assigned Identity used for encryption
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
String
IDictionary
Outputs
AutomationAccount
Related Links
Azure PowerShell
Feedback
Was this page helpful?
