Skip to main content

appliances

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

Overview

Nameappliances
TypeResource
Idazure.resource_connector.appliances

Fields

NameDatatypeDescription
distrotextfield from the properties object
identitytextIdentity for the resource.
infrastructure_configtextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
public_keytextfield from the properties object
resourceGroupNametextfield from the properties object
resourceNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdGets the details of an Appliance with a specified resource group and name.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets a list of Appliances in the specified subscription and resource group. The operation returns properties of each Appliance.
list_by_subscriptionSELECTsubscriptionIdGets a list of Appliances in the specified subscription. The operation returns properties of each Appliance
create_or_updateINSERTresourceGroupName, resourceName, subscriptionIdCreates or updates an Appliance in the specified Subscription and Resource Group.
deleteDELETEresourceGroupName, resourceName, subscriptionIdDeletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.
updateUPDATEresourceGroupName, resourceName, subscriptionIdUpdates an Appliance with the specified Resource Name in the specified Resource Group and Subscription.

SELECT examples

Gets a list of Appliances in the specified subscription. The operation returns properties of each Appliance

SELECT
distro,
identity,
infrastructure_config,
location,
provisioning_state,
public_key,
resourceGroupName,
resourceName,
status,
subscriptionId,
tags,
version
FROM azure.resource_connector.vw_appliances
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.resource_connector.appliances (
resourceGroupName,
resourceName,
subscriptionId,
identity,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a appliances resource.

/*+ update */
UPDATE azure.resource_connector.appliances
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified appliances resource.

/*+ delete */
DELETE FROM azure.resource_connector.appliances
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';