az storage account blob-service-properties
ストレージ アカウントの BLOB サービスのプロパティを管理します。
コマンド
名前 | 説明 | 型 | 状態 |
---|---|---|---|
az storage account blob-service-properties cors-rule |
ストレージ アカウントの BLOB サービス プロパティのクロスオリジン リソース共有 (CORS) 規則を管理します。 |
Core | GA |
az storage account blob-service-properties cors-rule add |
ストレージ アカウントの CORS 規則を追加します。 |
Core | GA |
az storage account blob-service-properties cors-rule clear |
ストレージ アカウントのすべての CORS 規則をクリアします。 |
Core | GA |
az storage account blob-service-properties cors-rule list |
ストレージ アカウントの BLOB サービス プロパティのすべての CORS ルールを一覧表示します。 |
Core | GA |
az storage account blob-service-properties show |
ストレージ アカウントの BLOB サービスのプロパティを表示します。 |
Core | GA |
az storage account blob-service-properties update |
ストレージ アカウントの BLOB サービスのプロパティを更新します。 |
Core | GA |
az storage account blob-service-properties show
ストレージ アカウントの BLOB サービスのプロパティを表示します。
ストレージ アカウントの BLOB サービスのプロパティ (Storage Analytics および CORS (クロスオリジン リソース共有) ルールのプロパティを含む) を表示します。
az storage account blob-service-properties show --account-name
[--resource-group]
例
リソース グループ 'MyResourceGroup' のストレージ アカウント 'mystorageaccount' のプロパティを表示します。
az storage account blob-service-properties show -n mystorageaccount -g MyResourceGroup
必須のパラメーター
ストレージ アカウント名。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
リソース グループの名前。
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 account blob-service-properties update
ストレージ アカウントの BLOB サービスのプロパティを更新します。
ストレージ アカウントの BLOB サービスのプロパティ (Storage Analytics および CORS (クロスオリジン リソース共有) ルールのプロパティを含む) を更新します。
az storage account blob-service-properties update --account-name
[--add]
[--change-feed-days --change-feed-retention-days]
[--container-days --container-delete-retention-days]
[--container-retention --enable-container-delete-retention {false, true}]
[--default-service-version]
[--delete-retention-days]
[--enable-change-feed {false, true}]
[--enable-delete-retention {false, true}]
[--enable-last-access-tracking {false, true}]
[--enable-restore-policy {false, true}]
[--enable-versioning {false, true}]
[--force-string]
[--remove]
[--resource-group]
[--restore-days]
[--set]
例
変更フィードを有効にし、リソース グループ 'myresourcegroup' のストレージ アカウント 'mystorageaccount' に対して変更フィードの保持日数を無限に設定します。
az storage account blob-service-properties update --enable-change-feed true -n mystorageaccount -g myresourcegroup
リソース グループ 'myresourcegroup' のストレージ アカウント 'mystorageaccount' に対して、変更フィードを有効にし、変更フィードの保持日数を 100 に設定します。
az storage account blob-service-properties update --enable-change-feed --change-feed-days 100 -n mystorageaccount -g myresourcegroup
リソース グループ 'myresourcegroup' のストレージ アカウント 'mystorageaccount' の変更フィードを無効にします。
az storage account blob-service-properties update --enable-change-feed false -n mystorageaccount -g myresourcegroup
リソース グループ 'myresourcegroup' のストレージ アカウント 'mystorageaccount' に対して、削除保持ポリシーを有効にし、削除の保持日数を 100 に設定します。
az storage account blob-service-properties update --enable-delete-retention true --delete-retention-days 100 -n mystorageaccount -g myresourcegroup
リソース グループ 'myresourcegroup' のストレージ アカウント 'mystorageaccount' のバージョン管理を有効にします。
az storage account blob-service-properties update --enable-versioning -n mystorageaccount -g myresourcegroup
ストレージ アカウント 'mystorageaccount' の受信要求の既定のバージョンを設定します。
az storage account blob-service-properties update --default-service-version 2020-04-08 -n mystorageaccount -g myresourcegroup
必須のパラメーター
ストレージ アカウント名。
省略可能のパラメーター
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
パスとキー値のペアを指定して、オブジェクトの一覧にオブジェクトを追加します。 例: --add property.listProperty <key=value, string or JSON string>
。
プロパティ | 値 |
---|---|
Parameter group: | Generic Update Arguments |
規定値: | [] |
changeFeed リテンション期間を日数で示します。 最小値は 1 日で、最大値は 14,6000 日 (400 年) です。 null 値は、変更フィードの無限の保持を示します。(null を示すには、--enable-change-feed
なしで --change-feed-days
を使用します)。
プロパティ | 値 |
---|---|
Parameter group: | Change Feed Policy Arguments |
削除されたコンテナーを保持する日数を示します。 指定できる最小値は 1、最大値は 365 です。
プロパティ | 値 |
---|---|
Parameter group: | Container Delete Retention Policy Arguments |
true に設定すると、コンテナーの論理的な削除のコンテナー削除保持ポリシーを有効にします。 false に設定すると、コンテナー削除保持ポリシーを無効にします。
プロパティ | 値 |
---|---|
Parameter group: | Container Delete Retention Policy Arguments |
指定可能な値: | false, true |
受信要求のバージョンが指定されていない場合に、BLOB サービスへの要求に使用する既定のバージョンを指定します。
削除された BLOB を保持する日数を示します。 値の範囲は [1,365] である必要があります。
--enable-delete-retention
が true の場合は指定する必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Delete Retention Policy Arguments |
変更フィード イベントのログ記録が有効かどうかを示します。 true の場合は、ストレージ アカウントで変更のキャプチャを開始できます。 既定値は true です。 詳細については、https://learn.microsoft.com/azure/storage/blobs/storage-blob-change-feed?tabs=azure-portal#register-by-using-azure-cliを参照してください。
プロパティ | 値 |
---|---|
Parameter group: | Change Feed Policy Arguments |
指定可能な値: | false, true |
BLOB サービスに対して削除アイテム保持ポリシーが有効になっているかどうかを示します。
プロパティ | 値 |
---|---|
Parameter group: | Delete Retention Policy Arguments |
指定可能な値: | false, true |
true に設定すると、最終アクセス時間ベースの追跡ポリシーが有効になります。
プロパティ | 値 |
---|---|
指定可能な値: | false, true |
TRUE に設定されている場合は、BLOB 復元ポリシーを有効にします。
プロパティ | 値 |
---|---|
Parameter group: | Restore Policy Arguments |
指定可能な値: | false, true |
true に設定すると、バージョン管理が有効になります。
プロパティ | 値 |
---|---|
指定可能な値: | false, true |
'set' または 'add' を使用する場合は、JSON に変換するのではなく、文字列リテラルを保持します。
プロパティ | 値 |
---|---|
Parameter group: | Generic Update Arguments |
規定値: | False |
リストからプロパティまたは要素を削除します。 例: --remove property.list <indexToRemove>
OR --remove propertyToRemove
。
プロパティ | 値 |
---|---|
Parameter group: | Generic Update Arguments |
規定値: | [] |
リソース グループの名前。
az configure --defaults group=<name>
を使用して既定のグループを構成できます。
BLOB を復元できる日数。 0 より大きく、保持日数の削除よりも小さい必要があります。
プロパティ | 値 |
---|---|
Parameter group: | Restore Policy Arguments |
設定するプロパティ パスと値を指定して、オブジェクトを更新します。 例: --set property1.property2=<value>
。
プロパティ | 値 |
---|---|
Parameter group: | Generic Update Arguments |
規定値: | [] |
グローバル パラメーター
ログの詳細度を上げて、すべてのデバッグ ログを表示します。
プロパティ | 値 |
---|---|
規定値: | 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 |