Condividi tramite


StorageAccountCreateParameters Class

Definition

The parameters used when creating a storage account.

[Microsoft.Rest.Serialization.JsonTransformation]
public class StorageAccountCreateParameters
[<Microsoft.Rest.Serialization.JsonTransformation>]
type StorageAccountCreateParameters = class
Public Class StorageAccountCreateParameters
Inheritance
StorageAccountCreateParameters
Attributes

Constructors

StorageAccountCreateParameters()

Initializes a new instance of the StorageAccountCreateParameters class.

StorageAccountCreateParameters(Sku, String, String, ExtendedLocation, IDictionary<String,String>, Identity, SasPolicy, KeyPolicy, CustomDomain, Encryption, NetworkRuleSet, Nullable<AccessTier>, AzureFilesIdentityBasedAuthentication, Nullable<Boolean>, Nullable<Boolean>, String, RoutingPreference, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>)

Initializes a new instance of the StorageAccountCreateParameters class.

Properties

AccessTier

Gets or sets required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: 'Hot', 'Cool'

AllowBlobPublicAccess

Gets or sets allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property.

AllowSharedKeyAccess

Gets or sets indicates whether the storage account permits requests to be authorized with the account access key via Shared Key. If false, then all requests, including shared access signatures, must be authorized with Azure Active Directory (Azure AD). The default value is null, which is equivalent to true.

AzureFilesIdentityBasedAuthentication

Gets or sets provides the identity based authentication settings for Azure Files.

CustomDomain

Gets or sets user domain assigned to the storage account. Name is the CNAME source. Only one custom domain is supported per storage account at this time. To clear the existing custom domain, use an empty string for the custom domain name property.

EnableHttpsTrafficOnly

Gets or sets allows https traffic only to storage service if sets to true. The default value is true since API version 2019-04-01.

EnableNfsV3

Gets or sets NFS 3.0 protocol support enabled if set to true.

Encryption

Gets or sets not applicable. Azure Storage encryption is enabled for all storage accounts and cannot be disabled.

ExtendedLocation

Gets or sets optional. Set the extended location of the resource. If not set, the storage account will be created in Azure main region. Otherwise it will be created in the specified extended location

Identity

Gets or sets the identity of the resource.

IsHnsEnabled

Gets or sets account HierarchicalNamespace enabled if sets to true.

KeyPolicy

Gets or sets keyPolicy assigned to the storage account.

Kind

Gets or sets required. Indicates the type of storage account. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage'

LargeFileSharesState

Gets or sets allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Possible values include: 'Disabled', 'Enabled'

Location

Gets or sets required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed.

MinimumTlsVersion

Gets or sets set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Possible values include: 'TLS1_0', 'TLS1_1', 'TLS1_2'

NetworkRuleSet

Gets or sets network rule set

RoutingPreference

Gets or sets maintains information about the network routing choice opted by the user for data transfer

SasPolicy

Gets or sets sasPolicy assigned to the storage account.

Sku

Gets or sets required. Gets or sets the SKU name.

Tags

Gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters.

Methods

Validate()

Validate the object.

Extension Methods

SetAsStandardGRS(StorageAccountCreateParameters)

Applies to