Share via


ArmStorageModelFactory.StorageAccountCreateOrUpdateContent Method

Definition

Initializes a new instance of StorageAccountCreateOrUpdateContent.

public static Azure.ResourceManager.Storage.Models.StorageAccountCreateOrUpdateContent StorageAccountCreateOrUpdateContent (Azure.ResourceManager.Storage.Models.StorageSku sku = default, Azure.ResourceManager.Storage.Models.StorageKind kind = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, Azure.ResourceManager.Storage.Models.AllowedCopyScope? allowedCopyScope = default, Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess? publicNetworkAccess = default, Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy sasPolicy = default, int? keyExpirationPeriodInDays = default, Azure.ResourceManager.Storage.Models.StorageCustomDomain customDomain = default, Azure.ResourceManager.Storage.Models.StorageAccountEncryption encryption = default, Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet networkRuleSet = default, Azure.ResourceManager.Storage.Models.StorageAccountAccessTier? accessTier = default, Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication azureFilesIdentityBasedAuthentication = default, bool? enableHttpsTrafficOnly = default, bool? isSftpEnabled = default, bool? isLocalUserEnabled = default, bool? isExtendedGroupEnabled = default, bool? isHnsEnabled = default, Azure.ResourceManager.Storage.Models.LargeFileSharesState? largeFileSharesState = default, Azure.ResourceManager.Storage.Models.StorageRoutingPreference routingPreference = 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.ImmutableStorageAccount immutableStorageWithVersioning = default, Azure.ResourceManager.Storage.Models.StorageDnsEndpointType? dnsEndpointType = default);
static member StorageAccountCreateOrUpdateContent : Azure.ResourceManager.Storage.Models.StorageSku * Azure.ResourceManager.Storage.Models.StorageKind * Azure.Core.AzureLocation * Azure.ResourceManager.Resources.Models.ExtendedLocation * System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.Models.ManagedServiceIdentity * Nullable<Azure.ResourceManager.Storage.Models.AllowedCopyScope> * Nullable<Azure.ResourceManager.Storage.Models.StoragePublicNetworkAccess> * Azure.ResourceManager.Storage.Models.StorageAccountSasPolicy * Nullable<int> * Azure.ResourceManager.Storage.Models.StorageCustomDomain * Azure.ResourceManager.Storage.Models.StorageAccountEncryption * Azure.ResourceManager.Storage.Models.StorageAccountNetworkRuleSet * Nullable<Azure.ResourceManager.Storage.Models.StorageAccountAccessTier> * Azure.ResourceManager.Storage.Models.FilesIdentityBasedAuthentication * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<Azure.ResourceManager.Storage.Models.LargeFileSharesState> * Azure.ResourceManager.Storage.Models.StorageRoutingPreference * Nullable<bool> * Nullable<Azure.ResourceManager.Storage.Models.StorageMinimumTlsVersion> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Azure.ResourceManager.Storage.Models.ImmutableStorageAccount * Nullable<Azure.ResourceManager.Storage.Models.StorageDnsEndpointType> -> Azure.ResourceManager.Storage.Models.StorageAccountCreateOrUpdateContent
Public Shared Function StorageAccountCreateOrUpdateContent (Optional sku As StorageSku = Nothing, Optional kind As StorageKind = Nothing, Optional location As AzureLocation = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional allowedCopyScope As Nullable(Of AllowedCopyScope) = Nothing, Optional publicNetworkAccess As Nullable(Of StoragePublicNetworkAccess) = Nothing, Optional sasPolicy As StorageAccountSasPolicy = Nothing, Optional keyExpirationPeriodInDays As Nullable(Of Integer) = Nothing, Optional customDomain As StorageCustomDomain = Nothing, Optional encryption As StorageAccountEncryption = Nothing, Optional networkRuleSet As StorageAccountNetworkRuleSet = Nothing, Optional accessTier As Nullable(Of StorageAccountAccessTier) = Nothing, Optional azureFilesIdentityBasedAuthentication As FilesIdentityBasedAuthentication = Nothing, Optional enableHttpsTrafficOnly As Nullable(Of Boolean) = 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 largeFileSharesState As Nullable(Of LargeFileSharesState) = Nothing, Optional routingPreference As StorageRoutingPreference = 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 immutableStorageWithVersioning As ImmutableStorageAccount = Nothing, Optional dnsEndpointType As Nullable(Of StorageDnsEndpointType) = Nothing) As StorageAccountCreateOrUpdateContent

Parameters

sku
StorageSku

Required. Gets or sets the SKU name.

kind
StorageKind

Required. Indicates the type of storage account.

location
AzureLocation

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.

extendedLocation
ExtendedLocation

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.

tags
IDictionary<String,String>

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.

identity
ManagedServiceIdentity

The identity of the resource.

allowedCopyScope
Nullable<AllowedCopyScope>

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

publicNetworkAccess
Nullable<StoragePublicNetworkAccess>

Allow, disallow, or let Network Security Perimeter configuration to evaluate public network access to Storage Account. Value is optional but if passed in, must be 'Enabled', 'Disabled' or 'SecuredByPerimeter'.

sasPolicy
StorageAccountSasPolicy

SasPolicy assigned to the storage account.

keyExpirationPeriodInDays
Nullable<Int32>

KeyPolicy assigned to the storage account.

customDomain
StorageCustomDomain

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.

encryption
StorageAccountEncryption

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

networkRuleSet
StorageAccountNetworkRuleSet

Network rule set.

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. The default value is true since API version 2019-04-01.

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.

largeFileSharesState
Nullable<LargeFileSharesState>

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

routingPreference
StorageRoutingPreference

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

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.

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.

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

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.

Returns

A new StorageAccountCreateOrUpdateContent instance for mocking.

Applies to