az storage container-rm

Microsoft.Storage リソース プロバイダーを使用して Azure コンテナーを管理します。

コマンド

名前 説明 Status
az storage container-rm create

指定したストレージ アカウントの下に新しいコンテナーを作成します。

コア GA
az storage container-rm delete

そのアカウントで指定したコンテナーを削除します。

コア GA
az storage container-rm exists

コンテナーが存在するかどうかを確認します。

コア GA
az storage container-rm list

指定したストレージ アカウントのすべてのコンテナーを一覧表示します。

コア GA
az storage container-rm migrate-vlw

BLOB コンテナーをコンテナー レベル WORM からオブジェクト レベルの不変性が有効なコンテナーに移行します。

コア プレビュー
az storage container-rm show

指定したコンテナーのプロパティを表示します。

コア GA
az storage container-rm update

コンテナーのプロパティを更新します。

コア GA

az storage container-rm create

指定したストレージ アカウントの下に新しいコンテナーを作成します。

az storage container-rm create --name
                               --storage-account
                               [--default-encryption-scope]
                               [--deny-encryption-scope-override {false, true}]
                               [--enable-vlw {false, true}]
                               [--fail-on-exist]
                               [--metadata]
                               [--public-access {blob, container, off}]
                               [--resource-group]
                               [--root-squash {AllSquash, NoRootSquash, RootSquash}]

指定したストレージ アカウントの下に新しいコンテナーを作成します。

az storage container-rm create --storage-account myaccount --name mycontainer

指定したストレージ アカウント (アカウント ID) の下に、メタデータとパブリック アクセスを BLOB として含む新しいコンテナーを作成します。

az storage container-rm create --storage-account myaccountid --name mycontainer --public-access blob --metada key1=value1 key2=value2

必須のパラメーター

--name -n

コンテナー名。

--storage-account

ストレージ アカウントの名前または ID。

省略可能のパラメーター

--default-encryption-scope -d

既定では、すべての書き込みに指定された暗号化スコープを使用するコンテナーです。

--deny-encryption-scope-override --deny-override

コンテナーの既定値からの暗号化スコープのオーバーライドをブロックします。

承認された値: false, true
--enable-vlw
プレビュー

コンテナーのオブジェクト レベルの不変プロパティ。 プロパティは不変であり、コンテナー作成時にのみ true に設定できます。 既存のコンテナーは、移行プロセスを受ける必要があります。

承認された値: false, true
--fail-on-exist

コンテナーが既に存在する場合は、例外をスローします。

既定値: False
--metadata

スペース区切りのキーと値のペアのメタデータ。 これにより、既存のメタデータが上書きされます。

--public-access

コンテナー内のデータにパブリックにアクセスできるかどうかを指定します。

承認された値: blob, container, off
--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--root-squash

BLOB コンテナーで NFSv3 スカッシュを有効にします。

承認された値: AllSquash, NoRootSquash, RootSquash
グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az storage container-rm delete

そのアカウントで指定したコンテナーを削除します。

az storage container-rm delete [--ids]
                               [--name]
                               [--resource-group]
                               [--storage-account]
                               [--subscription]
                               [--yes]

そのアカウントで指定したコンテナーを削除します。

az storage container-rm delete --storage-account myAccount --name mycontainer

指定したコンテナーをそのアカウント (アカウント ID) で削除します。

az storage container-rm delete --storage-account myaccountid --name mycontainer

指定したコンテナーをリソース ID で削除します。

az storage container-rm delete --ids mycontainerid

省略可能のパラメーター

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--name -n

コンテナー名。

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--storage-account

ストレージ アカウントの名前または ID。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--yes -y

確認のダイアログを表示しません。

既定値: False
グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az storage container-rm exists

コンテナーが存在するかどうかを確認します。

az storage container-rm exists [--ids]
                               [--name]
                               [--resource-group]
                               [--storage-account]
                               [--subscription]

指定したストレージ アカウントの下にコンテナーが存在するかどうかを確認します。

az storage container-rm exists --storage-account myaccount --name mycontainer

指定したストレージ アカウント (アカウント ID) の下にコンテナーが存在するかどうかを確認します。

az storage container-rm exists --storage-account myaccountid --name mycontainer

リソース ID でコンテナーが存在するかどうかを確認します。

az storage container-rm exists --ids mycontainerid

省略可能のパラメーター

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--name -n

コンテナー名。

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--storage-account

ストレージ アカウントの名前または ID。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az storage container-rm list

指定したストレージ アカウントのすべてのコンテナーを一覧表示します。

az storage container-rm list --storage-account
                             [--include-deleted]
                             [--resource-group]

指定したストレージ アカウントのすべてのコンテナーを一覧表示します。

az storage container-rm list --storage-account myaccount

指定したストレージ アカウント (アカウント ID) のすべてのコンテナーを一覧表示します。

az storage container-rm list --storage-account myaccountid

削除されたコンテナーを含め、指定したストレージ アカウントのすべてのコンテナーを一覧表示します。

az storage container-rm list --storage-account myaccount --include-deleted

必須のパラメーター

--storage-account

ストレージ アカウントの名前または ID。

省略可能のパラメーター

--include-deleted

指定した場合は、論理的に削除されたコンテナーを含めます。

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az storage container-rm migrate-vlw

プレビュー

このコマンドはプレビュー段階であり、開発中です。 参照レベルとサポート レベル: https://aka.ms/CLI_refstatus

BLOB コンテナーをコンテナー レベル WORM からオブジェクト レベルの不変性が有効なコンテナーに移行します。

az storage container-rm migrate-vlw [--ids]
                                    [--name]
                                    [--no-wait]
                                    [--resource-group]
                                    [--storage-account]
                                    [--subscription]

BLOB コンテナーをコンテナー レベル WORM からオブジェクト レベルの不変性が有効なコンテナーに移行します。

az storage container-rm migrate-vlw -n mycontainer --storage-account myaccount -g myresourcegroup

待機せずに、BLOB コンテナーをコンテナー レベル WORM からオブジェクト レベルの不変対応コンテナーに移行します。

az storage container-rm migrate-vlw -n mycontainer --storage-account myaccount -g myresourcegroup --no-wait
az storage container-rm show -n mycontainer --storage-account myaccount -g myresourcegroup  --query immutableStorageWithVersioning.migrationState

省略可能のパラメーター

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--name -n

コンテナー名。

--no-wait

実行時間の長い操作の終了を待機しません。

既定値: False
--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--storage-account

ストレージ アカウントの名前または ID。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az storage container-rm show

指定したコンテナーのプロパティを表示します。

az storage container-rm show [--ids]
                             [--name]
                             [--resource-group]
                             [--storage-account]
                             [--subscription]

指定したストレージ アカウントの下にあるコンテナーのプロパティを表示します。

az storage container-rm show --storage-account myaccount --name mycontainer

指定したストレージ アカウント (アカウント ID) の下にあるコンテナーのプロパティを表示します。

az storage container-rm show --storage-account myaccountid --name mycontainer

リソース ID でコンテナーのプロパティを表示します。

az storage container-rm show --ids mycontainerid

省略可能のパラメーター

--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--name -n

コンテナー名。

--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--storage-account

ストレージ アカウントの名前または ID。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。

az storage container-rm update

コンテナーのプロパティを更新します。

az storage container-rm update [--add]
                               [--force-string]
                               [--ids]
                               [--metadata]
                               [--name]
                               [--public-access {blob, container, off}]
                               [--remove]
                               [--resource-group]
                               [--root-squash {AllSquash, NoRootSquash, RootSquash}]
                               [--set]
                               [--storage-account]
                               [--subscription]

指定したストレージ アカウントのコンテナーのパブリック アクセス レベルを "BLOB" に更新します。

az storage container-rm update --storage-account myaccount --name mycontainer --public-access blob

指定したストレージ アカウント (アカウント ID) のコンテナーのメタデータを更新します。

az storage container-rm update --storage-account myaccountid --name mycontainer --metadata newkey1=newvalue1 newkey2=newvalue2

リソース ID でコンテナーのパブリック アクセス レベルを更新します。

az storage container-rm update --ids mycontainerid --public-access blob

省略可能のパラメーター

--add

パスとキー値のペアを指定して、オブジェクトの一覧にオブジェクトを追加します。 例: --add property.listProperty <key=value, string or JSON string>

既定値: []
--force-string

'set' または 'add' を使用する場合は、JSON に変換するのではなく、文字列リテラルを保持します。

既定値: False
--ids

1 つまたは複数のリソース ID (スペース区切り)。 これは、'Resource Id' 引数のすべての情報を含む完全なリソース ID である必要があります。 --ids または他の 'Resource Id' 引数を指定する必要があります。

--metadata

スペース区切りのキーと値のペアのメタデータ。 これにより、既存のメタデータが上書きされます。

--name -n

コンテナー名。

--public-access

コンテナー内のデータにパブリックにアクセスできるかどうかを指定します。

承認された値: blob, container, off
--remove

リストからプロパティまたは要素を削除します。 例: --remove property.list <indexToRemove> OR --remove propertyToRemove.

既定値: []
--resource-group -g

リソース グループの名前。 az configure --defaults group=<name> を使用して、既定のグループを構成できます。

--root-squash

BLOB コンテナーで NFSv3 スカッシュを有効にします。

承認された値: AllSquash, NoRootSquash, RootSquash
--set

設定するプロパティ パスと値を指定して、オブジェクトを更新します。 例: --set property1.property2=<value>

既定値: []
--storage-account

ストレージ アカウントの名前または ID。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

グローバル パラメーター
--debug

すべてのデバッグ ログを表示するようにログの詳細レベルを上げます。

--help -h

このヘルプ メッセージを表示して終了します。

--only-show-errors

エラーのみを表示し、警告は抑制します。

--output -o

出力形式。

承認された値: json, jsonc, none, table, tsv, yaml, yamlc
既定値: json
--query

JMESPath クエリ文字列。 詳細と例については、http://jmespath.org/ をご覧ください。

--subscription

サブスクリプションの名前または ID。 az account set -s NAME_OR_ID を使用して、既定のサブスクリプションを構成できます。

--verbose

ログの詳細レベルを上げます。 詳細なデバッグ ログを表示するには --debug を使います。