KeyVaultBackupClient.StartPreBackupAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initiates a pre-backup check on the Key Vault. This operation checks if it is possible to back up the entire collection of keys from a Key Vault.
public virtual System.Threading.Tasks.Task<Azure.Security.KeyVault.Administration.KeyVaultBackupOperation> StartPreBackupAsync(Uri blobStorageUri, string sasToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartPreBackupAsync : Uri * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Security.KeyVault.Administration.KeyVaultBackupOperation>
override this.StartPreBackupAsync : Uri * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Security.KeyVault.Administration.KeyVaultBackupOperation>
Public Overridable Function StartPreBackupAsync (blobStorageUri As Uri, Optional sasToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of KeyVaultBackupOperation)
Parameters
- 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 KeyVaultBackupOperation representing the result of the asynchronous operation.
Exceptions
blobStorageUri or sasToken is null.
The server returned an error. See Message for details returned from the server.