Freigeben über


KeyVaultBackupClient.StartPreRestoreAsync Method

Definition

Initiate a pre-restore check on a Key Vault. This operation checks if it is possible to restore the entire collection of keys from a Key Vault.

public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Administration.KeyVaultRestoreOperation> StartPreRestoreAsync(Uri folderUri, string sasToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartPreRestoreAsync : Uri * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Security.KeyVault.Administration.KeyVaultRestoreOperation>
override this.StartPreRestoreAsync : Uri * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Security.KeyVault.Administration.KeyVaultRestoreOperation>
Public Overridable Function StartPreRestoreAsync (folderUri As Uri, Optional sasToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of KeyVaultRestoreOperation)

Parameters

folderUri
Uri

The Uri for the blob storage resource, including the path to the blob container where the backup resides. This would be the exact value that is returned as the result of a KeyVaultBackupOperation. An example folderUri may look like the following: https://contoso.blob.core.windows.net/backup/mhsm-contoso-2020090117323313.

sasToken
String

Optional Shared Access Signature (SAS) token to authorize access to the blob. If null, Managed Identity will be used to authenticate instead.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

A KeyVaultRestoreOperation representing the result of the asynchronous operation.

Exceptions

folderUri or sasToken are null.

The server returned an error. See Message for details returned from the server.

Applies to