Get-AzureStorSimpleStorageAccountCredential

ストレージ アカウントの資格情報を取得します。

Note

このドキュメントで参照されているコマンドレットは、Azure Service Manager (ASM) API を使用する従来の Azure リソースを管理するためのものです。 ASM の提供終了が予定されているため、新しいリソースを作成する場合、このレガシ PowerShell モジュールは推奨されません。 詳細については、Azure Service Manager の提供終了に関するページを参照してください

Az PowerShell モジュールは、PowerShell を使用して Azure Resource Manager (ARM) リソースを管理するために推奨される PowerShell モジュールです。

構文

Get-AzureStorSimpleStorageAccountCredential
   [-StorageAccountName <String>]
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

説明

Get-AzureStorSimpleStorageAccountCredential コマンドレットは、ストレージ アカウントの資格情報を取得します。 このコマンドレットは、サービスで構成されているすべての StorageAccountCredential オブジェクトまたは名前付き StorageAccountCredential オブジェクトを取得します。

例 1: リソースのすべての資格情報を取得する

PS C:\>Get-AzureStorSimpleStorageAccountCredential
InstanceId                           Login           Name            UseSSL VolumeCount     CloudType    Location
----------                           -----           ----            ------ -----------     ---------    --------
b5e0857f-82ef-4426-883b-a612889ebee4 qwertyuiopa     AdminAccount    True   24              Azure

このコマンドは、現在のリソースのストレージ アカウントで使用可能なすべての資格情報を取得します。

例 2: 特定のストレージ アカウントの資格情報を取得する

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

このコマンドは、ContosoCloudStorage という名前のストレージ アカウントのストレージ アカウント資格情報を取得します。

パラメーター

-Profile

Azure プロファイルを指定します。

型:AzureSMProfile
配置:Named
規定値:None
必須:False
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

-StorageAccountName

資格情報を取得するストレージ アカウントの名前を指定します。

型:String
Aliases:Name
配置:Named
規定値:None
必須:False
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

入力

None

出力

StorageAccountCredential, IList\<StorageAccountCredential\>

このコマンドレットは StorageAccountCredential オブジェクトを返します。StorageAccountName パラメーターを指定した場合、またはそのパラメーターを指定しない場合は、IList<StorageAccountCredential> オブジェクトが返されます。