Skip to main content

update_strategies

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

Overview

Nameupdate_strategies
TypeResource
Idazure.fleet.update_strategies

Fields

NameDatatypeDescription
e_tagtextfield from the properties object
fleetNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
strategytextfield from the properties object
subscriptionIdtextfield from the properties object
updateStrategyNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTfleetName, resourceGroupName, subscriptionId, updateStrategyNameGet a FleetUpdateStrategy
list_by_fleetSELECTfleetName, resourceGroupName, subscriptionIdList FleetUpdateStrategy resources by Fleet
create_or_updateINSERTfleetName, resourceGroupName, subscriptionId, updateStrategyNameCreate a FleetUpdateStrategy
deleteDELETEfleetName, resourceGroupName, subscriptionId, updateStrategyNameDelete a FleetUpdateStrategy

SELECT examples

List FleetUpdateStrategy resources by Fleet

SELECT
e_tag,
fleetName,
provisioning_state,
resourceGroupName,
strategy,
subscriptionId,
updateStrategyName
FROM azure.fleet.vw_update_strategies
WHERE fleetName = '{{ fleetName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.fleet.update_strategies (
fleetName,
resourceGroupName,
subscriptionId,
updateStrategyName,
properties
)
SELECT
'{{ fleetName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ updateStrategyName }}',
'{{ properties }}'
;

DELETE example

Deletes the specified update_strategies resource.

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