az restore-point

res を使用して復元ポイントを管理します。

コマンド

名前 説明 Status
az restore-point collection

復元ポイント コレクションを作成します。 詳細については、「https://aka.ms/RestorePoints」をご覧ください。 復元ポイント コレクションを更新する場合は、タグのみを変更できます。

コア GA
az restore-point collection create

復元ポイント コレクションを作成します。 詳細については、「https://aka.ms/RestorePoints」をご覧ください。 復元ポイント コレクションを更新する場合は、タグのみを変更できます。

コア GA
az restore-point collection delete

復元ポイント コレクションを削除します。 この操作では、含まれている復元ポイントもすべて削除されます。

コア GA
az restore-point collection list

リソース グループ内の復元ポイント コレクションの一覧を取得します。

コア GA
az restore-point collection list-all

サブスクリプション内の復元ポイント コレクションの一覧を取得します。 復元ポイント コレクションの次のページを取得するには、応答で nextLink プロパティを使用します。 これを行うには、すべての復元ポイント コレクションをフェッチするために nextLink が null にならないまで行います。

コア GA
az restore-point collection show

復元ポイント コレクションを取得します。

コア GA
az restore-point collection update

復元ポイント コレクションを更新します。

コア GA
az restore-point collection wait

復元ポイント コレクションの条件が満たされるまで、CLI を待機状態にします。

コア GA
az restore-point create

復元ポイントを作成します。 既存の復元ポイントのプロパティの更新は許可されません。

コア GA
az restore-point delete

復元ポイントを削除します。

コア GA
az restore-point show

復元ポイントを取得します。

コア GA
az restore-point wait

復元ポイントの条件が満たされるまで、CLI を待機状態にします。

コア GA

az restore-point create

復元ポイントを作成します。 既存の復元ポイントのプロパティの更新は許可されません。

az restore-point create --collection-name
                        --name
                        --resource-group
                        [--consistency-mode {ApplicationConsistent, CrashConsistent, FileSystemConsistent}]
                        [--data-disk-restore-point-encryption-set]
                        [--data-disk-restore-point-encryption-type {EncryptionAtRestWithCustomerKey, EncryptionAtRestWithPlatformAndCustomerKeys, EncryptionAtRestWithPlatformKey}]
                        [--exclude-disks]
                        [--no-wait]
                        [--os-restore-point-encryption-set]
                        [--os-restore-point-encryption-type {EncryptionAtRestWithCustomerKey, EncryptionAtRestWithPlatformAndCustomerKeys, EncryptionAtRestWithPlatformKey}]
                        [--source-data-disk-resource]
                        [--source-os-resource]
                        [--source-restore-point]

復元ポイントを作成します

az restore-point create --exclude-disks "/subscriptions/{subscription-id}/resourceGroups/myResour               ceGroup/providers/Microsoft.Compute/disks/disk123" --resource-group "myResourceGroup"                --collection-name "rpcName" --name "rpName"

--consistency-mode CrashConsistent を使用して復元ポイントを作成する

az vm create -n vm -g rg --image Ubuntu2204 --tag EnableCrashConsistentRestorePoint=True

az restore-point collection create --source-id "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM"                -g rg --collection-name "myRpc"

az restore-point create --exclude-disks "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123"                --resource-group "myResourceGroup" --collection-name "rpcName" --name "rpName"

必須のパラメーター

--collection-name

復元ポイント コレクションの名前。

--name --restore-point-name -n

復元ポイントの名前。

--resource-group -g

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

省略可能のパラメーター

--consistency-mode
プレビュー

復元ポイントの整合性モード。 復元ポイントの作成時に入力で指定できます。 現時点では、CrashConsistent のみが有効な入力として受け入れられます。 詳細については、「https://aka.ms/RestorePoints」をご覧ください。

承認された値: ApplicationConsistent, CrashConsistent, FileSystemConsistent
--data-disk-restore-point-encryption-set

カスタマー マネージド データ ディスク暗号化セットのリソース ID。

--data-disk-restore-point-encryption-type

データ ディスク復元ポイントのデータの暗号化に使用されるキーの種類。

承認された値: EncryptionAtRestWithCustomerKey, EncryptionAtRestWithPlatformAndCustomerKeys, EncryptionAtRestWithPlatformKey
--exclude-disks

お客様が復元ポイントから除外するディスク リソース ID の一覧。 ディスクが指定されていない場合は、すべてのディスクが含まれます。

使用法: --exclude-disks XX XX id: /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/..の形式の ARM リソース ID。複数の --exclude-disks 引数を使用して、複数のアクションを指定できます。

--no-wait

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

既定値: False
--os-restore-point-encryption-set

カスタマー マネージド OS ディスク暗号化セットのリソース ID。

--os-restore-point-encryption-type

OS ディスク復元ポイントのデータの暗号化に使用されるキーの種類。

承認された値: EncryptionAtRestWithCustomerKey, EncryptionAtRestWithPlatformAndCustomerKeys, EncryptionAtRestWithPlatformKey
--source-data-disk-resource

ソース データ ディスクのリソース ID。

--source-os-resource

ソース OS ディスクのリソース ID。

--source-restore-point

コピーを作成する必要があるソース復元ポイントのリソース 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 restore-point delete

復元ポイントを削除します。

az restore-point delete [--collection-name]
                        [--ids]
                        [--name]
                        [--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
                        [--resource-group]
                        [--subscription]
                        [--yes]

省略可能のパラメーター

--collection-name --restore-point-collection-name

復元ポイント コレクションの名前。

--ids

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

--name --restore-point-name -n

復元ポイントの名前。

--no-wait

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

承認された値: 0, 1, f, false, n, no, t, true, y, yes
--resource-group -g

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

--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 restore-point show

復元ポイントを取得します。

az restore-point show --collection-name
                      --name
                      --resource-group
                      [--instance-view]

復元ポイントを取得する

az restore-point show --resource-group "myResourceGroup" --collection-name "rpcName" --name "rpName"

必須のパラメーター

--collection-name

復元ポイント コレクションの名前。

--name --restore-point-name -n

復元ポイントの名前。

--resource-group -g

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

省略可能のパラメーター

--instance-view

復元ポイントのインスタンス ビューを表示します。

グローバル パラメーター
--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 restore-point wait

復元ポイントの条件が満たされるまで、CLI を待機状態にします。

az restore-point wait --collection-name
                      --name
                      --resource-group
                      [--created]
                      [--custom]
                      [--deleted]
                      [--exists]
                      [--expand]
                      [--interval]
                      [--timeout]
                      [--updated]

復元ポイントが正常に作成されるまで、CLI スクリプトの次の行の実行を一時停止します。

az restore-point wait --resource-group "myResourceGroup" --collection-name "rpcName" --name "rpName" --created

復元ポイントが正常に削除されるまで、CLI スクリプトの次の行の実行を一時停止します。

az restore-point wait --resource-group "myResourceGroup" --collection-name "rpcName" --name "rpName" --deleted

必須のパラメーター

--collection-name

復元ポイント コレクションの名前。

--name --restore-point-name -n

復元ポイントの名前。

--resource-group -g

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

省略可能のパラメーター

--created

'provisioningState' が 'Succeeded' で作成されるまで待ちます。

既定値: False
--custom

条件がカスタム JMESPath クエリを満たすまで待ちます。 例: provisioningState!='InProgress'、instanceView.statuses[?code=='PowerState/running']。

--deleted

削除されるまで待ちます。

既定値: False
--exists

リソースが存在するまで待ちます。

既定値: False
--expand

操作に適用する展開式。 'InstanceView' は、復元ポイントの実行時の状態に関する情報を取得します。 'instanceView' 既定値は None です。

--interval

ポーリング間隔 (秒単位)。

既定値: 30
--timeout

最大待機時間 (秒単位)。

既定値: 3600
--updated

provisioningState が 'Succeeded' で更新されるまで待ちます。

既定値: 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 を使います。