We recommend using Azure Native.
azure.mssql.ManagedInstance
Explore with Pulumi AI
Manages a Microsoft SQL Azure Managed Instance.
Note: All arguments including the administrator login and password will be stored in the raw state as plain-text. Read more about sensitive data in state.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
example:
type: azure:core:ResourceGroup
properties:
name: database-rg
location: West Europe
exampleNetworkSecurityGroup:
type: azure:network:NetworkSecurityGroup
name: example
properties:
name: mi-security-group
location: ${example.location}
resourceGroupName: ${example.name}
allowManagementInbound:
type: azure:network:NetworkSecurityRule
name: allow_management_inbound
properties:
name: allow_management_inbound
priority: 106
direction: Inbound
access: Allow
protocol: Tcp
sourcePortRange: '*'
destinationPortRanges:
- '9000'
- '9003'
- '1438'
- '1440'
- '1452'
sourceAddressPrefix: '*'
destinationAddressPrefix: '*'
resourceGroupName: ${example.name}
networkSecurityGroupName: ${exampleNetworkSecurityGroup.name}
allowMisubnetInbound:
type: azure:network:NetworkSecurityRule
name: allow_misubnet_inbound
properties:
name: allow_misubnet_inbound
priority: 200
direction: Inbound
access: Allow
protocol: '*'
sourcePortRange: '*'
destinationPortRange: '*'
sourceAddressPrefix: 10.0.0.0/24
destinationAddressPrefix: '*'
resourceGroupName: ${example.name}
networkSecurityGroupName: ${exampleNetworkSecurityGroup.name}
allowHealthProbeInbound:
type: azure:network:NetworkSecurityRule
name: allow_health_probe_inbound
properties:
name: allow_health_probe_inbound
priority: 300
direction: Inbound
access: Allow
protocol: '*'
sourcePortRange: '*'
destinationPortRange: '*'
sourceAddressPrefix: AzureLoadBalancer
destinationAddressPrefix: '*'
resourceGroupName: ${example.name}
networkSecurityGroupName: ${exampleNetworkSecurityGroup.name}
allowTdsInbound:
type: azure:network:NetworkSecurityRule
name: allow_tds_inbound
properties:
name: allow_tds_inbound
priority: 1000
direction: Inbound
access: Allow
protocol: Tcp
sourcePortRange: '*'
destinationPortRange: '1433'
sourceAddressPrefix: VirtualNetwork
destinationAddressPrefix: '*'
resourceGroupName: ${example.name}
networkSecurityGroupName: ${exampleNetworkSecurityGroup.name}
denyAllInbound:
type: azure:network:NetworkSecurityRule
name: deny_all_inbound
properties:
name: deny_all_inbound
priority: 4096
direction: Inbound
access: Deny
protocol: '*'
sourcePortRange: '*'
destinationPortRange: '*'
sourceAddressPrefix: '*'
destinationAddressPrefix: '*'
resourceGroupName: ${example.name}
networkSecurityGroupName: ${exampleNetworkSecurityGroup.name}
allowManagementOutbound:
type: azure:network:NetworkSecurityRule
name: allow_management_outbound
properties:
name: allow_management_outbound
priority: 102
direction: Outbound
access: Allow
protocol: Tcp
sourcePortRange: '*'
destinationPortRanges:
- '80'
- '443'
- '12000'
sourceAddressPrefix: '*'
destinationAddressPrefix: '*'
resourceGroupName: ${example.name}
networkSecurityGroupName: ${exampleNetworkSecurityGroup.name}
allowMisubnetOutbound:
type: azure:network:NetworkSecurityRule
name: allow_misubnet_outbound
properties:
name: allow_misubnet_outbound
priority: 200
direction: Outbound
access: Allow
protocol: '*'
sourcePortRange: '*'
destinationPortRange: '*'
sourceAddressPrefix: 10.0.0.0/24
destinationAddressPrefix: '*'
resourceGroupName: ${example.name}
networkSecurityGroupName: ${exampleNetworkSecurityGroup.name}
denyAllOutbound:
type: azure:network:NetworkSecurityRule
name: deny_all_outbound
properties:
name: deny_all_outbound
priority: 4096
direction: Outbound
access: Deny
protocol: '*'
sourcePortRange: '*'
destinationPortRange: '*'
sourceAddressPrefix: '*'
destinationAddressPrefix: '*'
resourceGroupName: ${example.name}
networkSecurityGroupName: ${exampleNetworkSecurityGroup.name}
exampleVirtualNetwork:
type: azure:network:VirtualNetwork
name: example
properties:
name: vnet-mi
resourceGroupName: ${example.name}
addressSpaces:
- 10.0.0.0/16
location: ${example.location}
exampleSubnet:
type: azure:network:Subnet
name: example
properties:
name: subnet-mi
resourceGroupName: ${example.name}
virtualNetworkName: ${exampleVirtualNetwork.name}
addressPrefixes:
- 10.0.0.0/24
delegations:
- name: managedinstancedelegation
serviceDelegation:
name: Microsoft.Sql/managedInstances
actions:
- Microsoft.Network/virtualNetworks/subnets/join/action
- Microsoft.Network/virtualNetworks/subnets/prepareNetworkPolicies/action
- Microsoft.Network/virtualNetworks/subnets/unprepareNetworkPolicies/action
exampleSubnetNetworkSecurityGroupAssociation:
type: azure:network:SubnetNetworkSecurityGroupAssociation
name: example
properties:
subnetId: ${exampleSubnet.id}
networkSecurityGroupId: ${exampleNetworkSecurityGroup.id}
exampleRouteTable:
type: azure:network:RouteTable
name: example
properties:
name: routetable-mi
location: ${example.location}
resourceGroupName: ${example.name}
disableBgpRoutePropagation: false
options:
dependson:
- ${exampleSubnet}
exampleSubnetRouteTableAssociation:
type: azure:network:SubnetRouteTableAssociation
name: example
properties:
subnetId: ${exampleSubnet.id}
routeTableId: ${exampleRouteTable.id}
exampleManagedInstance:
type: azure:mssql:ManagedInstance
name: example
properties:
name: managedsqlinstance
resourceGroupName: ${example.name}
location: ${example.location}
licenseType: BasePrice
skuName: GP_Gen5
storageSizeInGb: 32
subnetId: ${exampleSubnet.id}
vcores: 4
administratorLogin: mradministrator
administratorLoginPassword: thisIsDog11
options:
dependson:
- ${exampleSubnetNetworkSecurityGroupAssociation}
- ${exampleSubnetRouteTableAssociation}
Create ManagedInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagedInstance(name: string, args: ManagedInstanceArgs, opts?: CustomResourceOptions);
@overload
def ManagedInstance(resource_name: str,
args: ManagedInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagedInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
administrator_login: Optional[str] = None,
administrator_login_password: Optional[str] = None,
vcores: Optional[int] = None,
subnet_id: Optional[str] = None,
storage_size_in_gb: Optional[int] = None,
license_type: Optional[str] = None,
sku_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
proxy_override: Optional[str] = None,
storage_account_type: Optional[str] = None,
minimum_tls_version: Optional[str] = None,
public_data_endpoint_enabled: Optional[bool] = None,
maintenance_configuration_name: Optional[str] = None,
service_principal_type: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
identity: Optional[ManagedInstanceIdentityArgs] = None,
dns_zone_partner_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timezone_id: Optional[str] = None,
collation: Optional[str] = None,
zone_redundant_enabled: Optional[bool] = None)
func NewManagedInstance(ctx *Context, name string, args ManagedInstanceArgs, opts ...ResourceOption) (*ManagedInstance, error)
public ManagedInstance(string name, ManagedInstanceArgs args, CustomResourceOptions? opts = null)
public ManagedInstance(String name, ManagedInstanceArgs args)
public ManagedInstance(String name, ManagedInstanceArgs args, CustomResourceOptions options)
type: azure:mssql:ManagedInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ManagedInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ManagedInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ManagedInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagedInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagedInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var managedInstanceResource = new Azure.MSSql.ManagedInstance("managedInstanceResource", new()
{
AdministratorLogin = "string",
AdministratorLoginPassword = "string",
Vcores = 0,
SubnetId = "string",
StorageSizeInGb = 0,
LicenseType = "string",
SkuName = "string",
ResourceGroupName = "string",
ProxyOverride = "string",
StorageAccountType = "string",
MinimumTlsVersion = "string",
PublicDataEndpointEnabled = false,
MaintenanceConfigurationName = "string",
ServicePrincipalType = "string",
Location = "string",
Name = "string",
Identity = new Azure.MSSql.Inputs.ManagedInstanceIdentityArgs
{
Type = "string",
IdentityIds = new[]
{
"string",
},
PrincipalId = "string",
TenantId = "string",
},
DnsZonePartnerId = "string",
Tags =
{
{ "string", "string" },
},
TimezoneId = "string",
Collation = "string",
ZoneRedundantEnabled = false,
});
example, err := mssql.NewManagedInstance(ctx, "managedInstanceResource", &mssql.ManagedInstanceArgs{
AdministratorLogin: pulumi.String("string"),
AdministratorLoginPassword: pulumi.String("string"),
Vcores: pulumi.Int(0),
SubnetId: pulumi.String("string"),
StorageSizeInGb: pulumi.Int(0),
LicenseType: pulumi.String("string"),
SkuName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ProxyOverride: pulumi.String("string"),
StorageAccountType: pulumi.String("string"),
MinimumTlsVersion: pulumi.String("string"),
PublicDataEndpointEnabled: pulumi.Bool(false),
MaintenanceConfigurationName: pulumi.String("string"),
ServicePrincipalType: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Identity: &mssql.ManagedInstanceIdentityArgs{
Type: pulumi.String("string"),
IdentityIds: pulumi.StringArray{
pulumi.String("string"),
},
PrincipalId: pulumi.String("string"),
TenantId: pulumi.String("string"),
},
DnsZonePartnerId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
TimezoneId: pulumi.String("string"),
Collation: pulumi.String("string"),
ZoneRedundantEnabled: pulumi.Bool(false),
})
var managedInstanceResource = new ManagedInstance("managedInstanceResource", ManagedInstanceArgs.builder()
.administratorLogin("string")
.administratorLoginPassword("string")
.vcores(0)
.subnetId("string")
.storageSizeInGb(0)
.licenseType("string")
.skuName("string")
.resourceGroupName("string")
.proxyOverride("string")
.storageAccountType("string")
.minimumTlsVersion("string")
.publicDataEndpointEnabled(false)
.maintenanceConfigurationName("string")
.servicePrincipalType("string")
.location("string")
.name("string")
.identity(ManagedInstanceIdentityArgs.builder()
.type("string")
.identityIds("string")
.principalId("string")
.tenantId("string")
.build())
.dnsZonePartnerId("string")
.tags(Map.of("string", "string"))
.timezoneId("string")
.collation("string")
.zoneRedundantEnabled(false)
.build());
managed_instance_resource = azure.mssql.ManagedInstance("managedInstanceResource",
administrator_login="string",
administrator_login_password="string",
vcores=0,
subnet_id="string",
storage_size_in_gb=0,
license_type="string",
sku_name="string",
resource_group_name="string",
proxy_override="string",
storage_account_type="string",
minimum_tls_version="string",
public_data_endpoint_enabled=False,
maintenance_configuration_name="string",
service_principal_type="string",
location="string",
name="string",
identity={
"type": "string",
"identity_ids": ["string"],
"principal_id": "string",
"tenant_id": "string",
},
dns_zone_partner_id="string",
tags={
"string": "string",
},
timezone_id="string",
collation="string",
zone_redundant_enabled=False)
const managedInstanceResource = new azure.mssql.ManagedInstance("managedInstanceResource", {
administratorLogin: "string",
administratorLoginPassword: "string",
vcores: 0,
subnetId: "string",
storageSizeInGb: 0,
licenseType: "string",
skuName: "string",
resourceGroupName: "string",
proxyOverride: "string",
storageAccountType: "string",
minimumTlsVersion: "string",
publicDataEndpointEnabled: false,
maintenanceConfigurationName: "string",
servicePrincipalType: "string",
location: "string",
name: "string",
identity: {
type: "string",
identityIds: ["string"],
principalId: "string",
tenantId: "string",
},
dnsZonePartnerId: "string",
tags: {
string: "string",
},
timezoneId: "string",
collation: "string",
zoneRedundantEnabled: false,
});
type: azure:mssql:ManagedInstance
properties:
administratorLogin: string
administratorLoginPassword: string
collation: string
dnsZonePartnerId: string
identity:
identityIds:
- string
principalId: string
tenantId: string
type: string
licenseType: string
location: string
maintenanceConfigurationName: string
minimumTlsVersion: string
name: string
proxyOverride: string
publicDataEndpointEnabled: false
resourceGroupName: string
servicePrincipalType: string
skuName: string
storageAccountType: string
storageSizeInGb: 0
subnetId: string
tags:
string: string
timezoneId: string
vcores: 0
zoneRedundantEnabled: false
ManagedInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ManagedInstance resource accepts the following input properties:
- Administrator
Login string - The administrator login name for the new SQL Managed Instance. Changing this forces a new resource to be created.
- Administrator
Login stringPassword - The password associated with the
administrator_login
user. Needs to comply with Azure's Password Policy - License
Type string - What type of license the Managed Instance will use. Possible values are
LicenseIncluded
andBasePrice
. - Resource
Group stringName - The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.
- Sku
Name string - Specifies the SKU Name for the SQL Managed Instance. Valid values include
GP_Gen4
,GP_Gen5
,GP_Gen8IM
,GP_Gen8IH
,BC_Gen4
,BC_Gen5
,BC_Gen8IM
orBC_Gen8IH
. - Storage
Size intIn Gb - Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB).
- Subnet
Id string - The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created.
- Vcores int
- Number of cores that should be assigned to the SQL Managed Instance. Values can be
8
,16
, or24
for Gen4 SKUs, or4
,6
,8
,10
,12
,16
,20
,24
,32
,40
,48
,56
,64
,80
,96
or128
for Gen5 SKUs. - Collation string
- Specifies how the SQL Managed Instance will be collated. Default value is
SQL_Latin1_General_CP1_CI_AS
. Changing this forces a new resource to be created. - Dns
Zone stringPartner Id - The ID of the SQL Managed Instance which will share the DNS zone. This is a prerequisite for creating an
azurerm_sql_managed_instance_failover_group
. Setting this after creation forces a new resource to be created. - Identity
Managed
Instance Identity - An
identity
block as defined below. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Maintenance
Configuration stringName - The name of the Public Maintenance Configuration window to apply to the SQL Managed Instance. Valid values include
SQL_Default
or an Azure Location in the formatSQL_{Location}_MI_{Size}
(for exampleSQL_EastUS_MI_1
). Defaults toSQL_Default
. - Minimum
Tls stringVersion - The Minimum TLS Version. Default value is
1.2
Valid values include1.0
,1.1
,1.2
. - Name string
- The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
- Proxy
Override string - Specifies how the SQL Managed Instance will be accessed. Default value is
Default
. Valid values includeDefault
,Proxy
, andRedirect
. - Public
Data boolEndpoint Enabled - Is the public data endpoint enabled? Default value is
false
. - Service
Principal stringType - The service principal type. The only possible value is
SystemAssigned
. - Storage
Account stringType - Specifies the storage account type used to store backups for this database. Possible values are
GRS
,GZRS
,LRS
, andZRS
. Defaults toGRS
. - Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Timezone
Id string - The TimeZone ID that the SQL Managed Instance will be operating in. Default value is
UTC
. Changing this forces a new resource to be created. - Zone
Redundant boolEnabled - Specifies whether or not the SQL Managed Instance is zone redundant. Defaults to
false
.
- Administrator
Login string - The administrator login name for the new SQL Managed Instance. Changing this forces a new resource to be created.
- Administrator
Login stringPassword - The password associated with the
administrator_login
user. Needs to comply with Azure's Password Policy - License
Type string - What type of license the Managed Instance will use. Possible values are
LicenseIncluded
andBasePrice
. - Resource
Group stringName - The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.
- Sku
Name string - Specifies the SKU Name for the SQL Managed Instance. Valid values include
GP_Gen4
,GP_Gen5
,GP_Gen8IM
,GP_Gen8IH
,BC_Gen4
,BC_Gen5
,BC_Gen8IM
orBC_Gen8IH
. - Storage
Size intIn Gb - Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB).
- Subnet
Id string - The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created.
- Vcores int
- Number of cores that should be assigned to the SQL Managed Instance. Values can be
8
,16
, or24
for Gen4 SKUs, or4
,6
,8
,10
,12
,16
,20
,24
,32
,40
,48
,56
,64
,80
,96
or128
for Gen5 SKUs. - Collation string
- Specifies how the SQL Managed Instance will be collated. Default value is
SQL_Latin1_General_CP1_CI_AS
. Changing this forces a new resource to be created. - Dns
Zone stringPartner Id - The ID of the SQL Managed Instance which will share the DNS zone. This is a prerequisite for creating an
azurerm_sql_managed_instance_failover_group
. Setting this after creation forces a new resource to be created. - Identity
Managed
Instance Identity Args - An
identity
block as defined below. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Maintenance
Configuration stringName - The name of the Public Maintenance Configuration window to apply to the SQL Managed Instance. Valid values include
SQL_Default
or an Azure Location in the formatSQL_{Location}_MI_{Size}
(for exampleSQL_EastUS_MI_1
). Defaults toSQL_Default
. - Minimum
Tls stringVersion - The Minimum TLS Version. Default value is
1.2
Valid values include1.0
,1.1
,1.2
. - Name string
- The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
- Proxy
Override string - Specifies how the SQL Managed Instance will be accessed. Default value is
Default
. Valid values includeDefault
,Proxy
, andRedirect
. - Public
Data boolEndpoint Enabled - Is the public data endpoint enabled? Default value is
false
. - Service
Principal stringType - The service principal type. The only possible value is
SystemAssigned
. - Storage
Account stringType - Specifies the storage account type used to store backups for this database. Possible values are
GRS
,GZRS
,LRS
, andZRS
. Defaults toGRS
. - map[string]string
- A mapping of tags to assign to the resource.
- Timezone
Id string - The TimeZone ID that the SQL Managed Instance will be operating in. Default value is
UTC
. Changing this forces a new resource to be created. - Zone
Redundant boolEnabled - Specifies whether or not the SQL Managed Instance is zone redundant. Defaults to
false
.
- administrator
Login String - The administrator login name for the new SQL Managed Instance. Changing this forces a new resource to be created.
- administrator
Login StringPassword - The password associated with the
administrator_login
user. Needs to comply with Azure's Password Policy - license
Type String - What type of license the Managed Instance will use. Possible values are
LicenseIncluded
andBasePrice
. - resource
Group StringName - The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.
- sku
Name String - Specifies the SKU Name for the SQL Managed Instance. Valid values include
GP_Gen4
,GP_Gen5
,GP_Gen8IM
,GP_Gen8IH
,BC_Gen4
,BC_Gen5
,BC_Gen8IM
orBC_Gen8IH
. - storage
Size IntegerIn Gb - Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB).
- subnet
Id String - The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created.
- vcores Integer
- Number of cores that should be assigned to the SQL Managed Instance. Values can be
8
,16
, or24
for Gen4 SKUs, or4
,6
,8
,10
,12
,16
,20
,24
,32
,40
,48
,56
,64
,80
,96
or128
for Gen5 SKUs. - collation String
- Specifies how the SQL Managed Instance will be collated. Default value is
SQL_Latin1_General_CP1_CI_AS
. Changing this forces a new resource to be created. - dns
Zone StringPartner Id - The ID of the SQL Managed Instance which will share the DNS zone. This is a prerequisite for creating an
azurerm_sql_managed_instance_failover_group
. Setting this after creation forces a new resource to be created. - identity
Managed
Instance Identity - An
identity
block as defined below. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- maintenance
Configuration StringName - The name of the Public Maintenance Configuration window to apply to the SQL Managed Instance. Valid values include
SQL_Default
or an Azure Location in the formatSQL_{Location}_MI_{Size}
(for exampleSQL_EastUS_MI_1
). Defaults toSQL_Default
. - minimum
Tls StringVersion - The Minimum TLS Version. Default value is
1.2
Valid values include1.0
,1.1
,1.2
. - name String
- The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
- proxy
Override String - Specifies how the SQL Managed Instance will be accessed. Default value is
Default
. Valid values includeDefault
,Proxy
, andRedirect
. - public
Data BooleanEndpoint Enabled - Is the public data endpoint enabled? Default value is
false
. - service
Principal StringType - The service principal type. The only possible value is
SystemAssigned
. - storage
Account StringType - Specifies the storage account type used to store backups for this database. Possible values are
GRS
,GZRS
,LRS
, andZRS
. Defaults toGRS
. - Map<String,String>
- A mapping of tags to assign to the resource.
- timezone
Id String - The TimeZone ID that the SQL Managed Instance will be operating in. Default value is
UTC
. Changing this forces a new resource to be created. - zone
Redundant BooleanEnabled - Specifies whether or not the SQL Managed Instance is zone redundant. Defaults to
false
.
- administrator
Login string - The administrator login name for the new SQL Managed Instance. Changing this forces a new resource to be created.
- administrator
Login stringPassword - The password associated with the
administrator_login
user. Needs to comply with Azure's Password Policy - license
Type string - What type of license the Managed Instance will use. Possible values are
LicenseIncluded
andBasePrice
. - resource
Group stringName - The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.
- sku
Name string - Specifies the SKU Name for the SQL Managed Instance. Valid values include
GP_Gen4
,GP_Gen5
,GP_Gen8IM
,GP_Gen8IH
,BC_Gen4
,BC_Gen5
,BC_Gen8IM
orBC_Gen8IH
. - storage
Size numberIn Gb - Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB).
- subnet
Id string - The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created.
- vcores number
- Number of cores that should be assigned to the SQL Managed Instance. Values can be
8
,16
, or24
for Gen4 SKUs, or4
,6
,8
,10
,12
,16
,20
,24
,32
,40
,48
,56
,64
,80
,96
or128
for Gen5 SKUs. - collation string
- Specifies how the SQL Managed Instance will be collated. Default value is
SQL_Latin1_General_CP1_CI_AS
. Changing this forces a new resource to be created. - dns
Zone stringPartner Id - The ID of the SQL Managed Instance which will share the DNS zone. This is a prerequisite for creating an
azurerm_sql_managed_instance_failover_group
. Setting this after creation forces a new resource to be created. - identity
Managed
Instance Identity - An
identity
block as defined below. - location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- maintenance
Configuration stringName - The name of the Public Maintenance Configuration window to apply to the SQL Managed Instance. Valid values include
SQL_Default
or an Azure Location in the formatSQL_{Location}_MI_{Size}
(for exampleSQL_EastUS_MI_1
). Defaults toSQL_Default
. - minimum
Tls stringVersion - The Minimum TLS Version. Default value is
1.2
Valid values include1.0
,1.1
,1.2
. - name string
- The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
- proxy
Override string - Specifies how the SQL Managed Instance will be accessed. Default value is
Default
. Valid values includeDefault
,Proxy
, andRedirect
. - public
Data booleanEndpoint Enabled - Is the public data endpoint enabled? Default value is
false
. - service
Principal stringType - The service principal type. The only possible value is
SystemAssigned
. - storage
Account stringType - Specifies the storage account type used to store backups for this database. Possible values are
GRS
,GZRS
,LRS
, andZRS
. Defaults toGRS
. - {[key: string]: string}
- A mapping of tags to assign to the resource.
- timezone
Id string - The TimeZone ID that the SQL Managed Instance will be operating in. Default value is
UTC
. Changing this forces a new resource to be created. - zone
Redundant booleanEnabled - Specifies whether or not the SQL Managed Instance is zone redundant. Defaults to
false
.
- administrator_
login str - The administrator login name for the new SQL Managed Instance. Changing this forces a new resource to be created.
- administrator_
login_ strpassword - The password associated with the
administrator_login
user. Needs to comply with Azure's Password Policy - license_
type str - What type of license the Managed Instance will use. Possible values are
LicenseIncluded
andBasePrice
. - resource_
group_ strname - The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.
- sku_
name str - Specifies the SKU Name for the SQL Managed Instance. Valid values include
GP_Gen4
,GP_Gen5
,GP_Gen8IM
,GP_Gen8IH
,BC_Gen4
,BC_Gen5
,BC_Gen8IM
orBC_Gen8IH
. - storage_
size_ intin_ gb - Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB).
- subnet_
id str - The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created.
- vcores int
- Number of cores that should be assigned to the SQL Managed Instance. Values can be
8
,16
, or24
for Gen4 SKUs, or4
,6
,8
,10
,12
,16
,20
,24
,32
,40
,48
,56
,64
,80
,96
or128
for Gen5 SKUs. - collation str
- Specifies how the SQL Managed Instance will be collated. Default value is
SQL_Latin1_General_CP1_CI_AS
. Changing this forces a new resource to be created. - dns_
zone_ strpartner_ id - The ID of the SQL Managed Instance which will share the DNS zone. This is a prerequisite for creating an
azurerm_sql_managed_instance_failover_group
. Setting this after creation forces a new resource to be created. - identity
Managed
Instance Identity Args - An
identity
block as defined below. - location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- maintenance_
configuration_ strname - The name of the Public Maintenance Configuration window to apply to the SQL Managed Instance. Valid values include
SQL_Default
or an Azure Location in the formatSQL_{Location}_MI_{Size}
(for exampleSQL_EastUS_MI_1
). Defaults toSQL_Default
. - minimum_
tls_ strversion - The Minimum TLS Version. Default value is
1.2
Valid values include1.0
,1.1
,1.2
. - name str
- The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
- proxy_
override str - Specifies how the SQL Managed Instance will be accessed. Default value is
Default
. Valid values includeDefault
,Proxy
, andRedirect
. - public_
data_ boolendpoint_ enabled - Is the public data endpoint enabled? Default value is
false
. - service_
principal_ strtype - The service principal type. The only possible value is
SystemAssigned
. - storage_
account_ strtype - Specifies the storage account type used to store backups for this database. Possible values are
GRS
,GZRS
,LRS
, andZRS
. Defaults toGRS
. - Mapping[str, str]
- A mapping of tags to assign to the resource.
- timezone_
id str - The TimeZone ID that the SQL Managed Instance will be operating in. Default value is
UTC
. Changing this forces a new resource to be created. - zone_
redundant_ boolenabled - Specifies whether or not the SQL Managed Instance is zone redundant. Defaults to
false
.
- administrator
Login String - The administrator login name for the new SQL Managed Instance. Changing this forces a new resource to be created.
- administrator
Login StringPassword - The password associated with the
administrator_login
user. Needs to comply with Azure's Password Policy - license
Type String - What type of license the Managed Instance will use. Possible values are
LicenseIncluded
andBasePrice
. - resource
Group StringName - The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.
- sku
Name String - Specifies the SKU Name for the SQL Managed Instance. Valid values include
GP_Gen4
,GP_Gen5
,GP_Gen8IM
,GP_Gen8IH
,BC_Gen4
,BC_Gen5
,BC_Gen8IM
orBC_Gen8IH
. - storage
Size NumberIn Gb - Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB).
- subnet
Id String - The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created.
- vcores Number
- Number of cores that should be assigned to the SQL Managed Instance. Values can be
8
,16
, or24
for Gen4 SKUs, or4
,6
,8
,10
,12
,16
,20
,24
,32
,40
,48
,56
,64
,80
,96
or128
for Gen5 SKUs. - collation String
- Specifies how the SQL Managed Instance will be collated. Default value is
SQL_Latin1_General_CP1_CI_AS
. Changing this forces a new resource to be created. - dns
Zone StringPartner Id - The ID of the SQL Managed Instance which will share the DNS zone. This is a prerequisite for creating an
azurerm_sql_managed_instance_failover_group
. Setting this after creation forces a new resource to be created. - identity Property Map
- An
identity
block as defined below. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- maintenance
Configuration StringName - The name of the Public Maintenance Configuration window to apply to the SQL Managed Instance. Valid values include
SQL_Default
or an Azure Location in the formatSQL_{Location}_MI_{Size}
(for exampleSQL_EastUS_MI_1
). Defaults toSQL_Default
. - minimum
Tls StringVersion - The Minimum TLS Version. Default value is
1.2
Valid values include1.0
,1.1
,1.2
. - name String
- The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
- proxy
Override String - Specifies how the SQL Managed Instance will be accessed. Default value is
Default
. Valid values includeDefault
,Proxy
, andRedirect
. - public
Data BooleanEndpoint Enabled - Is the public data endpoint enabled? Default value is
false
. - service
Principal StringType - The service principal type. The only possible value is
SystemAssigned
. - storage
Account StringType - Specifies the storage account type used to store backups for this database. Possible values are
GRS
,GZRS
,LRS
, andZRS
. Defaults toGRS
. - Map<String>
- A mapping of tags to assign to the resource.
- timezone
Id String - The TimeZone ID that the SQL Managed Instance will be operating in. Default value is
UTC
. Changing this forces a new resource to be created. - zone
Redundant BooleanEnabled - Specifies whether or not the SQL Managed Instance is zone redundant. Defaults to
false
.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedInstance resource produces the following output properties:
Look up Existing ManagedInstance Resource
Get an existing ManagedInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ManagedInstanceState, opts?: CustomResourceOptions): ManagedInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
administrator_login: Optional[str] = None,
administrator_login_password: Optional[str] = None,
collation: Optional[str] = None,
dns_zone: Optional[str] = None,
dns_zone_partner_id: Optional[str] = None,
fqdn: Optional[str] = None,
identity: Optional[ManagedInstanceIdentityArgs] = None,
license_type: Optional[str] = None,
location: Optional[str] = None,
maintenance_configuration_name: Optional[str] = None,
minimum_tls_version: Optional[str] = None,
name: Optional[str] = None,
proxy_override: Optional[str] = None,
public_data_endpoint_enabled: Optional[bool] = None,
resource_group_name: Optional[str] = None,
service_principal_type: Optional[str] = None,
sku_name: Optional[str] = None,
storage_account_type: Optional[str] = None,
storage_size_in_gb: Optional[int] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timezone_id: Optional[str] = None,
vcores: Optional[int] = None,
zone_redundant_enabled: Optional[bool] = None) -> ManagedInstance
func GetManagedInstance(ctx *Context, name string, id IDInput, state *ManagedInstanceState, opts ...ResourceOption) (*ManagedInstance, error)
public static ManagedInstance Get(string name, Input<string> id, ManagedInstanceState? state, CustomResourceOptions? opts = null)
public static ManagedInstance get(String name, Output<String> id, ManagedInstanceState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Administrator
Login string - The administrator login name for the new SQL Managed Instance. Changing this forces a new resource to be created.
- Administrator
Login stringPassword - The password associated with the
administrator_login
user. Needs to comply with Azure's Password Policy - Collation string
- Specifies how the SQL Managed Instance will be collated. Default value is
SQL_Latin1_General_CP1_CI_AS
. Changing this forces a new resource to be created. - Dns
Zone string - The Dns Zone where the SQL Managed Instance is located.
- Dns
Zone stringPartner Id - The ID of the SQL Managed Instance which will share the DNS zone. This is a prerequisite for creating an
azurerm_sql_managed_instance_failover_group
. Setting this after creation forces a new resource to be created. - Fqdn string
- The fully qualified domain name of the Azure Managed SQL Instance
- Identity
Managed
Instance Identity - An
identity
block as defined below. - License
Type string - What type of license the Managed Instance will use. Possible values are
LicenseIncluded
andBasePrice
. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Maintenance
Configuration stringName - The name of the Public Maintenance Configuration window to apply to the SQL Managed Instance. Valid values include
SQL_Default
or an Azure Location in the formatSQL_{Location}_MI_{Size}
(for exampleSQL_EastUS_MI_1
). Defaults toSQL_Default
. - Minimum
Tls stringVersion - The Minimum TLS Version. Default value is
1.2
Valid values include1.0
,1.1
,1.2
. - Name string
- The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
- Proxy
Override string - Specifies how the SQL Managed Instance will be accessed. Default value is
Default
. Valid values includeDefault
,Proxy
, andRedirect
. - Public
Data boolEndpoint Enabled - Is the public data endpoint enabled? Default value is
false
. - Resource
Group stringName - The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.
- Service
Principal stringType - The service principal type. The only possible value is
SystemAssigned
. - Sku
Name string - Specifies the SKU Name for the SQL Managed Instance. Valid values include
GP_Gen4
,GP_Gen5
,GP_Gen8IM
,GP_Gen8IH
,BC_Gen4
,BC_Gen5
,BC_Gen8IM
orBC_Gen8IH
. - Storage
Account stringType - Specifies the storage account type used to store backups for this database. Possible values are
GRS
,GZRS
,LRS
, andZRS
. Defaults toGRS
. - Storage
Size intIn Gb - Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB).
- Subnet
Id string - The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Timezone
Id string - The TimeZone ID that the SQL Managed Instance will be operating in. Default value is
UTC
. Changing this forces a new resource to be created. - Vcores int
- Number of cores that should be assigned to the SQL Managed Instance. Values can be
8
,16
, or24
for Gen4 SKUs, or4
,6
,8
,10
,12
,16
,20
,24
,32
,40
,48
,56
,64
,80
,96
or128
for Gen5 SKUs. - Zone
Redundant boolEnabled - Specifies whether or not the SQL Managed Instance is zone redundant. Defaults to
false
.
- Administrator
Login string - The administrator login name for the new SQL Managed Instance. Changing this forces a new resource to be created.
- Administrator
Login stringPassword - The password associated with the
administrator_login
user. Needs to comply with Azure's Password Policy - Collation string
- Specifies how the SQL Managed Instance will be collated. Default value is
SQL_Latin1_General_CP1_CI_AS
. Changing this forces a new resource to be created. - Dns
Zone string - The Dns Zone where the SQL Managed Instance is located.
- Dns
Zone stringPartner Id - The ID of the SQL Managed Instance which will share the DNS zone. This is a prerequisite for creating an
azurerm_sql_managed_instance_failover_group
. Setting this after creation forces a new resource to be created. - Fqdn string
- The fully qualified domain name of the Azure Managed SQL Instance
- Identity
Managed
Instance Identity Args - An
identity
block as defined below. - License
Type string - What type of license the Managed Instance will use. Possible values are
LicenseIncluded
andBasePrice
. - Location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Maintenance
Configuration stringName - The name of the Public Maintenance Configuration window to apply to the SQL Managed Instance. Valid values include
SQL_Default
or an Azure Location in the formatSQL_{Location}_MI_{Size}
(for exampleSQL_EastUS_MI_1
). Defaults toSQL_Default
. - Minimum
Tls stringVersion - The Minimum TLS Version. Default value is
1.2
Valid values include1.0
,1.1
,1.2
. - Name string
- The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
- Proxy
Override string - Specifies how the SQL Managed Instance will be accessed. Default value is
Default
. Valid values includeDefault
,Proxy
, andRedirect
. - Public
Data boolEndpoint Enabled - Is the public data endpoint enabled? Default value is
false
. - Resource
Group stringName - The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.
- Service
Principal stringType - The service principal type. The only possible value is
SystemAssigned
. - Sku
Name string - Specifies the SKU Name for the SQL Managed Instance. Valid values include
GP_Gen4
,GP_Gen5
,GP_Gen8IM
,GP_Gen8IH
,BC_Gen4
,BC_Gen5
,BC_Gen8IM
orBC_Gen8IH
. - Storage
Account stringType - Specifies the storage account type used to store backups for this database. Possible values are
GRS
,GZRS
,LRS
, andZRS
. Defaults toGRS
. - Storage
Size intIn Gb - Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB).
- Subnet
Id string - The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created.
- map[string]string
- A mapping of tags to assign to the resource.
- Timezone
Id string - The TimeZone ID that the SQL Managed Instance will be operating in. Default value is
UTC
. Changing this forces a new resource to be created. - Vcores int
- Number of cores that should be assigned to the SQL Managed Instance. Values can be
8
,16
, or24
for Gen4 SKUs, or4
,6
,8
,10
,12
,16
,20
,24
,32
,40
,48
,56
,64
,80
,96
or128
for Gen5 SKUs. - Zone
Redundant boolEnabled - Specifies whether or not the SQL Managed Instance is zone redundant. Defaults to
false
.
- administrator
Login String - The administrator login name for the new SQL Managed Instance. Changing this forces a new resource to be created.
- administrator
Login StringPassword - The password associated with the
administrator_login
user. Needs to comply with Azure's Password Policy - collation String
- Specifies how the SQL Managed Instance will be collated. Default value is
SQL_Latin1_General_CP1_CI_AS
. Changing this forces a new resource to be created. - dns
Zone String - The Dns Zone where the SQL Managed Instance is located.
- dns
Zone StringPartner Id - The ID of the SQL Managed Instance which will share the DNS zone. This is a prerequisite for creating an
azurerm_sql_managed_instance_failover_group
. Setting this after creation forces a new resource to be created. - fqdn String
- The fully qualified domain name of the Azure Managed SQL Instance
- identity
Managed
Instance Identity - An
identity
block as defined below. - license
Type String - What type of license the Managed Instance will use. Possible values are
LicenseIncluded
andBasePrice
. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- maintenance
Configuration StringName - The name of the Public Maintenance Configuration window to apply to the SQL Managed Instance. Valid values include
SQL_Default
or an Azure Location in the formatSQL_{Location}_MI_{Size}
(for exampleSQL_EastUS_MI_1
). Defaults toSQL_Default
. - minimum
Tls StringVersion - The Minimum TLS Version. Default value is
1.2
Valid values include1.0
,1.1
,1.2
. - name String
- The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
- proxy
Override String - Specifies how the SQL Managed Instance will be accessed. Default value is
Default
. Valid values includeDefault
,Proxy
, andRedirect
. - public
Data BooleanEndpoint Enabled - Is the public data endpoint enabled? Default value is
false
. - resource
Group StringName - The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.
- service
Principal StringType - The service principal type. The only possible value is
SystemAssigned
. - sku
Name String - Specifies the SKU Name for the SQL Managed Instance. Valid values include
GP_Gen4
,GP_Gen5
,GP_Gen8IM
,GP_Gen8IH
,BC_Gen4
,BC_Gen5
,BC_Gen8IM
orBC_Gen8IH
. - storage
Account StringType - Specifies the storage account type used to store backups for this database. Possible values are
GRS
,GZRS
,LRS
, andZRS
. Defaults toGRS
. - storage
Size IntegerIn Gb - Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB).
- subnet
Id String - The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created.
- Map<String,String>
- A mapping of tags to assign to the resource.
- timezone
Id String - The TimeZone ID that the SQL Managed Instance will be operating in. Default value is
UTC
. Changing this forces a new resource to be created. - vcores Integer
- Number of cores that should be assigned to the SQL Managed Instance. Values can be
8
,16
, or24
for Gen4 SKUs, or4
,6
,8
,10
,12
,16
,20
,24
,32
,40
,48
,56
,64
,80
,96
or128
for Gen5 SKUs. - zone
Redundant BooleanEnabled - Specifies whether or not the SQL Managed Instance is zone redundant. Defaults to
false
.
- administrator
Login string - The administrator login name for the new SQL Managed Instance. Changing this forces a new resource to be created.
- administrator
Login stringPassword - The password associated with the
administrator_login
user. Needs to comply with Azure's Password Policy - collation string
- Specifies how the SQL Managed Instance will be collated. Default value is
SQL_Latin1_General_CP1_CI_AS
. Changing this forces a new resource to be created. - dns
Zone string - The Dns Zone where the SQL Managed Instance is located.
- dns
Zone stringPartner Id - The ID of the SQL Managed Instance which will share the DNS zone. This is a prerequisite for creating an
azurerm_sql_managed_instance_failover_group
. Setting this after creation forces a new resource to be created. - fqdn string
- The fully qualified domain name of the Azure Managed SQL Instance
- identity
Managed
Instance Identity - An
identity
block as defined below. - license
Type string - What type of license the Managed Instance will use. Possible values are
LicenseIncluded
andBasePrice
. - location string
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- maintenance
Configuration stringName - The name of the Public Maintenance Configuration window to apply to the SQL Managed Instance. Valid values include
SQL_Default
or an Azure Location in the formatSQL_{Location}_MI_{Size}
(for exampleSQL_EastUS_MI_1
). Defaults toSQL_Default
. - minimum
Tls stringVersion - The Minimum TLS Version. Default value is
1.2
Valid values include1.0
,1.1
,1.2
. - name string
- The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
- proxy
Override string - Specifies how the SQL Managed Instance will be accessed. Default value is
Default
. Valid values includeDefault
,Proxy
, andRedirect
. - public
Data booleanEndpoint Enabled - Is the public data endpoint enabled? Default value is
false
. - resource
Group stringName - The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.
- service
Principal stringType - The service principal type. The only possible value is
SystemAssigned
. - sku
Name string - Specifies the SKU Name for the SQL Managed Instance. Valid values include
GP_Gen4
,GP_Gen5
,GP_Gen8IM
,GP_Gen8IH
,BC_Gen4
,BC_Gen5
,BC_Gen8IM
orBC_Gen8IH
. - storage
Account stringType - Specifies the storage account type used to store backups for this database. Possible values are
GRS
,GZRS
,LRS
, andZRS
. Defaults toGRS
. - storage
Size numberIn Gb - Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB).
- subnet
Id string - The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- timezone
Id string - The TimeZone ID that the SQL Managed Instance will be operating in. Default value is
UTC
. Changing this forces a new resource to be created. - vcores number
- Number of cores that should be assigned to the SQL Managed Instance. Values can be
8
,16
, or24
for Gen4 SKUs, or4
,6
,8
,10
,12
,16
,20
,24
,32
,40
,48
,56
,64
,80
,96
or128
for Gen5 SKUs. - zone
Redundant booleanEnabled - Specifies whether or not the SQL Managed Instance is zone redundant. Defaults to
false
.
- administrator_
login str - The administrator login name for the new SQL Managed Instance. Changing this forces a new resource to be created.
- administrator_
login_ strpassword - The password associated with the
administrator_login
user. Needs to comply with Azure's Password Policy - collation str
- Specifies how the SQL Managed Instance will be collated. Default value is
SQL_Latin1_General_CP1_CI_AS
. Changing this forces a new resource to be created. - dns_
zone str - The Dns Zone where the SQL Managed Instance is located.
- dns_
zone_ strpartner_ id - The ID of the SQL Managed Instance which will share the DNS zone. This is a prerequisite for creating an
azurerm_sql_managed_instance_failover_group
. Setting this after creation forces a new resource to be created. - fqdn str
- The fully qualified domain name of the Azure Managed SQL Instance
- identity
Managed
Instance Identity Args - An
identity
block as defined below. - license_
type str - What type of license the Managed Instance will use. Possible values are
LicenseIncluded
andBasePrice
. - location str
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- maintenance_
configuration_ strname - The name of the Public Maintenance Configuration window to apply to the SQL Managed Instance. Valid values include
SQL_Default
or an Azure Location in the formatSQL_{Location}_MI_{Size}
(for exampleSQL_EastUS_MI_1
). Defaults toSQL_Default
. - minimum_
tls_ strversion - The Minimum TLS Version. Default value is
1.2
Valid values include1.0
,1.1
,1.2
. - name str
- The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
- proxy_
override str - Specifies how the SQL Managed Instance will be accessed. Default value is
Default
. Valid values includeDefault
,Proxy
, andRedirect
. - public_
data_ boolendpoint_ enabled - Is the public data endpoint enabled? Default value is
false
. - resource_
group_ strname - The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.
- service_
principal_ strtype - The service principal type. The only possible value is
SystemAssigned
. - sku_
name str - Specifies the SKU Name for the SQL Managed Instance. Valid values include
GP_Gen4
,GP_Gen5
,GP_Gen8IM
,GP_Gen8IH
,BC_Gen4
,BC_Gen5
,BC_Gen8IM
orBC_Gen8IH
. - storage_
account_ strtype - Specifies the storage account type used to store backups for this database. Possible values are
GRS
,GZRS
,LRS
, andZRS
. Defaults toGRS
. - storage_
size_ intin_ gb - Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB).
- subnet_
id str - The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- timezone_
id str - The TimeZone ID that the SQL Managed Instance will be operating in. Default value is
UTC
. Changing this forces a new resource to be created. - vcores int
- Number of cores that should be assigned to the SQL Managed Instance. Values can be
8
,16
, or24
for Gen4 SKUs, or4
,6
,8
,10
,12
,16
,20
,24
,32
,40
,48
,56
,64
,80
,96
or128
for Gen5 SKUs. - zone_
redundant_ boolenabled - Specifies whether or not the SQL Managed Instance is zone redundant. Defaults to
false
.
- administrator
Login String - The administrator login name for the new SQL Managed Instance. Changing this forces a new resource to be created.
- administrator
Login StringPassword - The password associated with the
administrator_login
user. Needs to comply with Azure's Password Policy - collation String
- Specifies how the SQL Managed Instance will be collated. Default value is
SQL_Latin1_General_CP1_CI_AS
. Changing this forces a new resource to be created. - dns
Zone String - The Dns Zone where the SQL Managed Instance is located.
- dns
Zone StringPartner Id - The ID of the SQL Managed Instance which will share the DNS zone. This is a prerequisite for creating an
azurerm_sql_managed_instance_failover_group
. Setting this after creation forces a new resource to be created. - fqdn String
- The fully qualified domain name of the Azure Managed SQL Instance
- identity Property Map
- An
identity
block as defined below. - license
Type String - What type of license the Managed Instance will use. Possible values are
LicenseIncluded
andBasePrice
. - location String
- Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- maintenance
Configuration StringName - The name of the Public Maintenance Configuration window to apply to the SQL Managed Instance. Valid values include
SQL_Default
or an Azure Location in the formatSQL_{Location}_MI_{Size}
(for exampleSQL_EastUS_MI_1
). Defaults toSQL_Default
. - minimum
Tls StringVersion - The Minimum TLS Version. Default value is
1.2
Valid values include1.0
,1.1
,1.2
. - name String
- The name of the SQL Managed Instance. This needs to be globally unique within Azure. Changing this forces a new resource to be created.
- proxy
Override String - Specifies how the SQL Managed Instance will be accessed. Default value is
Default
. Valid values includeDefault
,Proxy
, andRedirect
. - public
Data BooleanEndpoint Enabled - Is the public data endpoint enabled? Default value is
false
. - resource
Group StringName - The name of the resource group in which to create the SQL Managed Instance. Changing this forces a new resource to be created.
- service
Principal StringType - The service principal type. The only possible value is
SystemAssigned
. - sku
Name String - Specifies the SKU Name for the SQL Managed Instance. Valid values include
GP_Gen4
,GP_Gen5
,GP_Gen8IM
,GP_Gen8IH
,BC_Gen4
,BC_Gen5
,BC_Gen8IM
orBC_Gen8IH
. - storage
Account StringType - Specifies the storage account type used to store backups for this database. Possible values are
GRS
,GZRS
,LRS
, andZRS
. Defaults toGRS
. - storage
Size NumberIn Gb - Maximum storage space for the SQL Managed instance. This should be a multiple of 32 (GB).
- subnet
Id String - The subnet resource id that the SQL Managed Instance will be associated with. Changing this forces a new resource to be created.
- Map<String>
- A mapping of tags to assign to the resource.
- timezone
Id String - The TimeZone ID that the SQL Managed Instance will be operating in. Default value is
UTC
. Changing this forces a new resource to be created. - vcores Number
- Number of cores that should be assigned to the SQL Managed Instance. Values can be
8
,16
, or24
for Gen4 SKUs, or4
,6
,8
,10
,12
,16
,20
,24
,32
,40
,48
,56
,64
,80
,96
or128
for Gen5 SKUs. - zone
Redundant BooleanEnabled - Specifies whether or not the SQL Managed Instance is zone redundant. Defaults to
false
.
Supporting Types
ManagedInstanceIdentity, ManagedInstanceIdentityArgs
- Type string
- Specifies the type of Managed Service Identity that should be configured on this SQL Managed Instance. Possible values are
SystemAssigned
,UserAssigned
. - Identity
Ids List<string> Specifies a list of User Assigned Managed Identity IDs to be assigned to this SQL Managed Instance. Required when
type
is set toUserAssigned
.The assigned
principal_id
andtenant_id
can be retrieved after the identitytype
has been set toSystemAssigned
and SQL Managed Instance has been created.- Principal
Id string - The Principal ID for the Service Principal associated with the Identity of this SQL Managed Instance.
- Tenant
Id string - The Tenant ID for the Service Principal associated with the Identity of this SQL Managed Instance.
- Type string
- Specifies the type of Managed Service Identity that should be configured on this SQL Managed Instance. Possible values are
SystemAssigned
,UserAssigned
. - Identity
Ids []string Specifies a list of User Assigned Managed Identity IDs to be assigned to this SQL Managed Instance. Required when
type
is set toUserAssigned
.The assigned
principal_id
andtenant_id
can be retrieved after the identitytype
has been set toSystemAssigned
and SQL Managed Instance has been created.- Principal
Id string - The Principal ID for the Service Principal associated with the Identity of this SQL Managed Instance.
- Tenant
Id string - The Tenant ID for the Service Principal associated with the Identity of this SQL Managed Instance.
- type String
- Specifies the type of Managed Service Identity that should be configured on this SQL Managed Instance. Possible values are
SystemAssigned
,UserAssigned
. - identity
Ids List<String> Specifies a list of User Assigned Managed Identity IDs to be assigned to this SQL Managed Instance. Required when
type
is set toUserAssigned
.The assigned
principal_id
andtenant_id
can be retrieved after the identitytype
has been set toSystemAssigned
and SQL Managed Instance has been created.- principal
Id String - The Principal ID for the Service Principal associated with the Identity of this SQL Managed Instance.
- tenant
Id String - The Tenant ID for the Service Principal associated with the Identity of this SQL Managed Instance.
- type string
- Specifies the type of Managed Service Identity that should be configured on this SQL Managed Instance. Possible values are
SystemAssigned
,UserAssigned
. - identity
Ids string[] Specifies a list of User Assigned Managed Identity IDs to be assigned to this SQL Managed Instance. Required when
type
is set toUserAssigned
.The assigned
principal_id
andtenant_id
can be retrieved after the identitytype
has been set toSystemAssigned
and SQL Managed Instance has been created.- principal
Id string - The Principal ID for the Service Principal associated with the Identity of this SQL Managed Instance.
- tenant
Id string - The Tenant ID for the Service Principal associated with the Identity of this SQL Managed Instance.
- type str
- Specifies the type of Managed Service Identity that should be configured on this SQL Managed Instance. Possible values are
SystemAssigned
,UserAssigned
. - identity_
ids Sequence[str] Specifies a list of User Assigned Managed Identity IDs to be assigned to this SQL Managed Instance. Required when
type
is set toUserAssigned
.The assigned
principal_id
andtenant_id
can be retrieved after the identitytype
has been set toSystemAssigned
and SQL Managed Instance has been created.- principal_
id str - The Principal ID for the Service Principal associated with the Identity of this SQL Managed Instance.
- tenant_
id str - The Tenant ID for the Service Principal associated with the Identity of this SQL Managed Instance.
- type String
- Specifies the type of Managed Service Identity that should be configured on this SQL Managed Instance. Possible values are
SystemAssigned
,UserAssigned
. - identity
Ids List<String> Specifies a list of User Assigned Managed Identity IDs to be assigned to this SQL Managed Instance. Required when
type
is set toUserAssigned
.The assigned
principal_id
andtenant_id
can be retrieved after the identitytype
has been set toSystemAssigned
and SQL Managed Instance has been created.- principal
Id String - The Principal ID for the Service Principal associated with the Identity of this SQL Managed Instance.
- tenant
Id String - The Tenant ID for the Service Principal associated with the Identity of this SQL Managed Instance.
Import
Microsoft SQL Managed Instances can be imported using the resource id
, e.g.
$ pulumi import azure:mssql/managedInstance:ManagedInstance example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.Sql/managedInstances/myserver
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.