Skip to main content

sql_managed_instances

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

Overview

Namesql_managed_instances
TypeResource
Idazure.azure_arc_data.sql_managed_instances

Fields

NameDatatypeDescription
active_directory_informationtextfield from the properties object
admintextfield from the properties object
basic_login_informationtextfield from the properties object
cluster_idtextfield from the properties object
data_controller_idtextfield from the properties object
end_timetextfield from the properties object
extended_locationtextfield from the properties object
extension_idtextfield from the properties object
k8s_rawtextfield from the properties object
last_uploaded_datetextfield from the properties object
license_typetextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextThe resource model definition representing SKU for Azure Managed Instance - Azure Arc
sqlManagedInstanceNametextfield from the properties object
start_timetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, sqlManagedInstanceName, subscriptionIdRetrieves a SQL Managed Instance resource
listSELECTsubscriptionId
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all sqlManagedInstances in a resource group.
createINSERTresourceGroupName, sqlManagedInstanceName, subscriptionId, data__propertiesCreates or replaces a SQL Managed Instance resource
deleteDELETEresourceGroupName, sqlManagedInstanceName, subscriptionIdDeletes a SQL Managed Instance resource
updateUPDATEresourceGroupName, sqlManagedInstanceName, subscriptionIdUpdates a SQL Managed Instance resource

SELECT examples

SELECT
active_directory_information,
admin,
basic_login_information,
cluster_id,
data_controller_id,
end_time,
extended_location,
extension_id,
k8s_raw,
last_uploaded_date,
license_type,
location,
provisioning_state,
resourceGroupName,
sku,
sqlManagedInstanceName,
start_time,
subscriptionId,
tags
FROM azure.azure_arc_data.vw_sql_managed_instances
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.azure_arc_data.sql_managed_instances (
resourceGroupName,
sqlManagedInstanceName,
subscriptionId,
data__properties,
tags,
location,
properties,
extendedLocation,
sku
)
SELECT
'{{ resourceGroupName }}',
'{{ sqlManagedInstanceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ sku }}'
;

UPDATE example

Updates a sql_managed_instances resource.

/*+ update */
UPDATE azure.azure_arc_data.sql_managed_instances
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND sqlManagedInstanceName = '{{ sqlManagedInstanceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified sql_managed_instances resource.

/*+ delete */
DELETE FROM azure.azure_arc_data.sql_managed_instances
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sqlManagedInstanceName = '{{ sqlManagedInstanceName }}'
AND subscriptionId = '{{ subscriptionId }}';