Azure StorSimple 関連の PowerShell コマンドレット (Get-AzureStorSimpleStorageAccountCredential) について

ブログ エントリ内にアフィリエイト広告が含まれています
スポンサーリンク

StorSimple は、Microsoft 社が提供するハイブリッドのクラウド ストレージ サービスです。 Microsoft Azure と組み合わせることで、Azure ストレージを拡張領域として利用することが可能であり、また別拠点でのデータ復旧が可能であることから、効率的なデータ管理、災害対策が実現できます。

Azure StorSimple デバイスの管理に使用することが可能な PowerShell コマンドレットが提供されており、設定方法について MSDN サイト上で公開されていますが、PowerShell コマンドレットのヘルプについては英語のみであり、日本語による情報はほとんど公開されていません。

Azure StorSimple 関連の PowerShell コマンドレットの 1 つである「Get-AzureStorSimpleStorageAccountCredential」について、本ブログにて日本語の情報として纏めてみました((他の PowerShell コマンドレットについては、「Azure StorSimple 関連の PowerShell コマンドレットについて」を参照) (Windows Azure PowerShell バージョン 0.9.7 で確認しているものとなります)。

■名前

Get-AzureStorSimpleStorageAccountCredential

■概要

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

■構文

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

■説明

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

■パラメーター

-Profile [<Microsoft.Azure.Common.Authentication.Models.AzureProfile>]
Azure プロファイルを指定します。

必須 false
位置 named
既定値 なし
パイプライン入力を許可する false
ワイルドカード文字を許可する false

-StorageAccountName [<String>]
資格情報を取得するためのストレージ アカウント名を取得します。

必須 false
位置 1
既定値 なし
パイプライン入力を許可する false
ワイルドカード文字を許可する false

<CommonParameters>
このコマンドレットは、次の共通パラメーターをサポートします: –Verbose、-Debug、-ErrorAction-ErrorVariable、-WarningAction、-WarningVariable、-OutBuffer、-PipelineVariable、および -OutVariable。詳細については、about_CommonParameters を参照してください。

■入力

  • なし

■出力

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

■メモ

  • 詳細については、「Get-Help Get-AzureStorSimpleStorageAccountCredential -detailed」と入力してください。
  • 技術情報については、「Get-Help Get-AzureStorSimpleStorageAccountCredential -full」と入力してください。

■エイリアス

  • なし

■例

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

 Get-AzureStorSimpleStorageAccountCredential 
InstanceId                           Login           Name            UseSSL VolumeCount     CloudType    Location
———-                           —–           —-            —— ———–     ———    ——–
b5e0857f-82ef-4426-883b-a612889ebee4 qwertyuiopa     AdminAccount    True   24              Azure

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

例 2: 指定したストレージ アカウントに対する資格情報の取得

 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」に対するストレージ アカウント資格情報を取得します。

■関連するトピック

  • New-AzureStorSimpleStorageAccountCredential
  • Remove-AzureStorSimpleStorageAccountCredential
  • Set-AzureStorSimpleStorageAccountCredential

[参考]

タイトルとURLをコピーしました