From 21a0ad76c5e1bbdc556aa1e6cfd039b3902e3e51 Mon Sep 17 00:00:00 2001 From: Christopher Scott Date: Wed, 16 Sep 2020 09:41:13 -0500 Subject: [PATCH 1/6] reorder backup and restore operation ctor args and add sample --- .../samples/README.md | 1 + .../samples/Sample3_BackRestoreResume.md | 46 ++ .../src/BackupOperation.cs | 4 +- .../src/RestoreOperation.cs | 4 +- .../tests/BackupRestoreTestBase.cs | 18 +- .../ResumeBackupRestore.json | 491 ++++++++++++++++++ .../ResumeBackupRestoreAsync.json | 491 ++++++++++++++++++ .../samples/Sample3_BackRestoreResume.cs | 74 +++ 8 files changed, 1118 insertions(+), 11 deletions(-) create mode 100644 sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md create mode 100644 sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestore.json create mode 100644 sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestoreAsync.json create mode 100644 sdk/keyvault/Azure.Security.KeyVault.Administration/tests/samples/Sample3_BackRestoreResume.cs diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/README.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/README.md index 066f4b3e89eb1..95ef94adf733e 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/README.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/README.md @@ -14,4 +14,5 @@ description: Samples for the Azure.Security.KeyVault.Administration client libra - Creating, getting, and deleting role assignments [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldSync.md) or [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_RbacHelloWorldAsync.md) - [Assigning roles for specific scopes](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample2_RbacScopeAssignment.md) - Performing a full key backup and restore [synchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldSync.md) and [asynchronously](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample1_BackupHelloWorldAsync.md) +- [Checking the status of a previously started backup or restore](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md) - [Performing selective key restore] diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md new file mode 100644 index 0000000000000..16f1cae0cc556 --- /dev/null +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md @@ -0,0 +1,46 @@ +# Checking the status of a previously started full key backup and restore + +This sample demonstrates how to a check the status and get the result of a previously started full key backup and restore in Azure Key Vault. +To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions. + +## Checking status of a full key backup + +Using the `KeyVaultBackupClient` and a `BackupOperation`, you can check the status and retrieve the result of a previously started `BackupOperation`. +For example the `Id` from a started operation on one client can be saved to persistent storage instead of waiting for completion immediately. +At some later time, another client can retrieve the persisted operation Id and construct a `BackupOperation` using a `KeyVaultBackupClient` and the Id +and check for status or wait for completion. + +```C# Snippet:ResumeBackupAsync +// Construct a new KeyVaultBackupClient or use an existing one. +KeyVaultBackupClient Client = new KeyVaultBackupClient(new Uri(keyVaultUrl), new DefaultAzureCredential()); + +// Construct a BackupOperation using a KeyVaultBackupClient and the Id from a previously started operation. +BackupOperation backupOperation = new BackupOperation(Client, backupOperationId); + +// Wait for completion of the BackupOperation. +Response backupResult = await backupOperation.WaitForCompletionAsync(); + +// Get the Uri for the location of you backup blob. +Uri backupBlobUri = backupResult.Value; +``` + +## Checking status of a full key restore + +Using the `KeyVaultBackupClient` and a `RestoreOperation`, you can check the status and retrieve the result of a previously started `RestoreOperation`. +For example the `Id` from a started operation on one client can be saved to persistent storage instead of waiting for completion immediately. +At some later time, another client can retrieve the persisted operation Id and construct a `RestoreOperation` using a `KeyVaultBackupClient` and the Id +and check for status or wait for completion. + +```C# Snippet:ResumeRestoreAsync +// Construct a new KeyVaultBackupClient or use an existing one. +KeyVaultBackupClient Client = new KeyVaultBackupClient(new Uri(keyVaultUrl), new DefaultAzureCredential()); + +// Construct a RestoreOperation using a KeyVaultBackupClient and the Id from a previously started operation. +RestoreOperation restoreOperation = new RestoreOperation(Client, restoreOperationId); + +// Wait for completion of the RestoreOperation. +Response restoreResult = await restoreOperation.WaitForCompletionAsync(); +``` + + +[DefaultAzureCredential]: ../../../identity/Azure.Identity/README.md diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/BackupOperation.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/BackupOperation.cs index b5885999d85d9..48ed145122d5a 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/BackupOperation.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/BackupOperation.cs @@ -28,10 +28,10 @@ public class BackupOperation : Operation /// , or must be called /// to re-populate the details of this operation. /// - /// The from a previous . /// An instance of . + /// The from a previous . /// or is null. - public BackupOperation(string id, KeyVaultBackupClient client) + public BackupOperation(KeyVaultBackupClient client, string id) { Argument.AssertNotNull(id, nameof(id)); Argument.AssertNotNull(client, nameof(client)); diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/RestoreOperation.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/RestoreOperation.cs index dab032979beb5..ddb447c9f1652 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/RestoreOperation.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/RestoreOperation.cs @@ -28,10 +28,10 @@ public class RestoreOperation : Operation /// , or must be called /// to re-populate the details of this operation. /// - /// The from a previous . /// An instance of . + /// The from a previous . /// or is null. - public RestoreOperation(string id, KeyVaultBackupClient client) + public RestoreOperation(KeyVaultBackupClient client, string id) { Argument.AssertNotNull(id, nameof(id)); Argument.AssertNotNull(client, nameof(client)); diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/BackupRestoreTestBase.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/BackupRestoreTestBase.cs index 9211db50afbd2..82731f457d47b 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/BackupRestoreTestBase.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/BackupRestoreTestBase.cs @@ -27,16 +27,20 @@ public BackupRestoreTestBase(bool isAsync) : base(isAsync) Sanitizer = new BackupRestoreRecordedTestSanitizer(); } - private KeyVaultBackupClient GetClient(TestRecording recording = null) + internal KeyVaultBackupClient GetClient(TestRecording recording = null, bool isInstrumented = true) { recording ??= Recording; - return InstrumentClient - (new KeyVaultBackupClient( - new Uri(TestEnvironment.KeyVaultUrl), - TestEnvironment.Credential, - recording.InstrumentClientOptions(new KeyVaultBackupClientOptions()))); - + var client = new KeyVaultBackupClient( + new Uri(TestEnvironment.KeyVaultUrl), + new Identity.DefaultAzureCredential(new Identity.DefaultAzureCredentialOptions { SharedTokenCacheTenantId = "f686d426-8d16-42db-81b7-ab578e110ccd", VisualStudioTenantId = "f686d426-8d16-42db-81b7-ab578e110ccd" }), + //TestEnvironment.Credential, + isInstrumented ? recording.InstrumentClientOptions(new KeyVaultBackupClientOptions()) : new KeyVaultBackupClientOptions()); + if (isInstrumented) + { + InstrumentClient(client); + } + return client; } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestore.json b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestore.json new file mode 100644 index 0000000000000..589f0b41b7d0a --- /dev/null +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestore.json @@ -0,0 +1,491 @@ +{ + "Entries": [ + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup?api-version=7.2-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Type": "application/json", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ca4accd4dc70f2858819ba237ed84a8b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd\u0022, resource=\u0022https://managedhsm-int.azure-int.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "1" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup?api-version=7.2-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "92", + "Content-Type": "application/json", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ca4accd4dc70f2858819ba237ed84a8b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "storageResourceUri": "https://chrissprim.blob.core.windows.net/backup", + "token": "Sanitized" + }, + "StatusCode": 202, + "ResponseHeaders": { + "azure-asyncoperation": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/c2613144e1964e979088026caaf8dee2/pending", + "Cache-Control": "no-cache", + "Content-Length": "216", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:35 GMT", + "Retry-After": "0", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "740" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": { + "code": null, + "message": null, + "innererror": null + }, + "startTime": 1600266875, + "endTime": null, + "jobId": "c2613144e1964e979088026caaf8dee2", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore?api-version=7.2-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "168", + "Content-Type": "application/json", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "36d9d973bbbaac9133645130ee35a7e2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://chrissprim.blob.core.windows.net/backup", + "token": "Sanitized" + }, + "folderToRestore": "mhsm-chriss-eu2-2020091614343535" + }, + "StatusCode": 202, + "ResponseHeaders": { + "azure-asyncoperation": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending", + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:48 GMT", + "Retry-After": "0", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "731" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", + "startTime": 1600266888, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d08b4d931a91e2dbd38b9a45c92cf8b6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:48 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "573" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", + "startTime": 1600266888, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "69fa203baf0919f13b9e970c8a550352", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:50 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "534" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", + "startTime": 1600266888, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "308fd771794c59fafef7632e204ce207", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:52 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "524" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", + "startTime": 1600266888, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cef49b6b3d3be4d95c7295f283cf587e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:54 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "544" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", + "startTime": 1600266888, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f2d34788c79cc26926a16b114cc3f9ef", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:55 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "559" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", + "startTime": 1600266888, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "eea08fbb35613417fdabd4dae407d52f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:57 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "745" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", + "startTime": 1600266888, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d8a6e49ff079a46a3232a899d2c79799", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:59 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "878" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", + "startTime": 1600266888, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f337a679692e521c2f9ef4f0f28edd1f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:35:00 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "564" + }, + "ResponseBody": { + "endTime": 1600266901, + "error": null, + "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", + "startTime": 1600266888, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": { + "AZURE_KEYVAULT_URL": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net", + "BLOB_PRIMARY_STORAGE_ACCOUNT_KEY": "Sanitized", + "BLOB_STORAGE_ACCOUNT_NAME": "chrissprim", + "RandomSeed": "591915347" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestoreAsync.json b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestoreAsync.json new file mode 100644 index 0000000000000..29eb6b340c2c3 --- /dev/null +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestoreAsync.json @@ -0,0 +1,491 @@ +{ + "Entries": [ + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup?api-version=7.2-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Content-Type": "application/json", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ee667d264f41315e8f66a54f1b72f268", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 401, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "WWW-Authenticate": "Bearer authorization=\u0022https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd\u0022, resource=\u0022https://managedhsm-int.azure-int.net\u0022", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", + "x-ms-server-latency": "0" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup?api-version=7.2-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "92", + "Content-Type": "application/json", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ee667d264f41315e8f66a54f1b72f268", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "storageResourceUri": "https://chrissprim.blob.core.windows.net/backup", + "token": "Sanitized" + }, + "StatusCode": 202, + "ResponseHeaders": { + "azure-asyncoperation": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/c0bbff46ead344acbb0606bbf7f91c0c/pending", + "Cache-Control": "no-cache", + "Content-Length": "216", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:33:53 GMT", + "Retry-After": "0", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", + "x-ms-server-latency": "977" + }, + "ResponseBody": { + "status": "InProgress", + "statusDetails": null, + "error": { + "code": null, + "message": null, + "innererror": null + }, + "startTime": 1600266833, + "endTime": null, + "jobId": "c0bbff46ead344acbb0606bbf7f91c0c", + "azureStorageBlobContainerUri": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore?api-version=7.2-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "Content-Length": "168", + "Content-Type": "application/json", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ba02f8777276bea69a87d7b85da55979", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "sasTokenParameters": { + "storageResourceUri": "https://chrissprim.blob.core.windows.net/backup", + "token": "Sanitized" + }, + "folderToRestore": "mhsm-chriss-eu2-2020091614335347" + }, + "StatusCode": 202, + "ResponseHeaders": { + "azure-asyncoperation": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending", + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:10 GMT", + "Retry-After": "0", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", + "x-ms-server-latency": "2996" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "230562586b3441469da624facebbc428", + "startTime": 1600266848, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "50a5a3b0b805a9dd7224c0bc935c279c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:10 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", + "x-ms-server-latency": "675" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "230562586b3441469da624facebbc428", + "startTime": 1600266848, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bde28eb49d91b47ed7a754ba78a6d4ea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:12 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", + "x-ms-server-latency": "717" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "230562586b3441469da624facebbc428", + "startTime": 1600266848, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "779e2c0ca1cdbe621b594752b1ea2b3d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:14 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", + "x-ms-server-latency": "720" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "230562586b3441469da624facebbc428", + "startTime": 1600266848, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ce033a609cc213e825f0795d642331cc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:16 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", + "x-ms-server-latency": "756" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "230562586b3441469da624facebbc428", + "startTime": 1600266848, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "67afd650b0be12ce2b24a137552b02ec", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:17 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", + "x-ms-server-latency": "697" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "230562586b3441469da624facebbc428", + "startTime": 1600266848, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3d59177c05a37027438b51dc280459f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:19 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", + "x-ms-server-latency": "691" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "230562586b3441469da624facebbc428", + "startTime": 1600266848, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "db027b28c33baf7f6cf1a29efab0bdf9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:21 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", + "x-ms-server-latency": "729" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "230562586b3441469da624facebbc428", + "startTime": 1600266848, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4de18ceef3c94a28af3f23325ef1e926", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "143", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 14:34:23 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", + "x-ms-server-latency": "672" + }, + "ResponseBody": { + "endTime": 1600266863, + "error": null, + "jobId": "230562586b3441469da624facebbc428", + "startTime": 1600266848, + "status": "Succeeded", + "statusDetails": null + } + } + ], + "Variables": { + "AZURE_KEYVAULT_URL": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net", + "BLOB_PRIMARY_STORAGE_ACCOUNT_KEY": "Sanitized", + "BLOB_STORAGE_ACCOUNT_NAME": "chrissprim", + "RandomSeed": "430167557" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/samples/Sample3_BackRestoreResume.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/samples/Sample3_BackRestoreResume.cs new file mode 100644 index 0000000000000..07ed018ea1c35 --- /dev/null +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/samples/Sample3_BackRestoreResume.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Threading.Tasks; +using Azure.Core.TestFramework; +using NUnit.Framework; +using System; +using Azure.Identity; + +namespace Azure.Security.KeyVault.Administration.Tests +{ + public class Sample3_BackRestoreResume : BackupRestoreTestBase + { + public Sample3_BackRestoreResume(bool isAsync) : base(isAsync, RecordedTestMode.Playback /* To record tests, change this argument to RecordedTestMode.Record */) + { } + + [RecordedTest] + public async Task ResumeBackupRestore() + { + var blobStorageUrl = TestEnvironment.StorageUri; + var blobContainerName = BlobContainerName; + var sasToken = "?" + SasToken; + var client = GetClient(null, false); + + // Create a Uri with the storage container + UriBuilder builder = new UriBuilder(blobStorageUrl) + { + Path = blobContainerName, + }; + + // Start the backup. + BackupOperation originalBackupOperation = await Client.StartBackupAsync(builder.Uri, sasToken); + var backupOperationId = originalBackupOperation.Id; + + #region Snippet:ResumeBackupAsync + // Construct a new KeyVaultBackupClient or use an existing one. + //@@KeyVaultBackupClient Client = new KeyVaultBackupClient(new Uri(keyVaultUrl), new DefaultAzureCredential()); + + // Construct a BackupOperation using a KeyVaultBackupClient and the Id from a previously started operation. + BackupOperation backupOperation = new BackupOperation(client, backupOperationId); + + // Wait for completion of the BackupOperation. + Response backupResult = await backupOperation.WaitForCompletionAsync(); + + // Get the Uri for the location of you backup blob. + Uri backupBlobUri = backupResult.Value; + #endregion + + Assert.That(backupBlobUri, Is.Not.Null); + Assert.That(backupOperation.HasValue, Is.True); + + // Get the folder name from the backupBlobUri returned from a previous BackupOperation + string[] uriSegments = backupBlobUri.Segments; + string folderName = uriSegments[uriSegments.Length - 1]; + + // Start the restore. + RestoreOperation originalRestoreOperation = await Client.StartRestoreAsync(builder.Uri, sasToken, folderName); + var restoreOperationId = originalRestoreOperation.Id; + + #region Snippet:ResumeRestoreAsync + // Construct a new KeyVaultBackupClient or use an existing one. + //@@KeyVaultBackupClient Client = new KeyVaultBackupClient(new Uri(keyVaultUrl), new DefaultAzureCredential()); + + // Construct a RestoreOperation using a KeyVaultBackupClient and the Id from a previously started operation. + RestoreOperation restoreOperation = new RestoreOperation(Client, restoreOperationId); + + // Wait for completion of the RestoreOperation. + Response restoreResult = await restoreOperation.WaitForCompletionAsync(); + #endregion + Assert.That(restoreResult, Is.Not.Null); + Assert.That(restoreOperation.HasValue, Is.True); + } + } +} From f1cf6b1466ab85e77df72b47f0bafdf9ec69a558 Mon Sep 17 00:00:00 2001 From: Christopher Scott Date: Wed, 16 Sep 2020 10:44:55 -0500 Subject: [PATCH 2/6] fixup tests --- .../samples/Sample3_BackRestoreResume.md | 4 +- .../tests/BackupRestoreTestBase.cs | 11 +- .../ResumeBackupRestore.json | 545 +++++++++++++--- .../ResumeBackupRestoreAsync.json | 591 +++++++++++++++--- .../samples/Sample3_BackRestoreResume.cs | 5 +- 5 files changed, 999 insertions(+), 157 deletions(-) diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md index 16f1cae0cc556..f2f5558bd56e8 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md @@ -15,7 +15,7 @@ and check for status or wait for completion. KeyVaultBackupClient Client = new KeyVaultBackupClient(new Uri(keyVaultUrl), new DefaultAzureCredential()); // Construct a BackupOperation using a KeyVaultBackupClient and the Id from a previously started operation. -BackupOperation backupOperation = new BackupOperation(Client, backupOperationId); +BackupOperation backupOperation = new BackupOperation(client, backupOperationId); // Wait for completion of the BackupOperation. Response backupResult = await backupOperation.WaitForCompletionAsync(); @@ -36,7 +36,7 @@ and check for status or wait for completion. KeyVaultBackupClient Client = new KeyVaultBackupClient(new Uri(keyVaultUrl), new DefaultAzureCredential()); // Construct a RestoreOperation using a KeyVaultBackupClient and the Id from a previously started operation. -RestoreOperation restoreOperation = new RestoreOperation(Client, restoreOperationId); +RestoreOperation restoreOperation = new RestoreOperation(client, restoreOperationId); // Wait for completion of the RestoreOperation. Response restoreResult = await restoreOperation.WaitForCompletionAsync(); diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/BackupRestoreTestBase.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/BackupRestoreTestBase.cs index 82731f457d47b..0299b1fc0d078 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/BackupRestoreTestBase.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/BackupRestoreTestBase.cs @@ -33,14 +33,9 @@ internal KeyVaultBackupClient GetClient(TestRecording recording = null, bool isI var client = new KeyVaultBackupClient( new Uri(TestEnvironment.KeyVaultUrl), - new Identity.DefaultAzureCredential(new Identity.DefaultAzureCredentialOptions { SharedTokenCacheTenantId = "f686d426-8d16-42db-81b7-ab578e110ccd", VisualStudioTenantId = "f686d426-8d16-42db-81b7-ab578e110ccd" }), - //TestEnvironment.Credential, - isInstrumented ? recording.InstrumentClientOptions(new KeyVaultBackupClientOptions()) : new KeyVaultBackupClientOptions()); - if (isInstrumented) - { - InstrumentClient(client); - } - return client; + TestEnvironment.Credential, + recording.InstrumentClientOptions(new KeyVaultBackupClientOptions())); + return isInstrumented ? InstrumentClient(client) : client; } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestore.json b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestore.json index 589f0b41b7d0a..9b862c2868b22 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestore.json +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestore.json @@ -6,6 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Content-Type": "application/json", + "traceparent": "00-0dc2883569ad8d4a993f71018f4ced73-15b5328e0f4a2a42-00", "User-Agent": [ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" @@ -24,7 +25,7 @@ "WWW-Authenticate": "Bearer authorization=\u0022https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd\u0022, resource=\u0022https://managedhsm-int.azure-int.net\u0022", "X-Content-Type-Options": "nosniff", "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", "x-ms-server-latency": "1" }, "ResponseBody": [] @@ -37,6 +38,7 @@ "Authorization": "Sanitized", "Content-Length": "92", "Content-Type": "application/json", + "traceparent": "00-0dc2883569ad8d4a993f71018f4ced73-15b5328e0f4a2a42-00", "User-Agent": [ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" @@ -50,12 +52,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "azure-asyncoperation": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/c2613144e1964e979088026caaf8dee2/pending", + "azure-asyncoperation": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/5250b386095c4b49ab22879c217c43c5/pending", "Cache-Control": "no-cache", "Content-Length": "216", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:35 GMT", + "Date": "Wed, 16 Sep 2020 15:41:05 GMT", "Retry-After": "0", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -63,8 +65,8 @@ "X-Frame-Options": "SAMEORIGIN", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", - "x-ms-server-latency": "740" + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "1022" }, "ResponseBody": { "status": "InProgress", @@ -74,12 +76,278 @@ "message": null, "innererror": null }, - "startTime": 1600266875, + "startTime": 1600270866, "endTime": null, - "jobId": "c2613144e1964e979088026caaf8dee2", + "jobId": "5250b386095c4b49ab22879c217c43c5", "azureStorageBlobContainerUri": null } }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/5250b386095c4b49ab22879c217c43c5/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "36d9d973bbbaac9133645130ee35a7e2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "216", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:41:10 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "667" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "5250b386095c4b49ab22879c217c43c5", + "startTime": 1600270866, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/5250b386095c4b49ab22879c217c43c5/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d08b4d931a91e2dbd38b9a45c92cf8b6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "216", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:41:12 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "656" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "5250b386095c4b49ab22879c217c43c5", + "startTime": 1600270866, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/5250b386095c4b49ab22879c217c43c5/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "69fa203baf0919f13b9e970c8a550352", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "216", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:41:14 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "654" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "5250b386095c4b49ab22879c217c43c5", + "startTime": 1600270866, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/5250b386095c4b49ab22879c217c43c5/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "308fd771794c59fafef7632e204ce207", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "216", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:41:16 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "787" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "5250b386095c4b49ab22879c217c43c5", + "startTime": 1600270866, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/5250b386095c4b49ab22879c217c43c5/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cef49b6b3d3be4d95c7295f283cf587e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "216", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:41:17 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "712" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "5250b386095c4b49ab22879c217c43c5", + "startTime": 1600270866, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/5250b386095c4b49ab22879c217c43c5/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f2d34788c79cc26926a16b114cc3f9ef", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "257", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:41:19 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "718" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://chrissprim.blob.core.windows.net/backup/mhsm-chriss-eu2-2020091615410629", + "endTime": 1600270878, + "error": null, + "jobId": "5250b386095c4b49ab22879c217c43c5", + "startTime": 1600270866, + "status": "Succeeded", + "statusDetails": null + } + }, { "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore?api-version=7.2-preview", "RequestMethod": "PUT", @@ -88,11 +356,12 @@ "Authorization": "Sanitized", "Content-Length": "168", "Content-Type": "application/json", + "traceparent": "00-5fdf42daf1e43240a623a2a29eae37e1-ed57ff619362fb42-00", "User-Agent": [ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "36d9d973bbbaac9133645130ee35a7e2", + "x-ms-client-request-id": "eea08fbb35613417fdabd4dae407d52f", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -100,16 +369,16 @@ "storageResourceUri": "https://chrissprim.blob.core.windows.net/backup", "token": "Sanitized" }, - "folderToRestore": "mhsm-chriss-eu2-2020091614343535" + "folderToRestore": "mhsm-chriss-eu2-2020091615410629" }, "StatusCode": 202, "ResponseHeaders": { - "azure-asyncoperation": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending", + "azure-asyncoperation": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/43caf124b090476a86b79248b7c921c0/pending", "Cache-Control": "no-cache", "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:48 GMT", + "Date": "Wed, 16 Sep 2020 15:41:20 GMT", "Retry-After": "0", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -117,8 +386,8 @@ "X-Frame-Options": "SAMEORIGIN", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", - "x-ms-server-latency": "731" + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "923" }, "ResponseBody": { "endTime": null, @@ -127,14 +396,14 @@ "innererror": null, "message": null }, - "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", - "startTime": 1600266888, + "jobId": "43caf124b090476a86b79248b7c921c0", + "startTime": 1600270880, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/43caf124b090476a86b79248b7c921c0/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -143,7 +412,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "d08b4d931a91e2dbd38b9a45c92cf8b6", + "x-ms-client-request-id": "d8a6e49ff079a46a3232a899d2c79799", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -153,7 +422,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:48 GMT", + "Date": "Wed, 16 Sep 2020 15:41:20 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -161,8 +430,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", - "x-ms-server-latency": "573" + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "642" }, "ResponseBody": { "endTime": null, @@ -171,14 +440,14 @@ "innererror": null, "message": null }, - "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", - "startTime": 1600266888, + "jobId": "43caf124b090476a86b79248b7c921c0", + "startTime": 1600270880, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/43caf124b090476a86b79248b7c921c0/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -187,7 +456,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "69fa203baf0919f13b9e970c8a550352", + "x-ms-client-request-id": "f337a679692e521c2f9ef4f0f28edd1f", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -197,7 +466,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:50 GMT", + "Date": "Wed, 16 Sep 2020 15:41:23 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -205,8 +474,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", - "x-ms-server-latency": "534" + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "738" }, "ResponseBody": { "endTime": null, @@ -215,14 +484,14 @@ "innererror": null, "message": null }, - "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", - "startTime": 1600266888, + "jobId": "43caf124b090476a86b79248b7c921c0", + "startTime": 1600270880, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/43caf124b090476a86b79248b7c921c0/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -231,7 +500,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "308fd771794c59fafef7632e204ce207", + "x-ms-client-request-id": "67723ccb201cca7525fcbb2f8d7e6135", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -241,7 +510,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:52 GMT", + "Date": "Wed, 16 Sep 2020 15:41:24 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -249,8 +518,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", - "x-ms-server-latency": "524" + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "653" }, "ResponseBody": { "endTime": null, @@ -259,14 +528,14 @@ "innererror": null, "message": null }, - "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", - "startTime": 1600266888, + "jobId": "43caf124b090476a86b79248b7c921c0", + "startTime": 1600270880, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/43caf124b090476a86b79248b7c921c0/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -275,7 +544,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "cef49b6b3d3be4d95c7295f283cf587e", + "x-ms-client-request-id": "3d613b13e2cf3500c853a8dafc7ab1a4", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -285,7 +554,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:54 GMT", + "Date": "Wed, 16 Sep 2020 15:41:26 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -293,8 +562,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", - "x-ms-server-latency": "544" + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "652" }, "ResponseBody": { "endTime": null, @@ -303,14 +572,14 @@ "innererror": null, "message": null }, - "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", - "startTime": 1600266888, + "jobId": "43caf124b090476a86b79248b7c921c0", + "startTime": 1600270880, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/43caf124b090476a86b79248b7c921c0/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -319,7 +588,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "f2d34788c79cc26926a16b114cc3f9ef", + "x-ms-client-request-id": "96cd89543055587c306cce32adedc5b1", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -329,7 +598,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:55 GMT", + "Date": "Wed, 16 Sep 2020 15:41:27 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -337,8 +606,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", - "x-ms-server-latency": "559" + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "674" }, "ResponseBody": { "endTime": null, @@ -347,14 +616,14 @@ "innererror": null, "message": null }, - "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", - "startTime": 1600266888, + "jobId": "43caf124b090476a86b79248b7c921c0", + "startTime": 1600270880, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/43caf124b090476a86b79248b7c921c0/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -363,7 +632,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "eea08fbb35613417fdabd4dae407d52f", + "x-ms-client-request-id": "b7ddbe3da02ce94f3b3c9fc8779bceab", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -373,7 +642,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:57 GMT", + "Date": "Wed, 16 Sep 2020 15:41:30 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -381,8 +650,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", - "x-ms-server-latency": "745" + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "645" }, "ResponseBody": { "endTime": null, @@ -391,14 +660,14 @@ "innererror": null, "message": null }, - "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", - "startTime": 1600266888, + "jobId": "43caf124b090476a86b79248b7c921c0", + "startTime": 1600270880, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/43caf124b090476a86b79248b7c921c0/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -407,7 +676,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "d8a6e49ff079a46a3232a899d2c79799", + "x-ms-client-request-id": "03da174bcab0e2e0bf080c6313cd88da", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -417,7 +686,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:59 GMT", + "Date": "Wed, 16 Sep 2020 15:41:31 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -425,8 +694,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", - "x-ms-server-latency": "878" + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "841" }, "ResponseBody": { "endTime": null, @@ -435,14 +704,14 @@ "innererror": null, "message": null }, - "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", - "startTime": 1600266888, + "jobId": "43caf124b090476a86b79248b7c921c0", + "startTime": 1600270880, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/debf57e3fc9a4d3b93edc8c2b9dca976/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/43caf124b090476a86b79248b7c921c0/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -451,7 +720,139 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "f337a679692e521c2f9ef4f0f28edd1f", + "x-ms-client-request-id": "3e9cf68ef99cb4773ae45a1991b3e195", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:41:33 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "615" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "43caf124b090476a86b79248b7c921c0", + "startTime": 1600270880, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/43caf124b090476a86b79248b7c921c0/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "96e7239ec1137201ddfaf82493ebd56e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:41:35 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "639" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "43caf124b090476a86b79248b7c921c0", + "startTime": 1600270880, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/43caf124b090476a86b79248b7c921c0/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "803ac5b490fe510ea026c9cc6fc7510b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:41:36 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "647" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "43caf124b090476a86b79248b7c921c0", + "startTime": 1600270880, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/43caf124b090476a86b79248b7c921c0/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f0c47727f2e5ccc6f52a60a20152204e", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -461,7 +862,7 @@ "Content-Length": "143", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:35:00 GMT", + "Date": "Wed, 16 Sep 2020 15:41:38 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -469,14 +870,14 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", - "x-ms-server-latency": "564" + "x-ms-request-id": "f3cb08d4-f79d-11ea-9849-0242ac120006", + "x-ms-server-latency": "702" }, "ResponseBody": { - "endTime": 1600266901, + "endTime": 1600270898, "error": null, - "jobId": "debf57e3fc9a4d3b93edc8c2b9dca976", - "startTime": 1600266888, + "jobId": "43caf124b090476a86b79248b7c921c0", + "startTime": 1600270880, "status": "Succeeded", "statusDetails": null } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestoreAsync.json b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestoreAsync.json index 29eb6b340c2c3..de7feb68dfeeb 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestoreAsync.json +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/SessionRecords/Sample3_BackRestoreResume/ResumeBackupRestoreAsync.json @@ -6,6 +6,7 @@ "RequestHeaders": { "Accept": "application/json", "Content-Type": "application/json", + "traceparent": "00-7a1e29c9729ec447b95303d6faa85748-142c15f75d981d42-00", "User-Agent": [ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" @@ -24,8 +25,8 @@ "WWW-Authenticate": "Bearer authorization=\u0022https://login.windows-ppe.net/f686d426-8d16-42db-81b7-ab578e110ccd\u0022, resource=\u0022https://managedhsm-int.azure-int.net\u0022", "X-Content-Type-Options": "nosniff", "X-Frame-Options": "SAMEORIGIN", - "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", - "x-ms-server-latency": "0" + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "1" }, "ResponseBody": [] }, @@ -37,6 +38,7 @@ "Authorization": "Sanitized", "Content-Length": "92", "Content-Type": "application/json", + "traceparent": "00-7a1e29c9729ec447b95303d6faa85748-142c15f75d981d42-00", "User-Agent": [ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" @@ -50,12 +52,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "azure-asyncoperation": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/c0bbff46ead344acbb0606bbf7f91c0c/pending", + "azure-asyncoperation": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/82922acde9d24c6a928b98247778514b/pending", "Cache-Control": "no-cache", "Content-Length": "216", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:33:53 GMT", + "Date": "Wed, 16 Sep 2020 15:42:04 GMT", "Retry-After": "0", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -63,8 +65,8 @@ "X-Frame-Options": "SAMEORIGIN", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", - "x-ms-server-latency": "977" + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "737" }, "ResponseBody": { "status": "InProgress", @@ -74,12 +76,278 @@ "message": null, "innererror": null }, - "startTime": 1600266833, + "startTime": 1600270925, "endTime": null, - "jobId": "c0bbff46ead344acbb0606bbf7f91c0c", + "jobId": "82922acde9d24c6a928b98247778514b", "azureStorageBlobContainerUri": null } }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/82922acde9d24c6a928b98247778514b/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ba02f8777276bea69a87d7b85da55979", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "216", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:42:09 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "565" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "82922acde9d24c6a928b98247778514b", + "startTime": 1600270925, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/82922acde9d24c6a928b98247778514b/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "50a5a3b0b805a9dd7224c0bc935c279c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "216", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:42:11 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "588" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "82922acde9d24c6a928b98247778514b", + "startTime": 1600270925, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/82922acde9d24c6a928b98247778514b/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bde28eb49d91b47ed7a754ba78a6d4ea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "216", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:42:12 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "580" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "82922acde9d24c6a928b98247778514b", + "startTime": 1600270925, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/82922acde9d24c6a928b98247778514b/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "779e2c0ca1cdbe621b594752b1ea2b3d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "216", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:42:13 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "573" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "82922acde9d24c6a928b98247778514b", + "startTime": 1600270925, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/82922acde9d24c6a928b98247778514b/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ce033a609cc213e825f0795d642331cc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "216", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:42:15 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "583" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": null, + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "82922acde9d24c6a928b98247778514b", + "startTime": 1600270925, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/backup/82922acde9d24c6a928b98247778514b/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "67afd650b0be12ce2b24a137552b02ec", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "257", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:42:17 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "602" + }, + "ResponseBody": { + "azureStorageBlobContainerUri": "https://chrissprim.blob.core.windows.net/backup/mhsm-chriss-eu2-2020091615420520", + "endTime": 1600270936, + "error": null, + "jobId": "82922acde9d24c6a928b98247778514b", + "startTime": 1600270925, + "status": "Succeeded", + "statusDetails": null + } + }, { "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore?api-version=7.2-preview", "RequestMethod": "PUT", @@ -88,11 +356,12 @@ "Authorization": "Sanitized", "Content-Length": "168", "Content-Type": "application/json", + "traceparent": "00-56f873c37750ef478df6f291b22de2f0-0d930c7e9fbe9f48-00", "User-Agent": [ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "ba02f8777276bea69a87d7b85da55979", + "x-ms-client-request-id": "3d59177c05a37027438b51dc280459f7", "x-ms-return-client-request-id": "true" }, "RequestBody": { @@ -100,16 +369,16 @@ "storageResourceUri": "https://chrissprim.blob.core.windows.net/backup", "token": "Sanitized" }, - "folderToRestore": "mhsm-chriss-eu2-2020091614335347" + "folderToRestore": "mhsm-chriss-eu2-2020091615420520" }, "StatusCode": 202, "ResponseHeaders": { - "azure-asyncoperation": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending", + "azure-asyncoperation": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/3bae77da9da74024af4bfb771de6e7e1/pending", "Cache-Control": "no-cache", "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:10 GMT", + "Date": "Wed, 16 Sep 2020 15:42:18 GMT", "Retry-After": "0", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -117,8 +386,8 @@ "X-Frame-Options": "SAMEORIGIN", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", - "x-ms-server-latency": "2996" + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "838" }, "ResponseBody": { "endTime": null, @@ -127,14 +396,14 @@ "innererror": null, "message": null }, - "jobId": "230562586b3441469da624facebbc428", - "startTime": 1600266848, + "jobId": "3bae77da9da74024af4bfb771de6e7e1", + "startTime": 1600270938, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/3bae77da9da74024af4bfb771de6e7e1/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -143,7 +412,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "50a5a3b0b805a9dd7224c0bc935c279c", + "x-ms-client-request-id": "db027b28c33baf7f6cf1a29efab0bdf9", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -153,7 +422,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:10 GMT", + "Date": "Wed, 16 Sep 2020 15:42:19 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -161,8 +430,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", - "x-ms-server-latency": "675" + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "545" }, "ResponseBody": { "endTime": null, @@ -171,14 +440,14 @@ "innererror": null, "message": null }, - "jobId": "230562586b3441469da624facebbc428", - "startTime": 1600266848, + "jobId": "3bae77da9da74024af4bfb771de6e7e1", + "startTime": 1600270938, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/3bae77da9da74024af4bfb771de6e7e1/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -187,7 +456,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "bde28eb49d91b47ed7a754ba78a6d4ea", + "x-ms-client-request-id": "4de18ceef3c94a28af3f23325ef1e926", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -197,7 +466,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:12 GMT", + "Date": "Wed, 16 Sep 2020 15:42:20 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -205,8 +474,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", - "x-ms-server-latency": "717" + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "556" }, "ResponseBody": { "endTime": null, @@ -215,14 +484,14 @@ "innererror": null, "message": null }, - "jobId": "230562586b3441469da624facebbc428", - "startTime": 1600266848, + "jobId": "3bae77da9da74024af4bfb771de6e7e1", + "startTime": 1600270938, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/3bae77da9da74024af4bfb771de6e7e1/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -231,7 +500,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "779e2c0ca1cdbe621b594752b1ea2b3d", + "x-ms-client-request-id": "da0faaca2629b8b198a9d1b262887592", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -241,7 +510,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:14 GMT", + "Date": "Wed, 16 Sep 2020 15:42:22 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -249,8 +518,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", - "x-ms-server-latency": "720" + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "548" }, "ResponseBody": { "endTime": null, @@ -259,14 +528,14 @@ "innererror": null, "message": null }, - "jobId": "230562586b3441469da624facebbc428", - "startTime": 1600266848, + "jobId": "3bae77da9da74024af4bfb771de6e7e1", + "startTime": 1600270938, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/3bae77da9da74024af4bfb771de6e7e1/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -275,7 +544,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "ce033a609cc213e825f0795d642331cc", + "x-ms-client-request-id": "9ced57ce0c23342d52b72bfca04c517a", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -285,7 +554,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:16 GMT", + "Date": "Wed, 16 Sep 2020 15:42:23 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -293,8 +562,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", - "x-ms-server-latency": "756" + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "534" }, "ResponseBody": { "endTime": null, @@ -303,14 +572,14 @@ "innererror": null, "message": null }, - "jobId": "230562586b3441469da624facebbc428", - "startTime": 1600266848, + "jobId": "3bae77da9da74024af4bfb771de6e7e1", + "startTime": 1600270938, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/3bae77da9da74024af4bfb771de6e7e1/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -319,7 +588,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "67afd650b0be12ce2b24a137552b02ec", + "x-ms-client-request-id": "50d37b07e3a1c7d0da28b41f2276e726", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -329,7 +598,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:17 GMT", + "Date": "Wed, 16 Sep 2020 15:42:25 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -337,8 +606,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", - "x-ms-server-latency": "697" + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "499" }, "ResponseBody": { "endTime": null, @@ -347,14 +616,14 @@ "innererror": null, "message": null }, - "jobId": "230562586b3441469da624facebbc428", - "startTime": 1600266848, + "jobId": "3bae77da9da74024af4bfb771de6e7e1", + "startTime": 1600270938, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/3bae77da9da74024af4bfb771de6e7e1/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -363,7 +632,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "3d59177c05a37027438b51dc280459f7", + "x-ms-client-request-id": "066490c94d04be037cda8771fbb5184c", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -373,7 +642,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:19 GMT", + "Date": "Wed, 16 Sep 2020 15:42:27 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -381,8 +650,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", - "x-ms-server-latency": "691" + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "554" }, "ResponseBody": { "endTime": null, @@ -391,14 +660,14 @@ "innererror": null, "message": null }, - "jobId": "230562586b3441469da624facebbc428", - "startTime": 1600266848, + "jobId": "3bae77da9da74024af4bfb771de6e7e1", + "startTime": 1600270938, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/3bae77da9da74024af4bfb771de6e7e1/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -407,7 +676,7 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "db027b28c33baf7f6cf1a29efab0bdf9", + "x-ms-client-request-id": "e6aa565825b5ebf18726c1fa570d12dc", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -417,7 +686,7 @@ "Content-Length": "180", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:21 GMT", + "Date": "Wed, 16 Sep 2020 15:42:28 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -425,8 +694,8 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", - "x-ms-server-latency": "729" + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "523" }, "ResponseBody": { "endTime": null, @@ -435,14 +704,14 @@ "innererror": null, "message": null }, - "jobId": "230562586b3441469da624facebbc428", - "startTime": 1600266848, + "jobId": "3bae77da9da74024af4bfb771de6e7e1", + "startTime": 1600270938, "status": "InProgress", "statusDetails": null } }, { - "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/230562586b3441469da624facebbc428/pending?api-version=7.2-preview", + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/3bae77da9da74024af4bfb771de6e7e1/pending?api-version=7.2-preview", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -451,7 +720,183 @@ "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "4de18ceef3c94a28af3f23325ef1e926", + "x-ms-client-request-id": "0f3204d04ae7ba767814d4c75b5ecc24", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:42:30 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "555" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "3bae77da9da74024af4bfb771de6e7e1", + "startTime": 1600270938, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/3bae77da9da74024af4bfb771de6e7e1/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cbc7681000cca3719f797fdd8b08666e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:42:31 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "546" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "3bae77da9da74024af4bfb771de6e7e1", + "startTime": 1600270938, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/3bae77da9da74024af4bfb771de6e7e1/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f6a1abc808820e64e0f06ea0512a8f28", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:42:33 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "543" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "3bae77da9da74024af4bfb771de6e7e1", + "startTime": 1600270938, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/3bae77da9da74024af4bfb771de6e7e1/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "eee99d594646cf10928e706eca982e6f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "180", + "Content-Security-Policy": "default-src \u0027self\u0027", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 16 Sep 2020 15:42:35 GMT", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "SAMEORIGIN", + "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", + "x-ms-keyvault-network-info": "addr=70.121.15.5", + "x-ms-keyvault-region": "EASTUS", + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "555" + }, + "ResponseBody": { + "endTime": null, + "error": { + "code": null, + "innererror": null, + "message": null + }, + "jobId": "3bae77da9da74024af4bfb771de6e7e1", + "startTime": 1600270938, + "status": "InProgress", + "statusDetails": null + } + }, + { + "RequestUri": "https://eastus2.chriss-eu2.managedhsm-int.azure-int.net/restore/3bae77da9da74024af4bfb771de6e7e1/pending?api-version=7.2-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Security.KeyVault.Administration/4.0.0-alpha.20200916.1", + "(.NET Core 4.6.29220.03; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b0fe65add5bd07a104b9ebdb92d15274", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -461,7 +906,7 @@ "Content-Length": "143", "Content-Security-Policy": "default-src \u0027self\u0027", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Sep 2020 14:34:23 GMT", + "Date": "Wed, 16 Sep 2020 15:42:37 GMT", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", @@ -469,14 +914,14 @@ "x-ms-build-version": "1.0.20200915-2-4a3b2ef9-develop", "x-ms-keyvault-network-info": "addr=70.121.15.5", "x-ms-keyvault-region": "EASTUS", - "x-ms-request-id": "0e4b0750-f7a2-11ea-af36-0242ac120006", - "x-ms-server-latency": "672" + "x-ms-request-id": "7fc6f01e-f799-11ea-bb41-0242ac120003", + "x-ms-server-latency": "518" }, "ResponseBody": { - "endTime": 1600266863, + "endTime": 1600270956, "error": null, - "jobId": "230562586b3441469da624facebbc428", - "startTime": 1600266848, + "jobId": "3bae77da9da74024af4bfb771de6e7e1", + "startTime": 1600270938, "status": "Succeeded", "statusDetails": null } diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/samples/Sample3_BackRestoreResume.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/samples/Sample3_BackRestoreResume.cs index 07ed018ea1c35..61247fc635e0f 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/samples/Sample3_BackRestoreResume.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/tests/samples/Sample3_BackRestoreResume.cs @@ -14,12 +14,13 @@ public class Sample3_BackRestoreResume : BackupRestoreTestBase public Sample3_BackRestoreResume(bool isAsync) : base(isAsync, RecordedTestMode.Playback /* To record tests, change this argument to RecordedTestMode.Record */) { } - [RecordedTest] + [Test] public async Task ResumeBackupRestore() { var blobStorageUrl = TestEnvironment.StorageUri; var blobContainerName = BlobContainerName; var sasToken = "?" + SasToken; + // var client = Mode == RecordedTestMode.Playback ? GetClient(null, false) : Client; var client = GetClient(null, false); // Create a Uri with the storage container @@ -62,7 +63,7 @@ public async Task ResumeBackupRestore() //@@KeyVaultBackupClient Client = new KeyVaultBackupClient(new Uri(keyVaultUrl), new DefaultAzureCredential()); // Construct a RestoreOperation using a KeyVaultBackupClient and the Id from a previously started operation. - RestoreOperation restoreOperation = new RestoreOperation(Client, restoreOperationId); + RestoreOperation restoreOperation = new RestoreOperation(client, restoreOperationId); // Wait for completion of the RestoreOperation. Response restoreResult = await restoreOperation.WaitForCompletionAsync(); From 8bd974be69e76a21ad284140ac911db28786ffad Mon Sep 17 00:00:00 2001 From: Christopher Scott Date: Wed, 16 Sep 2020 11:14:38 -0500 Subject: [PATCH 3/6] export --- .../Azure.Security.KeyVault.Administration.netstandard2.0.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/api/Azure.Security.KeyVault.Administration.netstandard2.0.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/api/Azure.Security.KeyVault.Administration.netstandard2.0.cs index 2bac57b9b3c53..5c5ba43410904 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/api/Azure.Security.KeyVault.Administration.netstandard2.0.cs +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/api/Azure.Security.KeyVault.Administration.netstandard2.0.cs @@ -2,7 +2,7 @@ namespace Azure.Security.KeyVault.Administration { public partial class BackupOperation : Azure.Operation { - public BackupOperation(string id, Azure.Security.KeyVault.Administration.KeyVaultBackupClient client) { } + public BackupOperation(Azure.Security.KeyVault.Administration.KeyVaultBackupClient client, string id) { } public System.DateTimeOffset? EndTime { get { throw null; } } public override bool HasCompleted { get { throw null; } } public override bool HasValue { get { throw null; } } @@ -84,7 +84,7 @@ public enum ServiceVersion } public partial class RestoreOperation : Azure.Operation { - public RestoreOperation(string id, Azure.Security.KeyVault.Administration.KeyVaultBackupClient client) { } + public RestoreOperation(Azure.Security.KeyVault.Administration.KeyVaultBackupClient client, string id) { } public System.DateTimeOffset? EndTime { get { throw null; } } public override bool HasCompleted { get { throw null; } } public override bool HasValue { get { throw null; } } From b0e600c8fc4e4d40ae95f25002bf9bea67bc9553 Mon Sep 17 00:00:00 2001 From: Christopher Scott Date: Wed, 16 Sep 2020 16:22:30 -0500 Subject: [PATCH 4/6] Update sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md Co-authored-by: Heath Stewart --- .../samples/Sample3_BackRestoreResume.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md index f2f5558bd56e8..38a08b2fd18a4 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md @@ -1,6 +1,6 @@ # Checking the status of a previously started full key backup and restore -This sample demonstrates how to a check the status and get the result of a previously started full key backup and restore in Azure Key Vault. +This sample demonstrates how to a check the status and get the result of previously started full key backup and restore operations in Azure Key Vault. To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions. ## Checking status of a full key backup From b4d9a9877c3d79be9b1dc11786d7cdb5c423c7a5 Mon Sep 17 00:00:00 2001 From: Christopher Scott Date: Wed, 16 Sep 2020 16:22:50 -0500 Subject: [PATCH 5/6] Update sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md Co-authored-by: Heath Stewart --- .../samples/Sample3_BackRestoreResume.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md index 38a08b2fd18a4..eea161255c092 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md @@ -3,7 +3,7 @@ This sample demonstrates how to a check the status and get the result of previously started full key backup and restore operations in Azure Key Vault. To get started, you'll need a URI to an Azure Key Vault. See the [README](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/keyvault/Azure.Security.KeyVault.Administration/README.md) for links and instructions. -## Checking status of a full key backup +## Checking status of a full key backup operation Using the `KeyVaultBackupClient` and a `BackupOperation`, you can check the status and retrieve the result of a previously started `BackupOperation`. For example the `Id` from a started operation on one client can be saved to persistent storage instead of waiting for completion immediately. From 8d409fb4a88f5156bc6aa7bb047aea1ae3b5ab07 Mon Sep 17 00:00:00 2001 From: Christopher Scott Date: Wed, 16 Sep 2020 16:28:07 -0500 Subject: [PATCH 6/6] Update sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md Co-authored-by: Heath Stewart --- .../samples/Sample3_BackRestoreResume.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md index eea161255c092..0874d7eeec492 100644 --- a/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/samples/Sample3_BackRestoreResume.md @@ -24,7 +24,7 @@ Response backupResult = await backupOperation.WaitForCompletionAsync(); Uri backupBlobUri = backupResult.Value; ``` -## Checking status of a full key restore +## Checking status of a full key restore operation Using the `KeyVaultBackupClient` and a `RestoreOperation`, you can check the status and retrieve the result of a previously started `RestoreOperation`. For example the `Id` from a started operation on one client can be saved to persistent storage instead of waiting for completion immediately.