Skip to main content

instances

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

Overview

Nameinstances
TypeResource
Idazure.scom.instances

Fields

NameDatatypeDescription
azure_hybrid_benefittextfield from the properties object
database_instancetextfield from the properties object
domain_controllertextfield from the properties object
domain_user_credentialstextfield from the properties object
gmsa_detailstextfield from the properties object
identitytextAzure Active Directory identity configuration for a resource.
instanceNametextfield from the properties object
locationtextThe geo-location where the resource lives
log_analytics_propertiestextfield from the properties object
management_endpointstextfield from the properties object
operations_statustextfield from the properties object
product_versiontextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
vnet_subnet_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTinstanceName, resourceGroupName, subscriptionIdGet SCOM managed instance details
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all SCOM managed instances in a resource group
list_by_subscriptionSELECTsubscriptionIdLists all SCOM managed instances in a subscription
create_or_updateINSERTinstanceName, resourceGroupName, subscriptionIdCreate or update SCOM managed instance
deleteDELETEinstanceName, resourceGroupName, subscriptionIdDelete a SCOM managed instance
updateUPDATEinstanceName, resourceGroupName, subscriptionIdPatch SCOM managed instance
link_log_analyticsEXECinstanceName, resourceGroupName, subscriptionIdLink Log Analytics workspace for SCOM monitoring instance
patch_serversEXECinstanceName, resourceGroupName, subscriptionIdUpdate SCOM servers with latest scom software.
scaleEXECinstanceName, resourceGroupName, subscriptionIdScaling SCOM managed instance.
unlink_log_analyticsEXECinstanceName, resourceGroupName, subscriptionIdUnlink Log Analytics workspace for SCOM monitoring instance

SELECT examples

Lists all SCOM managed instances in a subscription

SELECT
azure_hybrid_benefit,
database_instance,
domain_controller,
domain_user_credentials,
gmsa_details,
identity,
instanceName,
location,
log_analytics_properties,
management_endpoints,
operations_status,
product_version,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
vnet_subnet_id
FROM azure.scom.vw_instances
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.scom.instances (
instanceName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
identity
)
SELECT
'{{ instanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}'
;

UPDATE example

Updates a instances resource.

/*+ update */
UPDATE azure.scom.instances
SET
identity = '{{ identity }}',
tags = '{{ tags }}'
WHERE
instanceName = '{{ instanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified instances resource.

/*+ delete */
DELETE FROM azure.scom.instances
WHERE instanceName = '{{ instanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';