New-​Azure​Rm​Batch​Account

Creates a Batch account.

Syntax

New-AzureRmBatchAccount
   [-AccountName] <String>
   [-Location] <String>
   [-ResourceGroupName] <String>
   [[-AutoStorageAccountId] <String>]
   [-Tag <Hashtable>]
   [<CommonParameters>]

Description

The New-AzureRmBatchAccount cmdlet creates an Azure Batch account for the specified resource group and location.

Examples

Example 1: Create a Batch account

PS C:\>New-AzureRmBatchAccount -AccountName "pfuller" -ResourceGroupName "ResourceGroup03" -Location "WestUS"
AccountName                  : pfuller

Location                     : westus

ResourceGroupName            : ResourceGroup03

CoreQuota                    : 20

PoolQuota                    : 20

ActiveJobAndJobScheduleQuota : 20

Tags                         : 
TaskTenantUrl                : https://cmdletexample.westus.batch.azure.com

This command creates a Batch account named pfuller using the ResourceGroup03 resource group in the West US location.

Required Parameters

-AccountName

Specifies the name of the Batch account that this cmdlet creates.Batch account names must be between 3 and 24 characters long and contain only numbers and lowercase letters.

Type:String
Aliases:Name
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Location

Specifies the region where this cmdlet creates the account. For more information, see Azure Regionshttps://azure.microsoft.com/en-us/regions/ (https://azure.microsoft.com/en-us/regions).

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Specifies the name of the resource group in which this cmdlet creates the account.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-AutoStorageAccountId

Specifies the resource ID of the storage account to be used for auto storage.

Type:String
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Tag

Specifies an array of hash tables of tags for the account.

Type:Hashtable
Aliases:Tags
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Outputs

BatchAccountContext