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