AzureContextAdapterExtensions.GetCloudStorageAccount 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.
Overloads
GetCloudStorageAccount(IStorageContext) |
Get a CloudStorageAccount client for the storage account represented by this context |
GetCloudStorageAccount(IStorageService) |
Get a CloudStorageAccount client for the storage account represented by this service |
GetCloudStorageAccount(IAzureContext, IStorageServiceProvider) |
Get a CloudStorageAccount client for the current storage service using the given storage service provider |
GetCloudStorageAccount(IStorageServiceProvider, String, String) |
Get a CloudStorageAccount client for the given storage service using the given storage service provider |
GetCloudStorageAccount(IStorageContext)
Get a CloudStorageAccount client for the storage account represented by this context
public static Microsoft.Azure.Storage.CloudStorageAccount GetCloudStorageAccount (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext context);
static member GetCloudStorageAccount : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IStorageContext -> Microsoft.Azure.Storage.CloudStorageAccount
<Extension()>
Public Function GetCloudStorageAccount (context As IStorageContext) As CloudStorageAccount
Parameters
- context
- IStorageContext
The storage context for the storage account
Returns
A CloudStorageAccount client for storage data plane tasks
Applies to
GetCloudStorageAccount(IStorageService)
Get a CloudStorageAccount client for the storage account represented by this service
public static Microsoft.Azure.Storage.CloudStorageAccount GetCloudStorageAccount (this Microsoft.WindowsAzure.Commands.Common.Storage.IStorageService service);
static member GetCloudStorageAccount : Microsoft.WindowsAzure.Commands.Common.Storage.IStorageService -> Microsoft.Azure.Storage.CloudStorageAccount
<Extension()>
Public Function GetCloudStorageAccount (service As IStorageService) As CloudStorageAccount
Parameters
- service
- IStorageService
The storage service
Returns
A CloudStorageAccount client for storage data plane tasks
Applies to
GetCloudStorageAccount(IAzureContext, IStorageServiceProvider)
Get a CloudStorageAccount client for the current storage service using the given storage service provider
public static Microsoft.Azure.Storage.CloudStorageAccount GetCloudStorageAccount (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, Microsoft.WindowsAzure.Commands.Common.Storage.IStorageServiceProvider provider);
static member GetCloudStorageAccount : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * Microsoft.WindowsAzure.Commands.Common.Storage.IStorageServiceProvider -> Microsoft.Azure.Storage.CloudStorageAccount
<Extension()>
Public Function GetCloudStorageAccount (context As IAzureContext, provider As IStorageServiceProvider) As CloudStorageAccount
Parameters
- context
- IAzureContext
The current Azure context.
- provider
- IStorageServiceProvider
The storage service provider to retrieve storage service details
Returns
A CloudStorageAccount client for storage data plane tasks
Applies to
GetCloudStorageAccount(IStorageServiceProvider, String, String)
Get a CloudStorageAccount client for the given storage service using the given storage service provider
public static Microsoft.Azure.Storage.CloudStorageAccount GetCloudStorageAccount (this Microsoft.WindowsAzure.Commands.Common.Storage.IStorageServiceProvider provider, string accountName, string resourceGroupName = default);
static member GetCloudStorageAccount : Microsoft.WindowsAzure.Commands.Common.Storage.IStorageServiceProvider * string * string -> Microsoft.Azure.Storage.CloudStorageAccount
<Extension()>
Public Function GetCloudStorageAccount (provider As IStorageServiceProvider, accountName As String, Optional resourceGroupName As String = Nothing) As CloudStorageAccount
Parameters
- provider
- IStorageServiceProvider
The storage service provider to retrieve storage service details
- accountName
- String
The storage account name
- resourceGroupName
- String
The resource group name
Returns
A CloudStorageAccount client for storage data plane tasks