az storage share-rm
Microsoft.Storage リソース プロバイダーを使用して Azure ファイル共有を管理します。
コマンド
名前 | 説明 | 型 | 状態 |
---|---|---|---|
az storage share-rm create |
要求本文で説明されているように、指定したアカウントの下に新しい共有を作成します。 共有リソースには、その共有のメタデータとプロパティが含まれます。 共有に含まれるファイルの一覧は含まれません。 |
Core | GA |
az storage share-rm delete |
指定した Azure ファイル共有または共有スナップショットを削除します。 |
Core | GA |
az storage share-rm exists |
Azure ファイル共有が存在するかどうかを確認します。 |
Core | GA |
az storage share-rm list |
すべての共有を一覧表示します。 |
Core | GA |
az storage share-rm restore |
共有の論理的な削除が有効になっている場合は、有効なリテンション期間内にファイル共有を復元します。 |
Core | GA |
az storage share-rm show |
指定した Azure ファイル共有または共有スナップショットのプロパティを表示します。 |
Core | GA |
az storage share-rm snapshot |
指定したアカウントの下に既存の共有のスナップショットを作成します。 |
Core | Preview |
az storage share-rm stats |
共有に格納されているデータの使用状況バイト数を取得します。 |
Core | GA |
az storage share-rm update |
要求本文で説明されているように、指定されたアカウントで新しい共有を更新します。 共有リソースには、その共有のメタデータとプロパティが含まれます。 共有に含まれるファイルの一覧は含まれません。 |
Core | GA |
az storage share-rm create
要求本文で説明されているように、指定したアカウントの下に新しい共有を作成します。 共有リソースには、その共有のメタデータとプロパティが含まれます。 共有に含まれるファイルの一覧は含まれません。
az storage share-rm create --account-name --storage-account
--name --share-name
[--access-tier {Cool, Hot, Premium, TransactionOptimized}]
[--bursting-max-mibps --paid-bursting-max-bandwidth-mibps]
[--enabled-protocols {NFS, SMB}]
[--metadata]
[--paid-bursting-enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--paid-bursting-max-iops]
[--provisioned-bandwidth --provisioned-bandwidth-mibps]
[--provisioned-iops]
[--quota]
[--resource-group]
[--root-squash {AllSquash, NoRootSquash, RootSquash}]
例
リソース グループ 'MyResourceGroup' のストレージ アカウント 'mystorageaccount'(アカウント名) の下に、メタデータとクォータが 10 GB の新しい Azure ファイル共有 'myfileshare' を作成します。
az storage share-rm create -g MyResourceGroup --storage-account mystorageaccount --name myfileshare --quota 10 --metadata key1=value1 key2=value2
リソース グループ 'MyResourceGroup' の大きなファイル共有を有効にするストレージ アカウント 'mystorageaccount'(アカウント名) の下に、メタデータとクォータが 6000 GB の新しい Azure ファイル共有 'myfileshare' を作成します。
az storage account update -g MyResourceGroup --name mystorageaccount --enable-large-file-share
az storage share-rm create -g MyResourceGroup --storage-account mystorageaccount --name myfileshare --quota 6000 --metadata key1=value1 key2=value2
ストレージ アカウント 'mystorageaccount' (アカウント ID) の下に、メタデータとクォータが 10 GB の新しい Azure ファイル共有 'myfileshare' を作成します。
az storage share-rm create --storage-account mystorageaccount --name myfileshare --quota 10 --metadata key1=value1 key2=value2
ストレージ アカウント 'mystorageaccount' の下に新しい Azure ファイル共有 'myfileshare' を作成します。これにより、リソース グループ 'MyResourceGroup' で provisionedv2 が有効になります。
az storage account create -g res3376 --name sto328 --sku StandardV2_LRS --kind FileStorage
az storage share-rm create --storage-account sto328 -g res3376 -n share1 --provisioned-bandwidth-mibps 60 --provisioned-iops 500
必須のパラメーター
指定したリソース グループ内のストレージ アカウントの名前。 ストレージ アカウント名の長さは 3 ~ 24 文字で、数字と小文字のみを使用する必要があります。
指定したストレージ アカウント内のファイル共有の名前。 ファイル共有名の長さは 3 ~ 63 文字にする必要があり、数字、小文字、ダッシュ (-) のみを使用してください。 すべてのダッシュ (-) 文字の直前に文字または数字を付ける必要があります。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
特定の共有のアクセス層。 GpV2 アカウントでは、TransactionOptimized (既定)、ホット、クールを選択できます。 FileStorage アカウントでは、Premium を選択できます。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
指定可能な値: | Cool, Hot, Premium, TransactionOptimized |
共有の最大有料バースト帯域幅 (1 秒あたりのメビバイト単位)。 このプロパティは、Files Provisioned v1 SSD アカウントの種類で作成されたファイル共有に対してのみ使用されます。 許容される最大値は 10340 です。これは、共有で許可される最大帯域幅です。
プロパティ | 値 |
---|---|
Parameter group: | Provisioned V1 Paid Bursting Arguments |
ファイル共有に使用される認証プロトコル。 NFS プロトコルは、Premium ファイル共有 (FileStorage アカウントの種類のファイル共有) でのみ使用できます。 共有の作成時にのみ指定できます。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
指定可能な値: | NFS, SMB |
共有にメタデータとして関連付ける名前と値のペア。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
共有に対して有料バーストが有効かどうかを示します。 このプロパティは、Files Provisioned v1 SSD アカウントの種類で作成されたファイル共有に対してのみ使用されます。
プロパティ | 値 |
---|---|
Parameter group: | Provisioned V1 Paid Bursting Arguments |
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
共有の最大有料バースト IOPS。 このプロパティは、Files Provisioned v1 SSD アカウントの種類で作成されたファイル共有に対してのみ使用されます。 許可される最大値は 102400 です。これは、共有で許可される最大 IOPS です。
プロパティ | 値 |
---|---|
Parameter group: | Provisioned V1 Paid Bursting Arguments |
共有のプロビジョニングされた帯域幅 (1 秒あたりメビバイト単位)。 このプロパティは、Files Provisioned v2 アカウントの種類で作成されたファイル共有に対してのみ使用されます。 プロビジョニングされた帯域幅の最小値と最大値については、GetFileServiceUsage API 応答を参照してください。
プロパティ | 値 |
---|---|
Parameter group: | Provisioned V2 Arguments |
共有のプロビジョニングされた IOPS。 このプロパティは、Files Provisioned v2 アカウントの種類で作成されたファイル共有に対してのみ使用されます。 プロビジョニングされた IOPS の最小値と最大値については、GetFileServiceUsage API 応答を参照してください。
プロパティ | 値 |
---|---|
Parameter group: | Provisioned V2 Arguments |
共有のプロビジョニング済みサイズ (ジビバイト単位)。 0 より大きく、5 TB (5120) 以下である必要があります。 大きなファイル共有の場合、最大サイズは 102400 です。 Files Provisioned v2 アカウントの種類で作成されたファイル共有については、プロビジョニングされたストレージ の最小サイズと最大許容サイズについては、GetFileServiceUsage API 応答を参照してください。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
リモート スーパーユーザーのアクセス権の削減。 このプロパティは NFS 共有専用です。 既定値は NoRootSquash です。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
指定可能な値: | AllSquash, NoRootSquash, RootSquash |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az storage share-rm delete
指定した Azure ファイル共有または共有スナップショットを削除します。
指定した Azure ファイル共有または共有スナップショットを削除します。 破壊的変更: スナップショットは既定では削除できません。削除操作にサンショットを含める場合に使用する新しいパラメーターが追加されました。
az storage share-rm delete [--account-name --storage-account]
[--ids]
[--include]
[--name --share-name]
[--resource-group]
[--snapshot]
[--subscription]
[--yes]
例
リソース グループ 'MyResourceGroup' のストレージ アカウント 'mystorageaccount' (アカウント名) の下にある Azure ファイル共有 'myfileshare' を削除します。
az storage share-rm delete -g MyResourceGroup --storage-account mystorageaccount --name myfileshare
ストレージ アカウント 'mystorageaccount' (アカウント ID) の下にある Azure ファイル共有 'myfileshare' を削除します。
az storage share-rm delete --storage-account mystorageaccount --name myfileshare
リソース ID で Azure ファイル共有を削除します。
az storage share-rm delete --ids file-share-id
Azure ファイル共有スナップショットを削除します。
az storage share-rm delete --ids file-share-id --snapshot "2021-03-25T05:29:56.0000000Z"
Azure ファイル共有とそのすべてのスナップショットを削除します。
az storage share-rm delete --include snapshots -g MyResourceGroup --storage-account mystorageaccount --name myfileshare
Azure ファイル共有とそのすべてのスナップショット (リース/未リリース) を削除します。
az storage share-rm delete --include leased-snapshots -g MyResourceGroup --storage-account mystorageaccount --name myfileshare
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
指定したリソース グループ内のストレージ アカウントの名前。 ストレージ アカウント名の長さは 3 ~ 24 文字で、数字と小文字のみを使用する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
Optional. 有効な値は、スナップショット、leased-snapshots、none です。 既定値は none です。 "スナップショット" の場合、すべてのファイル共有スナップショットを含むファイル共有が削除されます。 ファイル共有にリーススナップショットが含まれている場合、削除は失敗します。 'leased-snapshots' の場合、ファイル共有は削除され、すべてのファイル共有スナップショット (リース済み/未リリース) が含まれます。 'none' の場合、共有スナップショットがない場合、ファイル共有は削除されます。 ファイル共有にスナップショット (リースまたは未リリース) が含まれている場合、削除は失敗します。
プロパティ | 値 |
---|---|
規定値: | none |
指定したストレージ アカウント内のファイル共有の名前。 ファイル共有名の長さは 3 ~ 63 文字にする必要があり、数字、小文字、ダッシュ (-) のみを使用してください。 すべてのダッシュ (-) 文字の直前に文字または数字を付ける必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
省略可能。スナップショットの削除に使用されます。取得する共有スナップショットを指定する DateTime 値。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
確認を求めないでください。
プロパティ | 値 |
---|---|
規定値: | False |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az storage share-rm exists
Azure ファイル共有が存在するかどうかを確認します。
az storage share-rm exists [--ids]
[--name]
[--resource-group]
[--storage-account]
[--subscription]
例
リソース グループ 'MyResourceGroup' のストレージ アカウント 'mystorageaccount' (アカウント名) に Azure ファイル共有 'myfileshare' が存在するかどうかを確認します。
az storage share-rm exists -g MyResourceGroup --storage-account mystorageaccount --name myfileshare
ストレージ アカウント 'mystorageaccount' (アカウント ID) の下に Azure ファイル共有 'myfileshare' が存在するかどうかを確認します。
az storage share-rm exists --storage-account mystorageaccount --name myfileshare
リソース ID で Azure ファイル共有が存在するかどうかを確認します。
az storage share-rm exists --ids file-share-id
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
ファイル共有名。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
ストレージ アカウントの名前または ID。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az storage share-rm list
すべての共有を一覧表示します。
az storage share-rm list --account-name --storage-account
[--filter]
[--include-deleted {0, 1, f, false, n, no, t, true, y, yes}]
[--include-snapshot {0, 1, f, false, n, no, t, true, y, yes}]
[--max-items]
[--maxpagesize]
[--next-token]
[--resource-group]
例
リソース グループ 'MyResourceGroup' のストレージ アカウント 'mystorageaccount' (アカウント名) の下に Azure ファイル共有を一覧表示します。
az storage share-rm list -g MyResourceGroup --storage-account mystorageaccount
ストレージ アカウント 'mystorageaccount' (アカウント ID) の下に Azure ファイル共有を一覧表示します。
az storage share-rm list --storage-account mystorageaccount
ストレージ アカウント 'mystorageaccount' の下に削除されたすべてのファイル共有を一覧表示します。
az storage share-rm list --storage-account mystorageaccount --include-deleted
ストレージ アカウント 'mystorageaccount' のすべてのスナップショットを含むすべてのファイル共有を一覧表示する
az storage share-rm list --storage-account mystorageaccount --include-snapshot
すべてのファイル共有の一覧表示には、ストレージ アカウント 'mystorageaccount' の下にあるすべてのスナップショットと削除されたファイル共有が含まれます
az storage share-rm list --storage-account mystorageaccount --include-deleted --include-snapshot
必須のパラメーター
指定したリソース グループ内のストレージ アカウントの名前。 ストレージ アカウント名の長さは 3 ~ 24 文字で、数字と小文字のみを使用する必要があります。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Optional. 指定すると、フィルターで始まる共有名のみが一覧表示されます。
論理的に削除されたファイル共有を指定時に含めます。
プロパティ | 値 |
---|---|
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
指定した場合は、ファイル共有スナップショットを含めます。
プロパティ | 値 |
---|---|
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
コマンドの出力で返される項目の合計数。 使用可能な項目の合計数が指定された値を超える場合は、コマンドの出力にトークンが提供されます。 改ページ位置の変更を再開するには、後続のコマンドの引数 --next-token
トークン値を指定します。
プロパティ | 値 |
---|---|
Parameter group: | Pagination Arguments |
Optional. リストに含めることができる共有の最大数を指定します。
ページ分割を開始する場所を指定するトークン。 これは、以前に切り捨てられた応答からのトークン値です。
プロパティ | 値 |
---|---|
Parameter group: | Pagination Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az storage share-rm restore
共有の論理的な削除が有効になっている場合は、有効なリテンション期間内にファイル共有を復元します。
az storage share-rm restore --deleted-version
[--ids]
[--name]
[--resource-group]
[--restored-name]
[--storage-account]
[--subscription]
例
共有の論理的な削除が有効になっている場合は、有効なリテンション期間内にファイル共有を復元します。
az storage share-rm restore -n deletedshare --deleted-version 01D64EB9886F00C4 -g MyResourceGroup --storage-account mystorageaccount
共有の論理的な削除が新しい名前に対して有効になっている場合は、有効なリテンション期間内にファイル共有を復元します。
az storage share-rm restore -n deletedshare --deleted-version 01D64EB9886F00C4 --restored-name newname -g MyResourceGroup --storage-account mystorageaccount
必須のパラメーター
復元される削除された共有のバージョンを特定します。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
ファイル共有名。 復元される削除された共有の名前を特定します。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
復元する新しいファイル共有名。 指定しない場合は、削除された共有名が使用されます。
ストレージ アカウントの名前または ID。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az storage share-rm show
指定した Azure ファイル共有または共有スナップショットのプロパティを表示します。
az storage share-rm show [--account-name --storage-account]
[--expand]
[--ids]
[--name --share-name]
[--resource-group]
[--snapshot]
[--subscription]
例
リソース グループ 'MyResourceGroup' のストレージ アカウント 'mystorageaccount' (アカウント名) の下に、Azure ファイル共有 'myfileshare' のプロパティを表示します。
az storage share-rm show -g MyResourceGroup --storage-account mystorageaccount --name myfileshare
ストレージ アカウント 'mystorageaccount' (アカウント ID) の下に、Azure ファイル共有 'myfileshare' のプロパティを表示します。
az storage share-rm show --storage-account mystorageaccount --name myfileshare
リソース ID で Azure ファイル共有のプロパティを表示します。
az storage share-rm show --ids file-share-id
Azure ファイル共有スナップショットのプロパティを表示する
az storage share-rm show --ids file-share-id --snapshot "2021-03-25T05:29:56.0000000Z"
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
指定したリソース グループ内のストレージ アカウントの名前。 ストレージ アカウント名の長さは 3 ~ 24 文字で、数字と小文字のみを使用する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
オプション。共有のプロパティ内のプロパティを展開するために使用します。 有効な値は、削除済み、スナップショットです。 区切り記号 ',' を含む文字列として渡す必要があります。
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
指定したストレージ アカウント内のファイル共有の名前。 ファイル共有名の長さは 3 ~ 63 文字にする必要があり、数字、小文字、ダッシュ (-) のみを使用してください。 すべてのダッシュ (-) 文字の直前に文字または数字を付ける必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
省略可能。スナップショットの削除に使用されます。取得する共有スナップショットを指定する DateTime 値。
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az storage share-rm snapshot
このコマンドはプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus
指定したアカウントの下に既存の共有のスナップショットを作成します。
az storage share-rm snapshot [--access-tier {Cool, Hot, Premium, TransactionOptimized}]
[--enabled-protocols {NFS, SMB}]
[--ids]
[--metadata]
[--name]
[--quota]
[--resource-group]
[--root-squash {AllSquash, NoRootSquash, RootSquash}]
[--storage-account]
[--subscription]
例
指定したアカウントの下に既存の共有のスナップショットを作成します。
az storage share-rm snapshot -g MyResourceGroup --storage-account mystorageaccount --name myfileshare
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
特定の共有のアクセス層。 GpV2 アカウントでは、TransactionOptimized (既定)、ホット、クールを選択できます。 FileStorage アカウントでは、Premium を選択できます。
プロパティ | 値 |
---|---|
指定可能な値: | Cool, Hot, Premium, TransactionOptimized |
ファイル共有プロトコルの不変プロパティ。 NFS プロトコルは、Premium ファイル共有 (FileStorage アカウントの種類のファイル共有) でのみ使用できます。
プロパティ | 値 |
---|---|
指定可能な値: | NFS, SMB |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
共有に関連付けられているスペース区切りのキーと値のペア内のメタデータ。 これにより、既存のメタデータが上書きされます。
ファイル共有名。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
共有の最大サイズ (ギガバイト単位)。 0 より大きく、5 TB (5120) 以下である必要があります。 大きなファイル共有の場合、最大サイズは 102400 です。
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リモート スーパーユーザーのアクセス権の削減。
プロパティ | 値 |
---|---|
指定可能な値: | AllSquash, NoRootSquash, RootSquash |
ストレージ アカウントの名前または ID。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az storage share-rm stats
共有に格納されているデータの使用状況バイト数を取得します。
az storage share-rm stats [--ids]
[--name]
[--resource-group]
[--storage-account]
[--subscription]
例
共有に格納されているデータの使用状況バイト数を取得します。
az storage share-rm stats -g MyResourceGroup --storage-account mystorageaccount --name myfileshare
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
ファイル共有名。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
ストレージ アカウントの名前または ID。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |
az storage share-rm update
要求本文で説明されているように、指定されたアカウントで新しい共有を更新します。 共有リソースには、その共有のメタデータとプロパティが含まれます。 共有に含まれるファイルの一覧は含まれません。
az storage share-rm update [--access-tier {Cool, Hot, Premium, TransactionOptimized}]
[--account-name --storage-account]
[--add]
[--bursting-max-mibps --paid-bursting-max-bandwidth-mibps]
[--force-string {0, 1, f, false, n, no, t, true, y, yes}]
[--ids]
[--metadata]
[--name --share-name]
[--paid-bursting-enabled {0, 1, f, false, n, no, t, true, y, yes}]
[--paid-bursting-max-iops]
[--provisioned-bandwidth --provisioned-bandwidth-mibps]
[--provisioned-iops]
[--quota]
[--remove]
[--resource-group]
[--root-squash {AllSquash, NoRootSquash, RootSquash}]
[--set]
[--subscription]
例
リソース グループ 'MyResourceGroup' のストレージ アカウント 'mystorageaccount' (アカウント名) の Azure ファイル共有 'myfileshare' のプロパティを更新します。
az storage share-rm update -g MyResourceGroup --storage-account mystorageaccount --name myfileshare --quota 3 --metadata key1=value1 key2=value2
ストレージ アカウント 'mystorageaccount' (アカウント ID) の Azure ファイル共有 'myfileshare' のプロパティを更新します。
az storage share-rm update --storage-account mystorageaccount --name myfileshare --quota 3 --metadata key1=value1 key2=value2
リソース ID で Azure ファイル共有のプロパティを更新します。
az storage share-rm update --ids file-share-id --quota 3 --metadata key1=value1 key2=value2
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
特定の共有のアクセス層。 GpV2 アカウントでは、TransactionOptimized (既定)、ホット、クールを選択できます。 FileStorage アカウントでは、Premium を選択できます。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
指定可能な値: | Cool, Hot, Premium, TransactionOptimized |
指定したリソース グループ内のストレージ アカウントの名前。 ストレージ アカウント名の長さは 3 ~ 24 文字で、数字と小文字のみを使用する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
パスとキー値のペアを指定して、オブジェクトの一覧にオブジェクトを追加します。 例: --add property.listProperty <key=value, string or JSON string>
。
プロパティ | 値 |
---|---|
Parameter group: | Generic Update Arguments |
共有の最大有料バースト帯域幅 (1 秒あたりのメビバイト単位)。 このプロパティは、Files Provisioned v1 SSD アカウントの種類で作成されたファイル共有に対してのみ使用されます。 許容される最大値は 10340 です。これは、共有で許可される最大帯域幅です。
プロパティ | 値 |
---|---|
Parameter group: | Provisioned V1 Paid Bursting Arguments |
'set' または 'add' を使用する場合は、JSON に変換するのではなく、文字列リテラルを保持します。
プロパティ | 値 |
---|---|
Parameter group: | Generic Update Arguments |
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
1 つ以上のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
共有にメタデータとして関連付ける名前と値のペア。 短縮構文、json-file、yaml-file をサポートします。 詳細を表示するには、"??" を試してください。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
指定したストレージ アカウント内のファイル共有の名前。 ファイル共有名の長さは 3 ~ 63 文字にする必要があり、数字、小文字、ダッシュ (-) のみを使用してください。 すべてのダッシュ (-) 文字の直前に文字または数字を付ける必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
共有に対して有料バーストが有効かどうかを示します。 このプロパティは、Files Provisioned v1 SSD アカウントの種類で作成されたファイル共有に対してのみ使用されます。
プロパティ | 値 |
---|---|
Parameter group: | Provisioned V1 Paid Bursting Arguments |
指定可能な値: | 0, 1, f, false, n, no, t, true, y, yes |
共有の最大有料バースト IOPS。 このプロパティは、Files Provisioned v1 SSD アカウントの種類で作成されたファイル共有に対してのみ使用されます。 許可される最大値は 102400 です。これは、共有で許可される最大 IOPS です。
プロパティ | 値 |
---|---|
Parameter group: | Provisioned V1 Paid Bursting Arguments |
共有のプロビジョニングされた帯域幅 (1 秒あたりメビバイト単位)。 このプロパティは、Files Provisioned v2 アカウントの種類で作成されたファイル共有に対してのみ使用されます。 プロビジョニングされた帯域幅の最小値と最大値については、GetFileServiceUsage API 応答を参照してください。
プロパティ | 値 |
---|---|
Parameter group: | Provisioned V2 Arguments |
共有のプロビジョニングされた IOPS。 このプロパティは、Files Provisioned v2 アカウントの種類で作成されたファイル共有に対してのみ使用されます。 プロビジョニングされた IOPS の最小値と最大値については、GetFileServiceUsage API 応答を参照してください。
プロパティ | 値 |
---|---|
Parameter group: | Provisioned V2 Arguments |
共有のプロビジョニング済みサイズ (ジビバイト単位)。 0 より大きく、5 TB (5120) 以下である必要があります。 大きなファイル共有の場合、最大サイズは 102400 です。 Files Provisioned v2 アカウントの種類で作成されたファイル共有については、プロビジョニングされたストレージ の最小サイズと最大許容サイズについては、GetFileServiceUsage API 応答を参照してください。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
リストからプロパティまたは要素を削除します。 例: --remove property.list <indexToRemove>
OR --remove propertyToRemove
。
プロパティ | 値 |
---|---|
Parameter group: | Generic Update Arguments |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
リモート スーパーユーザーのアクセス権の削減。 このプロパティは NFS 共有専用です。 既定値は NoRootSquash です。
プロパティ | 値 |
---|---|
Parameter group: | Properties Arguments |
指定可能な値: | AllSquash, NoRootSquash, RootSquash |
設定するプロパティ パスと値を指定して、オブジェクトを更新します。 例: --set property1.property2=<value>
。
プロパティ | 値 |
---|---|
Parameter group: | Generic Update Arguments |
サブスクリプションの名前または ID。
az account set -s NAME_OR_ID
を使用して既定のサブスクリプションを構成できます。
プロパティ | 値 |
---|---|
Parameter group: | Resource Id Arguments |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | False |
このヘルプ メッセージを表示して終了します。
エラーのみを表示し、警告を抑制します。
プロパティ | 値 |
---|---|
規定値: | False |
Output format.
プロパティ | 値 |
---|---|
規定値: | json |
指定可能な値: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ を参照してください。
ログの詳細度を高める。 完全なデバッグ ログには --debug を使用します。
プロパティ | 値 |
---|---|
規定値: | False |