Skip to main content

fleets

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

Overview

Namefleets
TypeResource
Idazure.azure_fleet.fleets

Fields

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
identityobjectThe managed service identities assigned to this resource.
locationstringThe geo-location where the resource lives
planobjectDetails of the resource plan.
propertiesobjectThe resource-specific properties for this resource.
tagsobjectResource tags.
zonesarrayZones in which the Compute Fleet is available

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, fleetNameGet a Fleet
list_by_resource_groupselectsubscriptionId, resourceGroupNameList Fleet resources by resource group
list_by_subscriptionselectsubscriptionIdList Fleet resources by subscription ID
create_or_updateinsertsubscriptionId, resourceGroupName, fleetNameCreate a Fleet
updateupdatesubscriptionId, resourceGroupName, fleetNameUpdate a Fleet
deletedeletesubscriptionId, resourceGroupName, fleetNameDelete a Fleet

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
fleetNamestringThe name of the Compute Fleet
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get a Fleet

SELECT
identity,
location,
plan,
properties,
tags,
zones
FROM azure.azure_fleet.fleets
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND fleetName = '{{ fleetName }}' -- required
;

INSERT examples

Create a Fleet

INSERT INTO azure.azure_fleet.fleets (
data__properties,
data__zones,
data__identity,
data__plan,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
fleetName
)
SELECT
'{{ properties }}',
'{{ zones }}',
'{{ identity }}',
'{{ plan }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ fleetName }}'
RETURNING
identity,
location,
plan,
properties,
tags,
zones
;

UPDATE examples

Update a Fleet

UPDATE azure.azure_fleet.fleets
SET
data__tags = '{{ tags }}',
data__identity = '{{ identity }}',
data__plan = '{{ plan }}',
data__properties = '{{ properties }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND fleetName = '{{ fleetName }}' --required
RETURNING
identity,
location,
plan,
properties,
tags,
zones;

DELETE examples

Delete a Fleet

DELETE FROM azure.azure_fleet.fleets
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND fleetName = '{{ fleetName }}' --required
;