共用方式為


ArmSqlModelFactory.ManagedInstanceData Method

Definition

Initializes a new instance of ManagedInstanceData.

public static Azure.ResourceManager.Sql.ManagedInstanceData ManagedInstanceData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, Azure.ResourceManager.Sql.Models.SqlSku sku = default, Azure.ResourceManager.Sql.Models.ManagedInstancePropertiesProvisioningState? provisioningState = default, Azure.ResourceManager.Sql.Models.ManagedServerCreateMode? managedInstanceCreateMode = default, string fullyQualifiedDomainName = default, bool? isGeneralPurposeV2 = default, string administratorLogin = default, string administratorLoginPassword = default, Azure.Core.ResourceIdentifier subnetId = default, string state = default, Azure.ResourceManager.Sql.Models.ManagedInstanceLicenseType? licenseType = default, Azure.ResourceManager.Sql.Models.HybridSecondaryUsage? hybridSecondaryUsage = default, Azure.ResourceManager.Sql.Models.HybridSecondaryUsageDetected? hybridSecondaryUsageDetected = default, int? vCores = default, int? storageSizeInGB = default, int? storageIOps = default, int? storageThroughputMBps = default, int? totalMemoryInMB = default, string collation = default, string dnsZone = default, Azure.Core.ResourceIdentifier managedDnsZonePartner = default, bool? isPublicDataEndpointEnabled = default, Azure.Core.ResourceIdentifier sourceManagedInstanceId = default, DateTimeOffset? restorePointInTime = default, Azure.ResourceManager.Sql.Models.ManagedInstanceProxyOverride? proxyOverride = default, string timezoneId = default, Azure.Core.ResourceIdentifier instancePoolId = default, Azure.Core.ResourceIdentifier maintenanceConfigurationId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.Models.ManagedInstancePecProperty> privateEndpointConnections = default, string minimalTlsVersion = default, Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? currentBackupStorageRedundancy = default, Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy? requestedBackupStorageRedundancy = default, bool? isZoneRedundant = default, Azure.Core.ResourceIdentifier primaryUserAssignedIdentityId = default, Uri keyId = default, Azure.ResourceManager.Sql.Models.ManagedInstanceExternalAdministrator administrators = default, Azure.ResourceManager.Sql.Models.SqlServicePrincipal servicePrincipal = default, Azure.Core.ResourceIdentifier virtualClusterId = default, Azure.ResourceManager.Sql.Models.ExternalGovernanceStatus? externalGovernanceStatus = default, Azure.ResourceManager.Sql.Models.SqlManagedInstancePricingModel? pricingModel = default, DateTimeOffset? createOn = default, Azure.ResourceManager.Sql.Models.AuthMetadataLookupMode? authenticationMetadata = default, Azure.ResourceManager.Sql.Models.ManagedInstanceDatabaseFormat? databaseFormat = default);
static member ManagedInstanceData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.Models.ManagedServiceIdentity * Azure.ResourceManager.Sql.Models.SqlSku * Nullable<Azure.ResourceManager.Sql.Models.ManagedInstancePropertiesProvisioningState> * Nullable<Azure.ResourceManager.Sql.Models.ManagedServerCreateMode> * string * Nullable<bool> * string * string * Azure.Core.ResourceIdentifier * string * Nullable<Azure.ResourceManager.Sql.Models.ManagedInstanceLicenseType> * Nullable<Azure.ResourceManager.Sql.Models.HybridSecondaryUsage> * Nullable<Azure.ResourceManager.Sql.Models.HybridSecondaryUsageDetected> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * string * string * Azure.Core.ResourceIdentifier * Nullable<bool> * Azure.Core.ResourceIdentifier * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Sql.Models.ManagedInstanceProxyOverride> * string * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.Sql.Models.ManagedInstancePecProperty> * string * Nullable<Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy> * Nullable<Azure.ResourceManager.Sql.Models.SqlBackupStorageRedundancy> * Nullable<bool> * Azure.Core.ResourceIdentifier * Uri * Azure.ResourceManager.Sql.Models.ManagedInstanceExternalAdministrator * Azure.ResourceManager.Sql.Models.SqlServicePrincipal * Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.Sql.Models.ExternalGovernanceStatus> * Nullable<Azure.ResourceManager.Sql.Models.SqlManagedInstancePricingModel> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Sql.Models.AuthMetadataLookupMode> * Nullable<Azure.ResourceManager.Sql.Models.ManagedInstanceDatabaseFormat> -> Azure.ResourceManager.Sql.ManagedInstanceData
Public Shared Function ManagedInstanceData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional sku As SqlSku = Nothing, Optional provisioningState As Nullable(Of ManagedInstancePropertiesProvisioningState) = Nothing, Optional managedInstanceCreateMode As Nullable(Of ManagedServerCreateMode) = Nothing, Optional fullyQualifiedDomainName As String = Nothing, Optional isGeneralPurposeV2 As Nullable(Of Boolean) = Nothing, Optional administratorLogin As String = Nothing, Optional administratorLoginPassword As String = Nothing, Optional subnetId As ResourceIdentifier = Nothing, Optional state As String = Nothing, Optional licenseType As Nullable(Of ManagedInstanceLicenseType) = Nothing, Optional hybridSecondaryUsage As Nullable(Of HybridSecondaryUsage) = Nothing, Optional hybridSecondaryUsageDetected As Nullable(Of HybridSecondaryUsageDetected) = Nothing, Optional vCores As Nullable(Of Integer) = Nothing, Optional storageSizeInGB As Nullable(Of Integer) = Nothing, Optional storageIOps As Nullable(Of Integer) = Nothing, Optional storageThroughputMBps As Nullable(Of Integer) = Nothing, Optional totalMemoryInMB As Nullable(Of Integer) = Nothing, Optional collation As String = Nothing, Optional dnsZone As String = Nothing, Optional managedDnsZonePartner As ResourceIdentifier = Nothing, Optional isPublicDataEndpointEnabled As Nullable(Of Boolean) = Nothing, Optional sourceManagedInstanceId As ResourceIdentifier = Nothing, Optional restorePointInTime As Nullable(Of DateTimeOffset) = Nothing, Optional proxyOverride As Nullable(Of ManagedInstanceProxyOverride) = Nothing, Optional timezoneId As String = Nothing, Optional instancePoolId As ResourceIdentifier = Nothing, Optional maintenanceConfigurationId As ResourceIdentifier = Nothing, Optional privateEndpointConnections As IEnumerable(Of ManagedInstancePecProperty) = Nothing, Optional minimalTlsVersion As String = Nothing, Optional currentBackupStorageRedundancy As Nullable(Of SqlBackupStorageRedundancy) = Nothing, Optional requestedBackupStorageRedundancy As Nullable(Of SqlBackupStorageRedundancy) = Nothing, Optional isZoneRedundant As Nullable(Of Boolean) = Nothing, Optional primaryUserAssignedIdentityId As ResourceIdentifier = Nothing, Optional keyId As Uri = Nothing, Optional administrators As ManagedInstanceExternalAdministrator = Nothing, Optional servicePrincipal As SqlServicePrincipal = Nothing, Optional virtualClusterId As ResourceIdentifier = Nothing, Optional externalGovernanceStatus As Nullable(Of ExternalGovernanceStatus) = Nothing, Optional pricingModel As Nullable(Of SqlManagedInstancePricingModel) = Nothing, Optional createOn As Nullable(Of DateTimeOffset) = Nothing, Optional authenticationMetadata As Nullable(Of AuthMetadataLookupMode) = Nothing, Optional databaseFormat As Nullable(Of ManagedInstanceDatabaseFormat) = Nothing) As ManagedInstanceData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

identity
ManagedServiceIdentity

The Azure Active Directory identity of the managed instance.

sku
SqlSku

Managed instance SKU. Allowed values for sku.name: GP_Gen5, GP_G8IM, GP_G8IH, BC_Gen5, BC_G8IM, BC_G8IH.

provisioningState
Nullable<ManagedInstancePropertiesProvisioningState>

Provisioning state of managed instance.

managedInstanceCreateMode
Nullable<ManagedServerCreateMode>

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.

fullyQualifiedDomainName
String

The fully qualified domain name of the managed instance.

isGeneralPurposeV2
Nullable<Boolean>

Whether or not this is a GPv2 variant of General Purpose edition.

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
ResourceIdentifier

Subnet resource ID for the managed instance.

state
String

The state of the managed instance.

licenseType
Nullable<ManagedInstanceLicenseType>

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).

hybridSecondaryUsage
Nullable<HybridSecondaryUsage>

Hybrid secondary usage. Possible values are 'Active' (default value) and 'Passive' (customer uses the secondary as Passive DR).

hybridSecondaryUsageDetected
Nullable<HybridSecondaryUsageDetected>

Hybrid secondary usage detected. Possible values are 'Active' (customer does not meet the requirements to use the secondary as Passive DR) and 'Passive' (customer meets the requirements to use the secondary as Passive DR).

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: 16384. Increments of 32 GB allowed only. Maximum value depends on the selected hardware family and number of vCores.

storageIOps
Nullable<Int32>

Storage IOps. Minimum value: 300. Maximum value: 80000. Increments of 1 IOps allowed only. Maximum value depends on the selected hardware family and number of vCores.

storageThroughputMBps
Nullable<Int32>

Storage throughput MBps parameter is not supported in the instance create/update operation.

totalMemoryInMB
Nullable<Int32>

Total memory in MB. Minimum value: 7168. Maximum value: 891328. Increments of 1 MB allowed only. Maximum value depends on the selected hardware family and number of vCores.

collation
String

Collation of the managed instance.

dnsZone
String

The Dns Zone that the managed instance is in.

managedDnsZonePartner
ResourceIdentifier

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

isPublicDataEndpointEnabled
Nullable<Boolean>

Whether or not the public data endpoint is enabled.

sourceManagedInstanceId
ResourceIdentifier

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

restorePointInTime
Nullable<DateTimeOffset>

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

proxyOverride
Nullable<ManagedInstanceProxyOverride>

Connection type used for connecting to the instance.

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
ResourceIdentifier

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

maintenanceConfigurationId
ResourceIdentifier

Specifies maintenance configuration id to apply to this managed instance.

privateEndpointConnections
IEnumerable<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
Nullable<SqlBackupStorageRedundancy>

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

requestedBackupStorageRedundancy
Nullable<SqlBackupStorageRedundancy>

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).

isZoneRedundant
Nullable<Boolean>

Whether or not the multi-az is enabled.

primaryUserAssignedIdentityId
ResourceIdentifier

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

keyId
Uri

A CMK URI of the key to use for encryption.

administrators
ManagedInstanceExternalAdministrator

The Azure Active Directory administrator of the instance. This can only be used at instance create time. If used for instance update, it will be ignored or it will result in an error. For updates individual APIs will need to be used.

servicePrincipal
SqlServicePrincipal

The managed instance's service principal.

virtualClusterId
ResourceIdentifier

Virtual cluster resource id for the Managed Instance.

externalGovernanceStatus
Nullable<ExternalGovernanceStatus>

Status of external governance.

pricingModel
Nullable<SqlManagedInstancePricingModel>

Pricing model of Managed Instance.

createOn
Nullable<DateTimeOffset>

Specifies the point in time (ISO8601 format) of the Managed Instance creation.

authenticationMetadata
Nullable<AuthMetadataLookupMode>

The managed instance's authentication metadata lookup mode.

databaseFormat
Nullable<ManagedInstanceDatabaseFormat>

Specifies the internal format of instance databases specific to the SQL engine version.

Returns

A new ManagedInstanceData instance for mocking.

Applies to