< Back

Get-AzureStorSimpleStorageAccountCredential

Wed Jan 30, 2019 5:46 pm

NAME Get-AzureStorSimpleStorageAccountCredential



SYNOPSIS

Gets credentials for storage accounts.





SYNTAX

Get-AzureStorSimpleStorageAccountCredential [[-StorageAccountName] <String>] [-Profile <Microsoft.Azure.Common.Authentication.Models.AzureProfile>]

[<CommonParameters>]





DESCRIPTION

The Get-AzureStorSimpleStorageAccountCredential cmdlet gets credentials for storage accounts. This cmdlet gets all StorageAccountCredential objects

configured in the service or a named StorageAccountCredential.





PARAMETERS

-Profile [<Microsoft.Azure.Common.Authentication.Models.AzureProfile>]

Specifies an Azure profile.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-StorageAccountName [<String>]

Specifies the name of the storage account for which to get credentials.



Required? false

Position? 1

Default value none

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None









OUTPUTS

StorageAccountCredential, IList<StorageAccountCredential>



This cmdlet returns a StorageAccountCredential object, if you specify the StorageAccountName parameter, or if you do not specify that parameter, it

returns an IList<StorageAccountCredential> object.





NOTES





Keywords: azure, azuresm, servicemanagement, management, service, store, storsimple



Example 1: Get all credentials for a resource



PS C:\\>Get-AzureStorSimpleStorageAccountCredential

InstanceId Login Name UseSSL VolumeCount CloudType Location

---------- ----- ---- ------ ----------- --------- --------

b5e0857f-82ef-4426-883b-a612889ebee4 qwertyuiopa AdminAccount True 24 Azure



This command gets all available credentials for storage accounts for the current resource.





Example 2: Get the credential for a specific storage account



PS C:\\>Get-AzureStorSimpleStorageAccountCredential -StorageAccountName "ContosoCloudStorage"

VERBOSE: ClientRequestId: 16551af6-3398-4d30-a389-1b8eb01ce92c_PS

VERBOSE: ClientRequestId: 5041277d-4044-4b6c-ae19-4ea9e7ae135a_PS

VERBOSE: Storage Access Credential with name ContosoCloudStorage found!





CloudType : Azure

Hostname : blob.core.windows.net

InstanceId : 8b3cb7bb-963b-4173-9598-52fe230b0350

IsDefault : False

Location : West US

Login : ContosoCloudStorage

Name : ContosoCloudStorage

OperationInProgress : None

Password :

PasswordEncryptionCertThumbprint :

UseSSL : True

VolumeCount : 0



This command gets the storage account credential for the storage account named ContosoCloudStorage.







RELATED LINKS

New-AzureStorSimpleStorageAccountCredential

Remove-AzureStorSimpleStorageAccountCredential

Set-AzureStorSimpleStorageAccountCredential