DatabaseBackupOperationsExtensions.CreateOrUpdateDatabaseBackupLongTermRetentionPolicyAsync Method

Definition

Creates or updates an Azure SQL Database backup LongTermRetention policy.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicyCreateOrUpdateResponse> CreateOrUpdateDatabaseBackupLongTermRetentionPolicyAsync (this Microsoft.Azure.Management.Sql.LegacySdk.IDatabaseBackupOperations operations, string resourceGroupName, string serverName, string databaseName, string backupLongTermRetentionPolicyName, Microsoft.Azure.Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicyCreateOrUpdateParameters parameters);
static member CreateOrUpdateDatabaseBackupLongTermRetentionPolicyAsync : Microsoft.Azure.Management.Sql.LegacySdk.IDatabaseBackupOperations * string * string * string * string * Microsoft.Azure.Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicyCreateOrUpdateParameters -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Sql.LegacySdk.Models.DatabaseBackupLongTermRetentionPolicyCreateOrUpdateResponse>
<Extension()>
Public Function CreateOrUpdateDatabaseBackupLongTermRetentionPolicyAsync (operations As IDatabaseBackupOperations, resourceGroupName As String, serverName As String, databaseName As String, backupLongTermRetentionPolicyName As String, parameters As DatabaseBackupLongTermRetentionPolicyCreateOrUpdateParameters) As Task(Of DatabaseBackupLongTermRetentionPolicyCreateOrUpdateResponse)

Parameters

operations
IDatabaseBackupOperations

Reference to the Microsoft.Azure.Management.Sql.LegacySdk.IDatabaseBackupOperations.

resourceGroupName
String

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

serverName
String

Required. The name of the Azure SQL Server on which the database is hosted.

databaseName
String

Required. The name of the Azure SQL Database to be operated on (Updated or created).

backupLongTermRetentionPolicyName
String

Required. The name of the Azure SQL Database backup LongTermRetention policy.

parameters
DatabaseBackupLongTermRetentionPolicyCreateOrUpdateParameters

Required. The required parameters for creating or updating a database backup LongTermRetention policy.

Returns

Response for long running Azure operations.

Applies to