Partager via


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>, GeoReplicationStats, Nullable<Boolean>, String, IList<PrivateEndpointConnection>, RoutingPreference, BlobRestoreStatus, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>)

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>, GeoReplicationStats, Nullable<Boolean>, String, IList<PrivateEndpointConnection>, RoutingPreference, BlobRestoreStatus, Nullable<Boolean>, String, Nullable<Boolean>, Nullable<Boolean>)

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.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Sku sku = default, string kind = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Identity identity = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.ExtendedLocation extendedLocation = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.ProvisioningState? provisioningState = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Endpoints primaryEndpoints = default, string primaryLocation = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.AccountStatus? statusOfPrimary = default, DateTime? lastGeoFailoverTime = default, string secondaryLocation = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.AccountStatus? statusOfSecondary = default, DateTime? creationTime = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.CustomDomain customDomain = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.SasPolicy sasPolicy = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.KeyPolicy keyPolicy = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.KeyCreationTime keyCreationTime = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Endpoints secondaryEndpoints = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Encryption encryption = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.AccessTier? accessTier = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.AzureFilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = default, bool? enableHttpsTrafficOnly = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.NetworkRuleSet networkRuleSet = default, bool? isHnsEnabled = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.GeoReplicationStats geoReplicationStats = default, bool? failoverInProgress = default, string largeFileSharesState = default, System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.PrivateEndpointConnection> privateEndpointConnections = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.RoutingPreference routingPreference = default, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.BlobRestoreStatus blobRestoreStatus = default, bool? allowBlobPublicAccess = default, string minimumTlsVersion = default, bool? allowSharedKeyAccess = default, bool? enableNfsV3 = default);
new Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.StorageAccount : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Sku * string * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Identity * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.ExtendedLocation * Nullable<Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.ProvisioningState> * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Endpoints * string * Nullable<Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.AccountStatus> * Nullable<DateTime> * string * Nullable<Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.AccountStatus> * Nullable<DateTime> * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.CustomDomain * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.SasPolicy * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.KeyPolicy * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.KeyCreationTime * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Endpoints * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Encryption * Nullable<Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.AccessTier> * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.AzureFilesIdentityBasedAuthentication * Nullable<bool> * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.NetworkRuleSet * Nullable<bool> * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.GeoReplicationStats * Nullable<bool> * string * System.Collections.Generic.IList<Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.PrivateEndpointConnection> * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.RoutingPreference * Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.BlobRestoreStatus * Nullable<bool> * string * Nullable<bool> * Nullable<bool> -> Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.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 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)

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

Gets the encryption settings on the account. If unspecified, the account is unencrypted.

accessTier
Nullable<AccessTier>

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

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

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.

Applies to