service_fabrics
Creates, updates, deletes, gets or lists a service_fabrics
resource.
Overview
Name | service_fabrics |
Type | Resource |
Id | azure.dev_test_labs.service_fabrics |
Fields
- vw_service_fabrics
- service_fabrics
Name | Datatype | Description |
---|---|---|
id | text | The identifier of the resource. |
name | text | The name of the resource. |
applicable_schedule | text | field from the properties object |
environment_id | text | field from the properties object |
external_service_fabric_id | text | field from the properties object |
labName | text | field from the properties object |
location | text | The location of the resource. |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | The tags of the resource. |
type | text | The type of the resource. |
unique_identifier | text | field from the properties object |
userName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | The identifier of the resource. |
name | string | The name of the resource. |
location | string | The location of the resource. |
properties | object | Properties of a service fabric. |
tags | object | The tags of the resource. |
type | string | The type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | labName, name, resourceGroupName, subscriptionId, userName | Get service fabric. |
list | SELECT | labName, resourceGroupName, subscriptionId, userName | List service fabrics in a given user profile. |
create_or_update | INSERT | labName, name, resourceGroupName, subscriptionId, userName, data__properties | Create or replace an existing service fabric. This operation can take a while to complete. |
delete | DELETE | labName, name, resourceGroupName, subscriptionId, userName | Delete service fabric. This operation can take a while to complete. |
update | UPDATE | labName, name, resourceGroupName, subscriptionId, userName | Allows modifying tags of service fabrics. All other properties will be ignored. |
start | EXEC | labName, name, resourceGroupName, subscriptionId, userName | Start a service fabric. This operation can take a while to complete. |
stop | EXEC | labName, name, resourceGroupName, subscriptionId, userName | Stop a service fabric This operation can take a while to complete. |
SELECT
examples
List service fabrics in a given user profile.
- vw_service_fabrics
- service_fabrics
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 }}';
SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.dev_test_labs.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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
- name: properties
value:
- name: externalServiceFabricId
value: string
- name: environmentId
value: string
- name: applicableSchedule
value:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
- name: properties
value:
- name: labVmsShutdown
value:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
- name: properties
value:
- name: status
value: string
- name: taskType
value: string
- name: weeklyRecurrence
value:
- name: weekdays
value:
- string
- name: time
value: string
- name: dailyRecurrence
value:
- name: time
value: string
- name: hourlyRecurrence
value:
- name: minute
value: integer
- name: timeZoneId
value: string
- name: notificationSettings
value:
- name: status
value: string
- name: timeInMinutes
value: integer
- name: webhookUrl
value: string
- name: emailRecipient
value: string
- name: notificationLocale
value: string
- name: createdDate
value: string
- name: targetResourceId
value: string
- name: provisioningState
value: string
- name: uniqueIdentifier
value: string
- name: provisioningState
value: string
- name: uniqueIdentifier
value: string
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 }}';