Skip to main content

fleets

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

Overview

Namefleets
TypeResource
Idazure.fleet.fleets

Fields

NameDatatypeDescription
e_tagtextfield from the properties object
fleetNametextfield from the properties object
hub_profiletextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTfleetName, resourceGroupName, subscriptionIdGets a Fleet.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists fleets in the specified subscription and resource group.
list_by_subscriptionSELECTsubscriptionIdLists fleets in the specified subscription.
create_or_updateINSERTfleetName, resourceGroupName, subscriptionIdCreates or updates a Fleet.
deleteDELETEfleetName, resourceGroupName, subscriptionIdDelete a Fleet
updateUPDATEfleetName, resourceGroupName, subscriptionIdUpdate a Fleet

SELECT examples

Lists fleets in the specified subscription.

SELECT
e_tag,
fleetName,
hub_profile,
identity,
location,
provisioning_state,
resourceGroupName,
subscriptionId,
tags
FROM azure.fleet.vw_fleets
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.fleet.fleets (
fleetName,
resourceGroupName,
subscriptionId,
properties,
identity,
tags,
location
)
SELECT
'{{ fleetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ identity }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a fleets resource.

/*+ update */
UPDATE azure.fleet.fleets
SET
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified fleets resource.

/*+ delete */
DELETE FROM azure.fleet.fleets
WHERE fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';