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

The following fields are returned by SELECT queries:

Azure operation completed successfully.

NameDatatypeDescription
eTagstringIf eTag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
propertiesobjectThe resource-specific properties for this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, fleetName, updateStrategyNameGet a FleetUpdateStrategy
list_by_fleetselectsubscriptionId, resourceGroupName, fleetNameList FleetUpdateStrategy resources by Fleet
create_or_updateinsertsubscriptionId, resourceGroupName, fleetName, updateStrategyNameIf-Match, If-None-MatchCreate a FleetUpdateStrategy
deletedeletesubscriptionId, resourceGroupName, fleetName, updateStrategyNameIf-MatchDelete a FleetUpdateStrategy

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 Fleet resource.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstringThe ID of the target subscription.
updateStrategyNamestringThe name of the UpdateStrategy resource.
If-MatchstringThe request should only proceed if an entity matches this string.
If-None-MatchstringThe request should only proceed if no entity matches this string.

SELECT examples

Get a FleetUpdateStrategy

SELECT
eTag,
properties
FROM azure.fleet.update_strategies
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND fleetName = '{{ fleetName }}' -- required
AND updateStrategyName = '{{ updateStrategyName }}' -- required
;

INSERT examples

Create a FleetUpdateStrategy

INSERT INTO azure.fleet.update_strategies (
data__properties,
subscriptionId,
resourceGroupName,
fleetName,
updateStrategyName,
If-Match,
If-None-Match
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ fleetName }}',
'{{ updateStrategyName }}',
'{{ If-Match }}',
'{{ If-None-Match }}'
RETURNING
eTag,
properties
;

DELETE examples

Delete a FleetUpdateStrategy

DELETE FROM azure.fleet.update_strategies
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND fleetName = '{{ fleetName }}' --required
AND updateStrategyName = '{{ updateStrategyName }}' --required
AND If-Match = '{{ If-Match }}'
;