AzureContextAdapterExtensions.GetCurrentStorageAccount 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.
Get the current storage account.
public static Microsoft.Azure.Storage.CloudStorageAccount GetCurrentStorageAccount (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, Microsoft.WindowsAzure.Commands.Common.Storage.IStorageServiceProvider provider);
static member GetCurrentStorageAccount : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * Microsoft.WindowsAzure.Commands.Common.Storage.IStorageServiceProvider -> Microsoft.Azure.Storage.CloudStorageAccount
<Extension()>
Public Function GetCurrentStorageAccount (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
The current storage account, or null, if no current storage account is set.