IServerKeyOperations.CreateOrUpdateAsync Method

Definition

Creates a new Azure SQL Server Key or updates an existing Azure SQL Server Key.

public System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerKeyCreateOrUpdateResponse> CreateOrUpdateAsync (string resourceGroupName, string serverName, string keyName, Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerKeyCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member CreateOrUpdateAsync : string * string * string * Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerKeyCreateOrUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerKeyCreateOrUpdateResponse>
Public Function CreateOrUpdateAsync (resourceGroupName As String, serverName As String, keyName As String, parameters As ServerKeyCreateOrUpdateParameters, cancellationToken As CancellationToken) As Task(Of ServerKeyCreateOrUpdateResponse)

Parameters

resourceGroupName
String

The name of the Resource Group to which the server belongs.

serverName
String

The name of the Azure SQL Server to which to add the Server Key.

keyName
String

The name of the Azure SQL Server Key.

parameters
ServerKeyCreateOrUpdateParameters

The required parameters for createing or updating a Server Key.

cancellationToken
CancellationToken

Cancellation token.

Returns

Represents the response to a Azure Sql Server Key operation request.

Applies to