Partilhar via


StorageResources.CreateAccount(String, Nullable<Int32>) Method

Definition

Create a new Azure Storage account.

public static Azure.Provisioning.Storage.StorageAccount CreateAccount (string resourceName, int? infrastructureVersion = 2);
static member CreateAccount : string * Nullable<int> -> Azure.Provisioning.Storage.StorageAccount
Public Shared Function CreateAccount (resourceName As String, Optional infrastructureVersion As Nullable(Of Integer) = 2) As StorageAccount

Parameters

resourceName
String

The friendly name of the Storage account that by default is used as a prefix for the Azure name.

infrastructureVersion
Nullable<Int32>

Determines the version of the resource to create. It always defaults to the latest, but you can hard code it for long term stability.

Returns

Applies to