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