共用方式為


StorageAccountCreateParameters Class

Definition

Parameters supplied to the Create Storage Account operation.

public class StorageAccountCreateParameters
type StorageAccountCreateParameters = class
Public Class StorageAccountCreateParameters
Inheritance
StorageAccountCreateParameters

Constructors

StorageAccountCreateParameters()

Initializes a new instance of the StorageAccountCreateParameters class.

StorageAccountCreateParameters(String, String)

Initializes a new instance of the StorageAccountCreateParameters class with required arguments.

Properties

AccountType

Optional. Specifies whether the account supports locally-redundant storage, geo-redundant storage, zone-redundant storage, or read access geo-redundant storage. Possible values are:'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', and 'Standard_RAGRS'.

AffinityGroup

Optional. The name of an existing affinity group in the specified subscription. Required if Location is not specified. You can include either a Location or AffinityGroup element in the request body, but not both. To list available affinity groups, use the List Affinity Groups operation.

Description

Optional. A description for the storage account. The description may be up to 1024 characters in length.

ExtendedProperties

Optional. Represents the name of an extended storage account property. Each extended property must have a defined name and a value. You can have a maximum of 50 extended property name/value pairs. The maximum length of the Name element is 64 characters, only alphanumeric characters and underscores are valid in the Name, and the name must start with a letter. Attempting to use other characters, starting the Name with a non-letter character, or entering a name that is identical to that of another extended property owned by the same storage account will result in a status code 400 (Bad Request) error. Each extended property value has a maximum length of 255 characters.

Label

Required. A name for the storage account, specified as abase64-encoded string. The name may be up to 100 characters in length. The name can be used identify the storage account for your tracking purposes.

Location

Optional. The location where the storage account is created. Required if AffinityGroup is not specified. You can include either a Location or AffinityGroup element in the request body, but not both. To list available locations, use the List Locations operation.

Name

Required. A name for the storage account, unique within Azure. Storage account names must be between 3 and 24 characters in length, and must use numbers and lower-case letters only. This name is the DNS prefix name and can be used to access blobs, queues, and tables in the storage account. For example: http://ServiceName.blob.core.windows.net/mycontainer/.

Applies to