C# Class AzureStorageNew.StorageAccountTests

Show file Open project: Azure-Samples/storage-dotnet-resource-provider-getting-started

Public Properties

Property Type Description
DefaultKind Kind
DefaultSku Sku
DefaultTags string>.Dictionary

Public Methods

Method Description
CreateResourceGroup ( string rgname, Microsoft.Azure.Management.Resources.ResourceManagementClient resourcesClient ) : void

Creates a new resource group with the specified name If one already exists then it gets updated

RegisterStorageResourceProvider ( Microsoft.Azure.Management.Resources.ResourceManagementClient resourcesClient ) : void

Registers the Storage Resource Provider in the subscription.

Private Methods

Method Description
CreateStorageAccount ( string rgname, string acctName, StorageManagementClient storageMgmtClient ) : void

Create a new Storage Account. If one already exists then the request still succeeds

DeleteStorageAccount ( string rgname, string acctName, StorageManagementClient storageMgmtClient ) : void

Deletes a storage account for the specified account name

GetAuthorizationHeader ( ) : string
GetDefaultStorageAccountParameters ( ) : Microsoft.Azure.Management.Storage.Models.StorageAccountCreateParameters

Returns default values to create a storage account

Main ( string args ) : void
UpdateStorageAccountSku ( string rgname, string acctName, SkuName skuName, StorageManagementClient storageMgmtClient ) : void

Updates the storage account

Method Details

CreateResourceGroup() public static method

Creates a new resource group with the specified name If one already exists then it gets updated
public static CreateResourceGroup ( string rgname, Microsoft.Azure.Management.Resources.ResourceManagementClient resourcesClient ) : void
rgname string
resourcesClient Microsoft.Azure.Management.Resources.ResourceManagementClient
return void

RegisterStorageResourceProvider() public static method

Registers the Storage Resource Provider in the subscription.
public static RegisterStorageResourceProvider ( Microsoft.Azure.Management.Resources.ResourceManagementClient resourcesClient ) : void
resourcesClient Microsoft.Azure.Management.Resources.ResourceManagementClient
return void

Property Details

DefaultKind public static property

public static Kind DefaultKind
return Kind

DefaultSku public static property

public static Sku DefaultSku
return Sku

DefaultTags public static property

public static Dictionary DefaultTags
return string>.Dictionary