StorageAccount Constructors

Definition

Overloads

StorageAccount()

Initializes a new instance of the StorageAccount class.

StorageAccount(String, String, String, String, IDictionary<String, String>, Sku, String, Identity, ExtendedLocation, Nullable<ProvisioningState>, Endpoints, String, Nullable<AccountStatus>, Nullable<DateTime>, String, Nullable<AccountStatus>, Nullable<DateTime>, CustomDomain, SasPolicy, KeyPolicy, KeyCreationTime, Endpoints, Encryption, Nullable<AccessTier>, AzureFilesIdentityBasedAuthentication, Nullable<Boolean>, NetworkRuleSet, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GeoReplicationStats, Nullable<Boolean>, String, IList<PrivateEndpointConnection>, RoutingPreference, BlobRestoreStatus, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, ImmutableStorageAccount, String, StorageAccountSkuConversionStatus, String)

Initializes a new instance of the StorageAccount class.

StorageAccount()

Initializes a new instance of the StorageAccount class.

public StorageAccount ();
Public Sub New ()

Applies to

StorageAccount(String, String, String, String, IDictionary<String, String>, Sku, String, Identity, ExtendedLocation, Nullable<ProvisioningState>, Endpoints, String, Nullable<AccountStatus>, Nullable<DateTime>, String, Nullable<AccountStatus>, Nullable<DateTime>, CustomDomain, SasPolicy, KeyPolicy, KeyCreationTime, Endpoints, Encryption, Nullable<AccessTier>, AzureFilesIdentityBasedAuthentication, Nullable<Boolean>, NetworkRuleSet, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, GeoReplicationStats, Nullable<Boolean>, String, IList<PrivateEndpointConnection>, RoutingPreference, BlobRestoreStatus, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, ImmutableStorageAccount, String, StorageAccountSkuConversionStatus, String)

Initializes a new instance of the StorageAccount class.

public StorageAccount (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Storage.Models.Sku sku = default, string kind = default, Microsoft.Azure.Management.Storage.Models.Identity identity = default, Microsoft.Azure.Management.Storage.Models.ExtendedLocation extendedLocation = default, Microsoft.Azure.Management.Storage.Models.ProvisioningState? provisioningState = default, Microsoft.Azure.Management.Storage.Models.Endpoints primaryEndpoints = default, string primaryLocation = default, Microsoft.Azure.Management.Storage.Models.AccountStatus? statusOfPrimary = default, DateTime? lastGeoFailoverTime = default, string secondaryLocation = default, Microsoft.Azure.Management.Storage.Models.AccountStatus? statusOfSecondary = default, DateTime? creationTime = default, Microsoft.Azure.Management.Storage.Models.CustomDomain customDomain = default, Microsoft.Azure.Management.Storage.Models.SasPolicy sasPolicy = default, Microsoft.Azure.Management.Storage.Models.KeyPolicy keyPolicy = default, Microsoft.Azure.Management.Storage.Models.KeyCreationTime keyCreationTime = default, Microsoft.Azure.Management.Storage.Models.Endpoints secondaryEndpoints = default, Microsoft.Azure.Management.Storage.Models.Encryption encryption = default, Microsoft.Azure.Management.Storage.Models.AccessTier? accessTier = default, Microsoft.Azure.Management.Storage.Models.AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = default, bool? enableHttpsTrafficOnly = default, Microsoft.Azure.Management.Storage.Models.NetworkRuleSet networkRuleSet = default, bool? isSftpEnabled = default, bool? isLocalUserEnabled = default, bool? isHnsEnabled = default, Microsoft.Azure.Management.Storage.Models.GeoReplicationStats geoReplicationStats = default, bool? failoverInProgress = default, string largeFileSharesState = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.PrivateEndpointConnection> privateEndpointConnections = default, Microsoft.Azure.Management.Storage.Models.RoutingPreference routingPreference = default, Microsoft.Azure.Management.Storage.Models.BlobRestoreStatus blobRestoreStatus = default, bool? allowBlobPublicAccess = default, string minimumTlsVersion = default, bool? allowSharedKeyAccess = default, bool? enableNfsV3 = default, bool? allowCrossTenantReplication = default, bool? defaultToOAuthAuthentication = default, string publicNetworkAccess = default, Microsoft.Azure.Management.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning = default, string allowedCopyScope = default, Microsoft.Azure.Management.Storage.Models.StorageAccountSkuConversionStatus storageAccountSkuConversionStatus = default, string dnsEndpointType = default);
new Microsoft.Azure.Management.Storage.Models.StorageAccount : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Storage.Models.Sku * string * Microsoft.Azure.Management.Storage.Models.Identity * Microsoft.Azure.Management.Storage.Models.ExtendedLocation * Nullable<Microsoft.Azure.Management.Storage.Models.ProvisioningState> * Microsoft.Azure.Management.Storage.Models.Endpoints * string * Nullable<Microsoft.Azure.Management.Storage.Models.AccountStatus> * Nullable<DateTime> * string * Nullable<Microsoft.Azure.Management.Storage.Models.AccountStatus> * Nullable<DateTime> * Microsoft.Azure.Management.Storage.Models.CustomDomain * Microsoft.Azure.Management.Storage.Models.SasPolicy * Microsoft.Azure.Management.Storage.Models.KeyPolicy * Microsoft.Azure.Management.Storage.Models.KeyCreationTime * Microsoft.Azure.Management.Storage.Models.Endpoints * Microsoft.Azure.Management.Storage.Models.Encryption * Nullable<Microsoft.Azure.Management.Storage.Models.AccessTier> * Microsoft.Azure.Management.Storage.Models.AzureFilesIdentityBasedAuthentication * Nullable<bool> * Microsoft.Azure.Management.Storage.Models.NetworkRuleSet * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.Azure.Management.Storage.Models.GeoReplicationStats * Nullable<bool> * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.PrivateEndpointConnection> * Microsoft.Azure.Management.Storage.Models.RoutingPreference * Microsoft.Azure.Management.Storage.Models.BlobRestoreStatus * Nullable<bool> * string * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * string * Microsoft.Azure.Management.Storage.Models.ImmutableStorageAccount * string * Microsoft.Azure.Management.Storage.Models.StorageAccountSkuConversionStatus * string -> Microsoft.Azure.Management.Storage.Models.StorageAccount
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional sku As Sku = Nothing, Optional kind As String = Nothing, Optional identity As Identity = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional provisioningState As Nullable(Of ProvisioningState) = Nothing, Optional primaryEndpoints As Endpoints = Nothing, Optional primaryLocation As String = Nothing, Optional statusOfPrimary As Nullable(Of AccountStatus) = Nothing, Optional lastGeoFailoverTime As Nullable(Of DateTime) = Nothing, Optional secondaryLocation As String = Nothing, Optional statusOfSecondary As Nullable(Of AccountStatus) = Nothing, Optional creationTime As Nullable(Of DateTime) = Nothing, Optional customDomain As CustomDomain = Nothing, Optional sasPolicy As SasPolicy = Nothing, Optional keyPolicy As KeyPolicy = Nothing, Optional keyCreationTime As KeyCreationTime = Nothing, Optional secondaryEndpoints As Endpoints = Nothing, Optional encryption As Encryption = Nothing, Optional accessTier As Nullable(Of AccessTier) = Nothing, Optional azureFilesIdentityBasedAuthentication As AzureFilesIdentityBasedAuthentication = Nothing, Optional enableHttpsTrafficOnly As Nullable(Of Boolean) = Nothing, Optional networkRuleSet As NetworkRuleSet = Nothing, Optional isSftpEnabled As Nullable(Of Boolean) = Nothing, Optional isLocalUserEnabled As Nullable(Of Boolean) = Nothing, Optional isHnsEnabled As Nullable(Of Boolean) = Nothing, Optional geoReplicationStats As GeoReplicationStats = Nothing, Optional failoverInProgress As Nullable(Of Boolean) = Nothing, Optional largeFileSharesState As String = Nothing, Optional privateEndpointConnections As IList(Of PrivateEndpointConnection) = Nothing, Optional routingPreference As RoutingPreference = Nothing, Optional blobRestoreStatus As BlobRestoreStatus = Nothing, Optional allowBlobPublicAccess As Nullable(Of Boolean) = Nothing, Optional minimumTlsVersion As String = Nothing, Optional allowSharedKeyAccess As Nullable(Of Boolean) = Nothing, Optional enableNfsV3 As Nullable(Of Boolean) = Nothing, Optional allowCrossTenantReplication As Nullable(Of Boolean) = Nothing, Optional defaultToOAuthAuthentication As Nullable(Of Boolean) = Nothing, Optional publicNetworkAccess As String = Nothing, Optional immutableStorageWithVersioning As ImmutableStorageAccount = Nothing, Optional allowedCopyScope As String = Nothing, Optional storageAccountSkuConversionStatus As StorageAccountSkuConversionStatus = Nothing, Optional dnsEndpointType As String = Nothing)

Parameters

location
String

The geo-location where the resource lives

id
String

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

The name of the resource

type
String

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

tags
IDictionary<String,String>

Resource tags.

sku
Sku

Gets the SKU.

kind
String

Gets the Kind. Possible values include: 'Storage', 'StorageV2', 'BlobStorage', 'FileStorage', 'BlockBlobStorage'

identity
Identity

The identity of the resource.

extendedLocation
ExtendedLocation

The extendedLocation of the resource.

provisioningState
Nullable<ProvisioningState>

Gets the status of the storage account at the time the operation was called. Possible values include: 'Creating', 'ResolvingDNS', 'Succeeded'

primaryEndpoints
Endpoints

Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object. Note that Standard_ZRS and Premium_LRS accounts only return the blob endpoint.

primaryLocation
String

Gets the location of the primary data center for the storage account.

statusOfPrimary
Nullable<AccountStatus>

Gets the status indicating whether the primary location of the storage account is available or unavailable. Possible values include: 'available', 'unavailable'

lastGeoFailoverTime
Nullable<DateTime>

Gets the timestamp of the most recent instance of a failover to the secondary location. Only the most recent timestamp is retained. This element is not returned if there has never been a failover instance. Only available if the accountType is Standard_GRS or Standard_RAGRS.

secondaryLocation
String

Gets the location of the geo-replicated secondary for the storage account. Only available if the accountType is Standard_GRS or Standard_RAGRS.

statusOfSecondary
Nullable<AccountStatus>

Gets the status indicating whether the secondary location of the storage account is available or unavailable. Only available if the SKU name is Standard_GRS or Standard_RAGRS. Possible values include: 'available', 'unavailable'

creationTime
Nullable<DateTime>

Gets the creation date and time of the storage account in UTC.

customDomain
CustomDomain

Gets the custom domain the user assigned to this storage account.

sasPolicy
SasPolicy

SasPolicy assigned to the storage account.

keyPolicy
KeyPolicy

KeyPolicy assigned to the storage account.

keyCreationTime
KeyCreationTime

Storage account keys creation time.

secondaryEndpoints
Endpoints

Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object from the secondary location of the storage account. Only available if the SKU name is Standard_RAGRS.

encryption
Encryption

Encryption settings to be used for server-side encryption for the storage account.

accessTier
Nullable<AccessTier>

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'

azureFilesIdentityBasedAuthentication
AzureFilesIdentityBasedAuthentication

Provides the identity based authentication settings for Azure Files.

enableHttpsTrafficOnly
Nullable<Boolean>

Allows https traffic only to storage service if sets to true.

networkRuleSet
NetworkRuleSet

Network rule set

isSftpEnabled
Nullable<Boolean>

Enables Secure File Transfer Protocol, if set to true

isLocalUserEnabled
Nullable<Boolean>

Enables local users feature, if set to true

isHnsEnabled
Nullable<Boolean>

Account HierarchicalNamespace enabled if sets to true.

geoReplicationStats
GeoReplicationStats

Geo Replication Stats

failoverInProgress
Nullable<Boolean>

If the failover is in progress, the value will be true, otherwise, it will be null.

largeFileSharesState
String

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

privateEndpointConnections
IList<PrivateEndpointConnection>

List of private endpoint connection associated with the specified storage account

routingPreference
RoutingPreference

Maintains information about the network routing choice opted by the user for data transfer

blobRestoreStatus
BlobRestoreStatus

Blob restore status

allowBlobPublicAccess
Nullable<Boolean>

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

minimumTlsVersion
String

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'

allowSharedKeyAccess
Nullable<Boolean>

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.

enableNfsV3
Nullable<Boolean>

NFS 3.0 protocol support enabled if set to true.

allowCrossTenantReplication
Nullable<Boolean>

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

defaultToOAuthAuthentication
Nullable<Boolean>

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

publicNetworkAccess
String

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'

immutableStorageWithVersioning
ImmutableStorageAccount

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 containers in the account by default.

allowedCopyScope
String

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

storageAccountSkuConversionStatus
StorageAccountSkuConversionStatus

This property is readOnly and is set by server during asynchronous storage account sku conversion operations.

dnsEndpointType
String

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'

Applies to