ArmStorageModelFactory.StorageAccountData Method

Definition

public static Azure.ResourceManager.Storage.StorageAccountData StorageAccountData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState? provisioningState = default, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints primaryEndpoints = default, Azure.Core.AzureLocation? primaryLocation = default, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfPrimary = default, DateTimeOffset? lastGeoFailoverOn = default, Azure.Core.AzureLocation? secondaryLocation = default, Azure.ResourceManager.Storage.Models.StorageAccountStatus? statusOfSecondary = default, DateTimeOffset? createdOn = default, Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain = default, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy = default, Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime keyCreationTime = default, Azure.ResourceManager.Storage.Models.StorageAccountEndpoints secondaryEndpoints = default, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption = default, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier = default, Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = default, bool? enableHttpsTrafficOnly = default, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet = default, bool? isSftpEnabled = default, bool? isLocalUserEnabled = default, bool? isExtendedGroupEnabled = default, bool? isHnsEnabled = default, Azure.ResourceManager.Storage.Models.GeoReplicationStatistics geoReplicationStats = default, bool? isFailoverInProgress = default, Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Storage.StoragePrivateEndpointConnectionData> privateEndpointConnections = default, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference = default, Azure.ResourceManager.Storage.Models.BlobRestoreStatus blobRestoreStatus = default, bool? allowBlobPublicAccess = default, Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion? minimumTlsVersion = default, bool? allowSharedKeyAccess = default, bool? isNfsV3Enabled = default, bool? allowCrossTenantReplication = default, bool? isDefaultToOAuthAuthentication = default, Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess = default, Azure.ResourceManager.Storage.Models.ImmutableStorageAccount immutableStorageWithVersioning = default, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope = default, Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus storageAccountSkuConversionStatus = default, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType = default, bool? isSkuConversionBlocked = default, bool? isAccountMigrationInProgress = default, Azure.ResourceManager.Storage.Models.StorageAccountSharedKeyAccessProperties allowSharedKeyAccessForServices = default, Azure.ResourceManager.Storage.Models.StorageDataCollaborationPolicyProperties dataCollaborationPolicyProperties = default, int? keyExpirationPeriodInDays = default, bool? isIPv6EndpointToBePublished = default, bool? isBlobEnabled = default, Azure.ResourceManager.Storage.Models.StorageSku sku = default, Azure.ResourceManager.Storage.Models.StorageKind? kind = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, System.Collections.Generic.IEnumerable<string> zones = default, Azure.ResourceManager.Storage.Models.StorageAccountZonePlacementPolicy? zonePlacementPolicy = default);
static member StorageAccountData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Nullable<Azure.ResourceManager.Storage.Models.StorageAccountProvisioningState> * Azure.ResourceManager.Storage.Models.StorageAccountEndpoints * Nullable<Azure.Core.AzureLocation> * Nullable<Azure.ResourceManager.Storage.Models.StorageAccountStatus> * Nullable<DateTimeOffset> * Nullable<Azure.Core.AzureLocation> * Nullable<Azure.ResourceManager.Storage.Models.StorageAccountStatus> * Nullable<DateTimeOffset> * Azure.ResourceManager.Storage.Models.StorageCustomDomain * Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy * Azure.ResourceManager.Storage.Models.StorageAccountKeyCreationTime * Azure.ResourceManager.Storage.Models.StorageAccountEndpoints * Azure.ResourceManager.Storage.Models.StorageAccountEncryption * Nullable<Azure.ResourceManager.Storage.Models.StorageAccountAccessTier> * Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication * Nullable<bool> * Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Azure.ResourceManager.Storage.Models.GeoReplicationStatistics * Nullable<bool> * Nullable<Azure.ResourceManager.Storage.Models.LargeFileSharesState> * seq<Azure.ResourceManager.Storage.StoragePrivateEndpointConnectionData> * Azure.ResourceManager.Storage.Models.StorageRoutingPreference * Azure.ResourceManager.Storage.Models.BlobRestoreStatus * Nullable<bool> * Nullable<Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess> * Azure.ResourceManager.Storage.Models.ImmutableStorageAccount * Nullable<Azure.ResourceManager.Storage.Models.AllowedCopyScope> * Azure.ResourceManager.Storage.Models.StorageAccountSkuConversionStatus * Nullable<Azure.ResourceManager.Storage.Models.StorageDnsEndpointType> * Nullable<bool> * Nullable<bool> * Azure.ResourceManager.Storage.Models.StorageAccountSharedKeyAccessProperties * Azure.ResourceManager.Storage.Models.StorageDataCollaborationPolicyProperties * Nullable<int> * Nullable<bool> * Nullable<bool> * Azure.ResourceManager.Storage.Models.StorageSku * Nullable<Azure.ResourceManager.Storage.Models.StorageKind> * Azure.ResourceManager.Models.ManagedServiceIdentity * Azure.ResourceManager.Resources.Models.ExtendedLocation * seq<string> * Nullable<Azure.ResourceManager.Storage.Models.StorageAccountZonePlacementPolicy> -> Azure.ResourceManager.Storage.StorageAccountData
Public Shared Function StorageAccountData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional provisioningState As Nullable(Of StorageAccountProvisioningState) = Nothing, Optional primaryEndpoints As StorageAccountEndpoints = Nothing, Optional primaryLocation As Nullable(Of AzureLocation) = Nothing, Optional statusOfPrimary As Nullable(Of StorageAccountStatus) = Nothing, Optional lastGeoFailoverOn As Nullable(Of DateTimeOffset) = Nothing, Optional secondaryLocation As Nullable(Of AzureLocation) = Nothing, Optional statusOfSecondary As Nullable(Of StorageAccountStatus) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional customDomain As StorageCustomDomain = Nothing, Optional sasPolicy As StorageAccountSasPolicy = Nothing, Optional keyCreationTime As StorageAccountKeyCreationTime = Nothing, Optional secondaryEndpoints As StorageAccountEndpoints = Nothing, Optional encryption As StorageAccountEncryption = Nothing, Optional accessTier As Nullable(Of StorageAccountAccessTier) = Nothing, Optional azureFilesIdentityBasedAuthentication As FilesIdentityBasedAuthentication = Nothing, Optional enableHttpsTrafficOnly As Nullable(Of Boolean) = Nothing, Optional networkRuleSet As StorageAccountNetworkRuleSet = Nothing, Optional isSftpEnabled As Nullable(Of Boolean) = Nothing, Optional isLocalUserEnabled As Nullable(Of Boolean) = Nothing, Optional isExtendedGroupEnabled As Nullable(Of Boolean) = Nothing, Optional isHnsEnabled As Nullable(Of Boolean) = Nothing, Optional geoReplicationStats As GeoReplicationStatistics = Nothing, Optional isFailoverInProgress As Nullable(Of Boolean) = Nothing, Optional largeFileSharesState As Nullable(Of LargeFileSharesState) = Nothing, Optional privateEndpointConnections As IEnumerable(Of StoragePrivateEndpointConnectionData) = Nothing, Optional routingPreference As StorageRoutingPreference = Nothing, Optional blobRestoreStatus As BlobRestoreStatus = Nothing, Optional allowBlobPublicAccess As Nullable(Of Boolean) = Nothing, Optional minimumTlsVersion As Nullable(Of StorageMinimumTlsVersion) = Nothing, Optional allowSharedKeyAccess As Nullable(Of Boolean) = Nothing, Optional isNfsV3Enabled As Nullable(Of Boolean) = Nothing, Optional allowCrossTenantReplication As Nullable(Of Boolean) = Nothing, Optional isDefaultToOAuthAuthentication As Nullable(Of Boolean) = Nothing, Optional publicNetworkAccess As Nullable(Of StoragePublicNetworkAccess) = Nothing, Optional immutableStorageWithVersioning As ImmutableStorageAccount = Nothing, Optional allowedCopyScope As Nullable(Of AllowedCopyScope) = Nothing, Optional storageAccountSkuConversionStatus As StorageAccountSkuConversionStatus = Nothing, Optional dnsEndpointType As Nullable(Of StorageDnsEndpointType) = Nothing, Optional isSkuConversionBlocked As Nullable(Of Boolean) = Nothing, Optional isAccountMigrationInProgress As Nullable(Of Boolean) = Nothing, Optional allowSharedKeyAccessForServices As StorageAccountSharedKeyAccessProperties = Nothing, Optional dataCollaborationPolicyProperties As StorageDataCollaborationPolicyProperties = Nothing, Optional keyExpirationPeriodInDays As Nullable(Of Integer) = Nothing, Optional isIPv6EndpointToBePublished As Nullable(Of Boolean) = Nothing, Optional isBlobEnabled As Nullable(Of Boolean) = Nothing, Optional sku As StorageSku = Nothing, Optional kind As Nullable(Of StorageKind) = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional zones As IEnumerable(Of String) = Nothing, Optional zonePlacementPolicy As Nullable(Of StorageAccountZonePlacementPolicy) = Nothing) As StorageAccountData

Parameters

id
ResourceIdentifier

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

name
String

The name of the resource.

resourceType
ResourceType

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

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags
IDictionary<String,String>

Resource tags.

location
AzureLocation

The geo-location where the resource lives.

provisioningState
Nullable<StorageAccountProvisioningState>

Gets the status of the storage account at the time the operation was called.

primaryEndpoints
StorageAccountEndpoints

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
Nullable<AzureLocation>

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

statusOfPrimary
Nullable<StorageAccountStatus>

Gets the status indicating whether the primary location of the storage account is available or unavailable.

lastGeoFailoverOn
Nullable<DateTimeOffset>

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
Nullable<AzureLocation>

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<StorageAccountStatus>

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.

createdOn
Nullable<DateTimeOffset>

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

customDomain
StorageCustomDomain

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

sasPolicy
StorageAccountSasPolicy

SasPolicy assigned to the storage account.

keyCreationTime
StorageAccountKeyCreationTime

Storage account keys creation time.

secondaryEndpoints
StorageAccountEndpoints

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
StorageAccountEncryption

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

accessTier
Nullable<StorageAccountAccessTier>

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.

azureFilesIdentityBasedAuthentication
FilesIdentityBasedAuthentication

Provides the identity based authentication settings for Azure Files.

enableHttpsTrafficOnly
Nullable<Boolean>

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

networkRuleSet
StorageAccountNetworkRuleSet

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.

isExtendedGroupEnabled
Nullable<Boolean>

Enables extended group support with local users feature, if set to true.

isHnsEnabled
Nullable<Boolean>

Account HierarchicalNamespace enabled if sets to true.

geoReplicationStats
GeoReplicationStatistics

Geo Replication Stats.

isFailoverInProgress
Nullable<Boolean>

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

largeFileSharesState
Nullable<LargeFileSharesState>

Allow large file shares if sets to Enabled. It cannot be disabled once it is enabled.

privateEndpointConnections
IEnumerable<StoragePrivateEndpointConnectionData>

List of private endpoint connection associated with the specified storage account.

routingPreference
StorageRoutingPreference

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 false for this property.

minimumTlsVersion
Nullable<StorageMinimumTlsVersion>

Set the minimum TLS version to be permitted on requests to storage. The default interpretation is TLS 1.0 for this property. Minimum TLS version 1.3 version is not supported.

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.

isNfsV3Enabled
Nullable<Boolean>

NFS 3.0 protocol support enabled if set to true.

allowCrossTenantReplication
Nullable<Boolean>

Allow or disallow cross AAD tenant object replication. Set this property to true for new or existing accounts only if object replication policies will involve storage accounts in different AAD tenants. The default interpretation is false for new accounts to follow best security practices by default.

isDefaultToOAuthAuthentication
Nullable<Boolean>

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

publicNetworkAccess
Nullable<StoragePublicNetworkAccess>

Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access to Storage Account.

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
Nullable<AllowedCopyScope>

Restrict copy to and from Storage Accounts within an AAD tenant or with Private Links to the same VNet.

storageAccountSkuConversionStatus
StorageAccountSkuConversionStatus

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

dnsEndpointType
Nullable<StorageDnsEndpointType>

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.

isSkuConversionBlocked
Nullable<Boolean>

This property will be set to true or false on an event of ongoing migration. Default value is null.

isAccountMigrationInProgress
Nullable<Boolean>

If customer initiated account migration is in progress, the value will be true else it will be null.

allowSharedKeyAccessForServices
StorageAccountSharedKeyAccessProperties

Indicate shared key access properties at service level.

dataCollaborationPolicyProperties
StorageDataCollaborationPolicyProperties

Data Collaboration policy for the storage account.

keyExpirationPeriodInDays
Nullable<Int32>

The key expiration period in days.

isIPv6EndpointToBePublished
Nullable<Boolean>

A boolean flag which indicates whether IPv6 storage endpoints are to be published.

isBlobEnabled
Nullable<Boolean>

Indicates whether Blob Geo Priority Replication is enabled for the storage account.

sku
StorageSku

Gets the SKU.

kind
Nullable<StorageKind>

Gets the Kind.

identity
ManagedServiceIdentity

The identity of the resource.

extendedLocation
ExtendedLocation

The extendedLocation of the resource.

zones
IEnumerable<String>

The availability zones.

zonePlacementPolicy
Nullable<StorageAccountZonePlacementPolicy>

The availability zone pinning policy for the storage account.

Returns

A new StorageAccountData instance for mocking.

Applies to