ArmStorageModelFactory.StorageAccountData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of StorageAccountData.
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.StorageSku sku = default, Azure.ResourceManager.Storage.Models.StorageKind? kind = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, Azure.ResourceManager.Storage.Models.StorageProvisioningState? 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, int? keyExpirationPeriodInDays = 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);
static member StorageAccountData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.Storage.Models.StorageSku * Nullable<Azure.ResourceManager.Storage.Models.StorageKind> * Azure.ResourceManager.Models.ManagedServiceIdentity * Azure.ResourceManager.Resources.Models.ExtendedLocation * Nullable<Azure.ResourceManager.Storage.Models.StorageProvisioningState> * 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 * Nullable<int> * 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.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 sku As StorageSku = Nothing, Optional kind As Nullable(Of StorageKind) = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional provisioningState As Nullable(Of StorageProvisioningState) = 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 keyExpirationPeriodInDays As Nullable(Of Integer) = 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) As StorageAccountData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- tags
- IDictionary<String,String>
The tags.
- location
- AzureLocation
The location.
- 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.
- provisioningState
- Nullable<StorageProvisioningState>
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.
Allows https traffic only to storage service if sets to true.
- networkRuleSet
- StorageAccountNetworkRuleSet
Network rule set.
Enables extended group support with local users feature, if set to true.
- geoReplicationStats
- GeoReplicationStatistics
Geo Replication Stats.
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.
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.
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.
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.
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.
This property will be set to true or false on an event of ongoing migration. Default value is null.
If customer initiated account migration is in progress, the value will be true else it will be null.
Returns
A new StorageAccountData instance for mocking.
Applies to
Azure SDK for .NET