C# Class Elastacloud.AzureManagement.Fluent.Clients.StorageClientExtensions

Extensions on IStorageClient
Mostra file Open project: azurecoder/fluent-management

Public Methods

Method Description
CreateNewStorageAccountIfNotExists ( this storageClient, string storageAccountName, string location = LocationConstants.NorthEurope ) : void

If the subscription already contains a storage account by the same name create will be skipped.

TryCreateNewStorageAccount ( this storageClient, string storageAccountName, string location = LocationConstants.NorthEurope ) : bool

If the storage account already exists (have to be globally unique) - none will be created. Exceptions are handled.

Method Details

CreateNewStorageAccountIfNotExists() public static method

If the subscription already contains a storage account by the same name create will be skipped.
If the is not globally unique.
public static CreateNewStorageAccountIfNotExists ( this storageClient, string storageAccountName, string location = LocationConstants.NorthEurope ) : void
storageClient this The StorageClient that mapps our subscription.
storageAccountName string The Storage Account we want to create.
location string The location where we want the storage account.
return void

TryCreateNewStorageAccount() public static method

If the storage account already exists (have to be globally unique) - none will be created. Exceptions are handled.
public static TryCreateNewStorageAccount ( this storageClient, string storageAccountName, string location = LocationConstants.NorthEurope ) : bool
storageClient this The StorageClient that mapps our subscription.
storageAccountName string The Storage Account we want to create.
location string The location where we want the storage account.
return bool