Freigeben über


KeyVaultBackupClient.StartPreBackup(Uri, String, CancellationToken) Method

Definition

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 Azure.Security.KeyVault.Administration.KeyVaultBackupOperation StartPreBackup(Uri blobStorageUri, string sasToken = default, System.Threading.CancellationToken cancellationToken = default);
abstract member StartPreBackup : Uri * string * System.Threading.CancellationToken -> Azure.Security.KeyVault.Administration.KeyVaultBackupOperation
override this.StartPreBackup : Uri * string * System.Threading.CancellationToken -> Azure.Security.KeyVault.Administration.KeyVaultBackupOperation
Public Overridable Function StartPreBackup (blobStorageUri As Uri, Optional sasToken As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As KeyVaultBackupOperation

Parameters

blobStorageUri
Uri

The Uri for the blob storage resource.

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 operation.

Exceptions

blobStorageUri or sasToken is null.

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

Applies to