Share via


ManagedInstance Constructors

Definition

Overloads

ManagedInstance()

Initializes a new instance of the ManagedInstance class.

ManagedInstance(String, String, String, String, IDictionary<String, String>, ResourceIdentity, Sku, String, String, String, String, String, String, String, String, Nullable<Int32>, Nullable<Int32>, String, String, String, Nullable<Boolean>, String, Nullable<DateTime>, String, String, String, String, IList<ManagedInstancePecProperty>, String, String, String, Nullable<Boolean>, String, String, ManagedInstanceExternalAdministrator, ServicePrincipal)

Initializes a new instance of the ManagedInstance class.

ManagedInstance()

Initializes a new instance of the ManagedInstance class.

public ManagedInstance ();
Public Sub New ()

Applies to

ManagedInstance(String, String, String, String, IDictionary<String, String>, ResourceIdentity, Sku, String, String, String, String, String, String, String, String, Nullable<Int32>, Nullable<Int32>, String, String, String, Nullable<Boolean>, String, Nullable<DateTime>, String, String, String, String, IList<ManagedInstancePecProperty>, String, String, String, Nullable<Boolean>, String, String, ManagedInstanceExternalAdministrator, ServicePrincipal)

Initializes a new instance of the ManagedInstance class.

public ManagedInstance (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Sql.Models.ResourceIdentity identity = default, Microsoft.Azure.Management.Sql.Models.Sku sku = default, string provisioningState = default, string managedInstanceCreateMode = default, string fullyQualifiedDomainName = default, string administratorLogin = default, string administratorLoginPassword = default, string subnetId = default, string state = default, string licenseType = default, int? vCores = default, int? storageSizeInGB = default, string collation = default, string dnsZone = default, string dnsZonePartner = default, bool? publicDataEndpointEnabled = default, string sourceManagedInstanceId = default, DateTime? restorePointInTime = default, string proxyOverride = default, string timezoneId = default, string instancePoolId = default, string maintenanceConfigurationId = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Models.ManagedInstancePecProperty> privateEndpointConnections = default, string minimalTlsVersion = default, string currentBackupStorageRedundancy = default, string requestedBackupStorageRedundancy = default, bool? zoneRedundant = default, string primaryUserAssignedIdentityId = default, string keyId = default, Microsoft.Azure.Management.Sql.Models.ManagedInstanceExternalAdministrator administrators = default, Microsoft.Azure.Management.Sql.Models.ServicePrincipal servicePrincipal = default);
new Microsoft.Azure.Management.Sql.Models.ManagedInstance : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Sql.Models.ResourceIdentity * Microsoft.Azure.Management.Sql.Models.Sku * string * string * string * string * string * string * string * string * Nullable<int> * Nullable<int> * string * string * string * Nullable<bool> * string * Nullable<DateTime> * string * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Sql.Models.ManagedInstancePecProperty> * string * string * string * Nullable<bool> * string * string * Microsoft.Azure.Management.Sql.Models.ManagedInstanceExternalAdministrator * Microsoft.Azure.Management.Sql.Models.ServicePrincipal -> Microsoft.Azure.Management.Sql.Models.ManagedInstance
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional identity As ResourceIdentity = Nothing, Optional sku As Sku = Nothing, Optional provisioningState As String = Nothing, Optional managedInstanceCreateMode As String = Nothing, Optional fullyQualifiedDomainName As String = Nothing, Optional administratorLogin As String = Nothing, Optional administratorLoginPassword As String = Nothing, Optional subnetId As String = Nothing, Optional state As String = Nothing, Optional licenseType As String = Nothing, Optional vCores As Nullable(Of Integer) = Nothing, Optional storageSizeInGB As Nullable(Of Integer) = Nothing, Optional collation As String = Nothing, Optional dnsZone As String = Nothing, Optional dnsZonePartner As String = Nothing, Optional publicDataEndpointEnabled As Nullable(Of Boolean) = Nothing, Optional sourceManagedInstanceId As String = Nothing, Optional restorePointInTime As Nullable(Of DateTime) = Nothing, Optional proxyOverride As String = Nothing, Optional timezoneId As String = Nothing, Optional instancePoolId As String = Nothing, Optional maintenanceConfigurationId As String = Nothing, Optional privateEndpointConnections As IList(Of ManagedInstancePecProperty) = Nothing, Optional minimalTlsVersion As String = Nothing, Optional currentBackupStorageRedundancy As String = Nothing, Optional requestedBackupStorageRedundancy As String = Nothing, Optional zoneRedundant As Nullable(Of Boolean) = Nothing, Optional primaryUserAssignedIdentityId As String = Nothing, Optional keyId As String = Nothing, Optional administrators As ManagedInstanceExternalAdministrator = Nothing, Optional servicePrincipal As ServicePrincipal = Nothing)

Parameters

location
String

Resource location.

id
String

Resource ID.

name
String

Resource name.

type
String

Resource type.

tags
IDictionary<String,String>

Resource tags.

identity
ResourceIdentity

The Azure Active Directory identity of the managed instance.

sku
Sku

Managed instance SKU. Allowed values for sku.name: GP_Gen4, GP_Gen5, BC_Gen4, BC_Gen5

provisioningState
String

Possible values include: 'Creating', 'Deleting', 'Updating', 'Unknown', 'Succeeded', 'Failed', 'Accepted', 'Created', 'Deleted', 'Unrecognized', 'Running', 'Canceled', 'NotSpecified', 'Registering', 'TimedOut'

managedInstanceCreateMode
String

Specifies the mode of database creation.

         Default: Regular instance creation.

         Restore: Creates an instance by restoring a set of backups to
         specific point in time. RestorePointInTime and
         SourceManagedInstanceId must be specified. Possible values include:
         'Default', 'PointInTimeRestore'
fullyQualifiedDomainName
String

The fully qualified domain name of the managed instance.

administratorLogin
String

Administrator username for the managed instance. Can only be specified when the managed instance is being created (and is required for creation).

administratorLoginPassword
String

The administrator login password (required for managed instance creation).

subnetId
String

Subnet resource ID for the managed instance.

state
String

The state of the managed instance.

licenseType
String

The license type. Possible values are 'LicenseIncluded' (regular price inclusive of a new SQL license) and 'BasePrice' (discounted AHB price for bringing your own SQL licenses). Possible values include: 'LicenseIncluded', 'BasePrice'

vCores
Nullable<Int32>

The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80.

storageSizeInGB
Nullable<Int32>

Storage size in GB. Minimum value: 32. Maximum value: 8192. Increments of 32 GB allowed only.

collation
String

Collation of the managed instance.

dnsZone
String

The Dns Zone that the managed instance is in.

dnsZonePartner
String

The resource id of another managed instance whose DNS zone this managed instance will share after creation.

publicDataEndpointEnabled
Nullable<Boolean>

Whether or not the public data endpoint is enabled.

sourceManagedInstanceId
String

The resource identifier of the source managed instance associated with create operation of this instance.

restorePointInTime
Nullable<DateTime>

Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database.

proxyOverride
String

Connection type used for connecting to the instance. Possible values include: 'Proxy', 'Redirect', 'Default'

timezoneId
String

Id of the timezone. Allowed values are timezones supported by Windows. Windows keeps details on supported timezones, including the id, in registry under KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones. You can get those registry values via SQL Server by querying SELECT name AS timezone_id FROM sys.time_zone_info. List of Ids can also be obtained by executing [System.TimeZoneInfo]::GetSystemTimeZones() in PowerShell. An example of valid timezone id is "Pacific Standard Time" or "W. Europe Standard Time".

instancePoolId
String

The Id of the instance pool this managed server belongs to.

maintenanceConfigurationId
String

Specifies maintenance configuration id to apply to this managed instance.

privateEndpointConnections
IList<ManagedInstancePecProperty>

List of private endpoint connections on a managed instance.

minimalTlsVersion
String

Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2'

currentBackupStorageRedundancy
String

The storage account type used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage). Possible values include: 'Geo', 'Local', 'Zone', 'GeoZone'

requestedBackupStorageRedundancy
String

The storage account type to be used to store backups for this instance. The options are Local (LocallyRedundantStorage), Zone (ZoneRedundantStorage), Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage). Possible values include: 'Geo', 'Local', 'Zone', 'GeoZone'

zoneRedundant
Nullable<Boolean>

Whether or not the multi-az is enabled.

primaryUserAssignedIdentityId
String

The resource id of a user assigned identity to be used by default.

keyId
String

A CMK URI of the key to use for encryption.

administrators
ManagedInstanceExternalAdministrator

The Azure Active Directory administrator of the server.

servicePrincipal
ServicePrincipal

The managed instance's service principal.

Applies to