Skip to main content

service_fabrics

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

Overview

Nameservice_fabrics
TypeResource
Idazure.dev_test_labs.service_fabrics

Fields

NameDatatypeDescription
idtextThe identifier of the resource.
nametextThe name of the resource.
applicable_scheduletextfield from the properties object
environment_idtextfield from the properties object
external_service_fabric_idtextfield from the properties object
labNametextfield from the properties object
locationtextThe location of the resource.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextThe tags of the resource.
typetextThe type of the resource.
unique_identifiertextfield from the properties object
userNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlabName, name, resourceGroupName, subscriptionId, userNameGet service fabric.
listSELECTlabName, resourceGroupName, subscriptionId, userNameList service fabrics in a given user profile.
create_or_updateINSERTlabName, name, resourceGroupName, subscriptionId, userName, data__propertiesCreate or replace an existing service fabric. This operation can take a while to complete.
deleteDELETElabName, name, resourceGroupName, subscriptionId, userNameDelete service fabric. This operation can take a while to complete.
updateUPDATElabName, name, resourceGroupName, subscriptionId, userNameAllows modifying tags of service fabrics. All other properties will be ignored.
startEXEClabName, name, resourceGroupName, subscriptionId, userNameStart a service fabric. This operation can take a while to complete.
stopEXEClabName, name, resourceGroupName, subscriptionId, userNameStop a service fabric This operation can take a while to complete.

SELECT examples

List service fabrics in a given user profile.

SELECT
id,
name,
applicable_schedule,
environment_id,
external_service_fabric_id,
labName,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags,
type,
unique_identifier,
userName
FROM azure.dev_test_labs.vw_service_fabrics
WHERE labName = '{{ labName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND userName = '{{ userName }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dev_test_labs.service_fabrics (
labName,
name,
resourceGroupName,
subscriptionId,
userName,
data__properties,
location,
tags,
properties
)
SELECT
'{{ labName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ userName }}',
'{{ data__properties }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a service_fabrics resource.

/*+ update */
UPDATE azure.dev_test_labs.service_fabrics
SET
tags = '{{ tags }}'
WHERE
labName = '{{ labName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND userName = '{{ userName }}';

DELETE example

Deletes the specified service_fabrics resource.

/*+ delete */
DELETE FROM azure.dev_test_labs.service_fabrics
WHERE labName = '{{ labName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND userName = '{{ userName }}';