Share via


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, String, String, SasPolicy, KeyPolicy, CustomDomain, Encryption, NetworkRuleSet, Nullable<AccessTier>, AzureFilesIdentityBasedAuthentication, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, RoutingPreference, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, ImmutableStorageAccount, String)

Initializes a new instance of the StorageAccountCreateParameters class.

Properties

AccessTier

Gets or sets required for storage accounts where kind = BlobStorage. The access tier is used for billing. The 'Premium' access tier is the default value for premium block blobs storage account type and it cannot be changed for the premium block blobs storage account type. Possible values include: 'Hot', 'Cool', 'Premium'

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.

AllowCrossTenantReplication

Gets or sets allow or disallow cross AAD tenant object replication. The default interpretation is true for this property.

AllowedCopyScope

Gets or sets restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet. Possible values include: 'PrivateLink', 'AAD'

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.

DefaultToOAuthAuthentication

Gets or sets a boolean flag which indicates whether the default authentication is OAuth or not. The default interpretation is false for this property.

DnsEndpointType

Gets or sets allows you to specify the type of endpoint. Set this to AzureDNSZone to create a large number of accounts in a single subscription, which creates accounts in an Azure DNS Zone and the endpoint URL will have an alphanumeric DNS Zone identifier. Possible values include: 'Standard', 'AzureDnsZone'

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 encryption settings to be used for server-side encryption for the storage account.

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.

ImmutableStorageWithVersioning

Gets or sets the property is immutable and can only be set to true at the account creation time. When set to true, it enables object level immutability for all the new containers in the account by default.

IsHnsEnabled

Gets or sets account HierarchicalNamespace enabled if sets to true.

IsLocalUserEnabled

Gets or sets enables local users feature, if set to true

IsSftpEnabled

Gets or sets enables Secure File Transfer Protocol, if set 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

PublicNetworkAccess

Gets or sets allow or disallow public network access to Storage Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'

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.

Applies to