Skip to main content

managed_instances

Creates, updates, deletes, gets or lists a managed_instances resource.

Overview

Namemanaged_instances
TypeResource
Idazure.sql.managed_instances

Fields

NameDatatypeDescription
administrator_logintextfield from the properties object
administrator_login_passwordtextfield from the properties object
administratorstextfield from the properties object
authentication_metadatatextfield from the properties object
collationtextfield from the properties object
create_timetextfield from the properties object
current_backup_storage_redundancytextfield from the properties object
database_formattextfield from the properties object
dns_zonetextfield from the properties object
dns_zone_partnertextfield from the properties object
external_governance_statustextfield from the properties object
fully_qualified_domain_nametextfield from the properties object
hybrid_secondary_usagetextfield from the properties object
hybrid_secondary_usage_detectedtextfield from the properties object
identitytextAzure Active Directory identity configuration for a resource.
instance_pool_idtextfield from the properties object
is_general_purpose_v2textfield from the properties object
key_idtextfield from the properties object
license_typetextfield from the properties object
locationtextResource location.
maintenance_configuration_idtextfield from the properties object
managedInstanceNametextfield from the properties object
managed_instance_create_modetextfield from the properties object
minimal_tls_versiontextfield from the properties object
pricing_modeltextfield from the properties object
primary_user_assigned_identity_idtextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
proxy_overridetextfield from the properties object
public_data_endpoint_enabledtextfield from the properties object
requested_backup_storage_redundancytextfield from the properties object
resourceGroupNametextfield from the properties object
restore_point_in_timetextfield from the properties object
service_principaltextfield from the properties object
skutextAn ARM Resource SKU.
source_managed_instance_idtextfield from the properties object
statetextfield from the properties object
storage_i_opstextfield from the properties object
storage_size_in_gbtextfield from the properties object
storage_throughput_mbpstextfield from the properties object
subnet_idtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
timezone_idtextfield from the properties object
v_corestextfield from the properties object
virtual_cluster_idtextfield from the properties object
zone_redundanttextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmanagedInstanceName, resourceGroupName, subscriptionIdGets a managed instance.
listSELECTsubscriptionIdGets a list of all managed instances in the subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets a list of managed instances in a resource group.
create_or_updateINSERTmanagedInstanceName, resourceGroupName, subscriptionId, data__locationCreates or updates a managed instance.
deleteDELETEmanagedInstanceName, resourceGroupName, subscriptionIdDeletes a managed instance.
updateUPDATEmanagedInstanceName, resourceGroupName, subscriptionIdUpdates a managed instance.
failoverEXECmanagedInstanceName, resourceGroupName, subscriptionIdFailovers a managed instance.
refresh_statusEXECmanagedInstanceName, resourceGroupName, subscriptionIdRefresh external governance enablement status.
startEXECmanagedInstanceName, resourceGroupName, subscriptionIdStarts the managed instance.
stopEXECmanagedInstanceName, resourceGroupName, subscriptionIdStops the managed instance.

SELECT examples

Gets a list of all managed instances in the subscription.

SELECT
administrator_login,
administrator_login_password,
administrators,
authentication_metadata,
collation,
create_time,
current_backup_storage_redundancy,
database_format,
dns_zone,
dns_zone_partner,
external_governance_status,
fully_qualified_domain_name,
hybrid_secondary_usage,
hybrid_secondary_usage_detected,
identity,
instance_pool_id,
is_general_purpose_v2,
key_id,
license_type,
location,
maintenance_configuration_id,
managedInstanceName,
managed_instance_create_mode,
minimal_tls_version,
pricing_model,
primary_user_assigned_identity_id,
private_endpoint_connections,
provisioning_state,
proxy_override,
public_data_endpoint_enabled,
requested_backup_storage_redundancy,
resourceGroupName,
restore_point_in_time,
service_principal,
sku,
source_managed_instance_id,
state,
storage_i_ops,
storage_size_in_gb,
storage_throughput_mbps,
subnet_id,
subscriptionId,
tags,
timezone_id,
v_cores,
virtual_cluster_id,
zone_redundant
FROM azure.sql.vw_managed_instances
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new managed_instances resource.

/*+ create */
INSERT INTO azure.sql.managed_instances (
managedInstanceName,
resourceGroupName,
subscriptionId,
data__location,
location,
tags,
identity,
sku,
properties
)
SELECT
'{{ managedInstanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__location }}',
'{{ location }}',
'{{ tags }}',
'{{ identity }}',
'{{ sku }}',
'{{ properties }}'
;

UPDATE example

Updates a managed_instances resource.

/*+ update */
UPDATE azure.sql.managed_instances
SET
sku = '{{ sku }}',
identity = '{{ identity }}',
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
managedInstanceName = '{{ managedInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified managed_instances resource.

/*+ delete */
DELETE FROM azure.sql.managed_instances
WHERE managedInstanceName = '{{ managedInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';