StorageAccountCreateParameters Class

The parameters used when creating a storage account.

All required parameters must be populated in order to send to Azure.

Inheritance
StorageAccountCreateParameters

Constructor

StorageAccountCreateParameters(*, sku: azure.mgmt.storage.v2019_04_01.models._models_py3.Sku, kind: Union[str, azure.mgmt.storage.v2019_04_01.models._storage_management_client_enums.Kind], location: str, tags: Optional[Dict[str, str]] = None, identity: Optional[azure.mgmt.storage.v2019_04_01.models._models_py3.Identity] = None, custom_domain: Optional[azure.mgmt.storage.v2019_04_01.models._models_py3.CustomDomain] = None, encryption: Optional[azure.mgmt.storage.v2019_04_01.models._models_py3.Encryption] = None, network_rule_set: Optional[azure.mgmt.storage.v2019_04_01.models._models_py3.NetworkRuleSet] = None, access_tier: Optional[Union[str, azure.mgmt.storage.v2019_04_01.models._storage_management_client_enums.AccessTier]] = None, azure_files_identity_based_authentication: Optional[azure.mgmt.storage.v2019_04_01.models._models_py3.AzureFilesIdentityBasedAuthentication] = None, enable_https_traffic_only: Optional[bool] = None, is_hns_enabled: Optional[bool] = None, large_file_shares_state: Optional[Union[str, azure.mgmt.storage.v2019_04_01.models._storage_management_client_enums.LargeFileSharesState]] = None, allow_blob_public_access: Optional[bool] = None, minimum_tls_version: Optional[Union[str, azure.mgmt.storage.v2019_04_01.models._storage_management_client_enums.MinimumTlsVersion]] = None, allow_shared_key_access: Optional[bool] = None, **kwargs)

Variables

sku
Sku

Required. Required. Gets or sets the SKU name.

kind
str or Kind

Required. Required. Indicates the type of storage account. Possible values include: "Storage", "StorageV2", "BlobStorage", "FileStorage", "BlockBlobStorage".

location
str

Required. 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.

tags
dict[str, str]

A set of 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
Identity

The identity of the resource.

custom_domain
CustomDomain

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
Encryption

Not applicable. Azure Storage encryption is enabled for all storage accounts and cannot be disabled.

network_rule_set
NetworkRuleSet

Network rule set.

access_tier
str or AccessTier

Required for storage accounts where kind = BlobStorage. The access tier used for billing. Possible values include: "Hot", "Cool".

azure_files_identity_based_authentication
AzureFilesIdentityBasedAuthentication

Provides the identity based authentication settings for Azure Files.

enable_https_traffic_only
<xref:enable_https_traffic_only>)<xref: >(bool

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
bool

Account HierarchicalNamespace enabled if sets to true.

large_file_shares_state
str or LargeFileSharesState

Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled. Possible values include: "Disabled", "Enabled".

allow_blob_public_access
bool

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
str or MinimumTlsVersion

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".

allow_shared_key_access
bool

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.