IServerAdministratorOperations.CreateOrUpdateAsync 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.
Creates a new Azure SQL Server Active Directory Administrator or updates an existing Azure SQL Server Active Directory Administrator.
public System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerAdministratorCreateOrUpdateResponse> CreateOrUpdateAsync (string resourceGroupName, string serverName, string administratorName, Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerAdministratorCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member CreateOrUpdateAsync : string * string * string * Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerAdministratorCreateOrUpdateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.ServerAdministratorCreateOrUpdateResponse>
Public Function CreateOrUpdateAsync (resourceGroupName As String, serverName As String, administratorName As String, parameters As ServerAdministratorCreateOrUpdateParameters, cancellationToken As CancellationToken) As Task(Of ServerAdministratorCreateOrUpdateResponse)
Parameters
- resourceGroupName
- String
The name of the Resource Group to which the server belongs.
- serverName
- String
The name of the Azure SQL Server on which the Azure SQL Server Active Directory Administrator is hosted.
- administratorName
- String
The name of the Azure SQL Server Active Directory Administrator to be operated on (Updated or created).
- parameters
- ServerAdministratorCreateOrUpdateParameters
The required parameters for creating or updating a Server Administrator.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
Response for long running Azure SQL Server Active Directory Administrator operations.