Partager via


AzureSqlDatabaseAdapter Class

Definition

Adapter for database operations

public class AzureSqlDatabaseAdapter
type AzureSqlDatabaseAdapter = class
Public Class AzureSqlDatabaseAdapter
Inheritance
AzureSqlDatabaseAdapter

Constructors

AzureSqlDatabaseAdapter(IAzureContext)

Constructs a database adapter

Properties

Context

Gets or sets the Azure profile

Methods

CreateDatabaseModelFromResponse(String, String, Database)

Converts the response from the service to a powershell database object

CreateDatabaseModelFromResponse(String, String, Database)

Converts the response from the service to a powershell database object

CreateExpandedDatabaseModelFromResponse(String, String, Database)

Converts the response from the service to a powershell database object

FailoverDatabase(String, String, String, String)

Failovers a database

GetDatabaseSkuName(String, Boolean)

Get database sku name based on edition Edition | SkuName GeneralPurpose | GP BusinessCritical | BC Hyperscale | HS Standard | Standard Basic | Basic Premium | Premium

Also adds _S in the end of SkuName in case if it is Serverless

GetDatabaseSkuName(String)
GetDtuDatabaseSku(String, String)

Gets the Sku for the Dtu database.

GetServerLocation(String, String)

Gets the Location of the server.

RemoveDatabase(String, String, String)

Deletes a database

RenameDatabase(String, String, String, String)

Applies to