Skip to main content

appliances

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

Overview

Nameappliances
TypeResource
Idazure.resource_connector.appliances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
identityobjectIdentity for the resource.
locationstringThe geo-location where the resource lives
propertiesobjectThe set of properties specific to an Appliance
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, resourceNameGets the details of an Appliance with a specified resource group and name.
list_by_resource_groupselectsubscriptionId, resourceGroupNameGets 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_updateinsertsubscriptionId, resourceGroupName, resourceNameCreates or updates an Appliance in the specified Subscription and Resource Group.
updateupdatesubscriptionId, resourceGroupName, resourceNameUpdates an Appliance with the specified Resource Name in the specified Resource Group and Subscription.
deletedeletesubscriptionId, resourceGroupName, resourceNameDeletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
resourceNamestringAppliances name.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets the details of an Appliance with a specified resource group and name.

SELECT
identity,
location,
properties,
tags
FROM azure.resource_connector.appliances
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND resourceName = '{{ resourceName }}' -- required
;

INSERT examples

Creates or updates an Appliance in the specified Subscription and Resource Group.

INSERT INTO azure.resource_connector.appliances (
data__identity,
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
resourceName
)
SELECT
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ resourceName }}'
RETURNING
identity,
location,
properties,
tags
;

UPDATE examples

Updates an Appliance with the specified Resource Name in the specified Resource Group and Subscription.

UPDATE azure.resource_connector.appliances
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND resourceName = '{{ resourceName }}' --required
RETURNING
identity,
location,
properties,
tags;

DELETE examples

Deletes an Appliance with the specified Resource Name, Resource Group, and Subscription Id.

DELETE FROM azure.resource_connector.appliances
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND resourceName = '{{ resourceName }}' --required
;