IKeyVaultClientServiceContract.SetSecretAsync Method

Definition

Sets a secret in the specified vault.

[System.ServiceModel.OperationContract]
public System.Threading.Tasks.Task<Microsoft.Xrm.Tooling.PackageDeployment.CrmPackageExtentionBase.ServiceResult<string>> SetSecretAsync (string vaultBaseUrl, string secretName, string value, string correlationId, string operationId);
[<System.ServiceModel.OperationContract>]
abstract member SetSecretAsync : string * string * string * string * string -> System.Threading.Tasks.Task<Microsoft.Xrm.Tooling.PackageDeployment.CrmPackageExtentionBase.ServiceResult<string>>
Public Function SetSecretAsync (vaultBaseUrl As String, secretName As String, value As String, correlationId As String, operationId As String) As Task(Of ServiceResult(Of String))

Parameters

vaultBaseUrl
String

The URL for the vault containing the secrets. The format of this should be like: https://{yourkeyvault}.vault.azure.net

secretName
String

The name of the secret in the given vault.

value
String

The value of the secret.

correlationId
String

Input correlationId.

operationId
String

Input operationId

Returns

Attributes

Applies to