StorageAccountCreateParameters Class
The parameters used when creating a storage account.
All required parameters must be populated in order to send to server.
- Inheritance
-
azure.mgmt.storage._serialization.ModelStorageAccountCreateParameters
Constructor
StorageAccountCreateParameters(*, sku: _models.Sku, kind: str | _models.Kind, location: str, extended_location: _models.ExtendedLocation | None = None, tags: Dict[str, str] | None = None, identity: _models.Identity | None = None, custom_domain: _models.CustomDomain | None = None, encryption: _models.Encryption | None = None, network_rule_set: _models.NetworkRuleSet | None = None, access_tier: str | _models.AccessTier | None = None, azure_files_identity_based_authentication: _models.AzureFilesIdentityBasedAuthentication | None = None, enable_https_traffic_only: bool | None = None, is_hns_enabled: bool | None = None, large_file_shares_state: str | _models.LargeFileSharesState | None = None, routing_preference: _models.RoutingPreference | None = None, allow_blob_public_access: bool | None = None, minimum_tls_version: str | _models.MinimumTlsVersion | None = None, allow_shared_key_access: bool | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
sku
|
Required. Gets or sets the SKU name. Required. |
kind
|
Required. Indicates the type of storage account. Required. Known values are: "Storage", "StorageV2", "BlobStorage", "FileStorage", and "BlockBlobStorage". |
location
|
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. Required. |
extended_location
|
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. |
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. |
identity
|
The identity of the resource. |
custom_domain
|
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. |
encryption
|
Not applicable. Azure Storage encryption is enabled for all storage accounts and cannot be disabled. |
network_rule_set
|
Network rule set. |
access_tier
|
str or
AccessTier
Required for storage accounts where kind = BlobStorage. The access tier used for billing. Known values are: "Hot" and "Cool". |
azure_files_identity_based_authentication
|
Provides the identity based authentication settings for Azure Files. |
enable_https_traffic_only
|
Allows https traffic only to storage service if sets to true. The default value is true since API version 2019-04-01. |
is_hns_enabled
|
Account HierarchicalNamespace enabled if sets to true. |
large_file_shares_state
|
Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Known values are: "Disabled" and "Enabled". |
routing_preference
|
Maintains information about the network routing choice opted by the user for data transfer. |
allow_blob_public_access
|
Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. |
minimum_tls_version
|
Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Known values are: "TLS1_0", "TLS1_1", and "TLS1_2". |
allow_shared_key_access
|
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. |
Variables
Name | Description |
---|---|
sku
|
Required. Gets or sets the SKU name. Required. |
kind
|
Required. Indicates the type of storage account. Required. Known values are: "Storage", "StorageV2", "BlobStorage", "FileStorage", and "BlockBlobStorage". |
location
|
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. Required. |
extended_location
|
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. |
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. |
identity
|
The identity of the resource. |
custom_domain
|
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. |
encryption
|
Not applicable. Azure Storage encryption is enabled for all storage accounts and cannot be disabled. |
network_rule_set
|
Network rule set. |
access_tier
|
str or
AccessTier
Required for storage accounts where kind = BlobStorage. The access tier used for billing. Known values are: "Hot" and "Cool". |
azure_files_identity_based_authentication
|
Provides the identity based authentication settings for Azure Files. |
enable_https_traffic_only
|
Allows https traffic only to storage service if sets to true. The default value is true since API version 2019-04-01. |
is_hns_enabled
|
Account HierarchicalNamespace enabled if sets to true. |
large_file_shares_state
|
Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Known values are: "Disabled" and "Enabled". |
routing_preference
|
Maintains information about the network routing choice opted by the user for data transfer. |
allow_blob_public_access
|
Allow or disallow public access to all blobs or containers in the storage account. The default interpretation is true for this property. |
minimum_tls_version
|
Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Known values are: "TLS1_0", "TLS1_1", and "TLS1_2". |
allow_shared_key_access
|
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. |
Azure SDK for Python