Skip to main content

support_plan_types

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

Overview

Namesupport_plan_types
TypeResource
Idazure_extras.addons.support_plan_types

Fields

NameDatatypeDescription
idstringThe id of the ARM resource, e.g. "/subscriptions/{id}/providers/Microsoft.Addons/supportProvider/{supportProviderName}/supportPlanTypes/{planTypeName}".
namestringThe name of the Canonical support plan, i.e. "essential", "standard" or "advanced".
planTypeNametextfield from the properties object
providerNametextfield from the properties object
provisioning_statetextfield from the properties object
subscriptionIdtextfield from the properties object
typestringMicrosoft.Addons/supportProvider

Methods

NameAccessible byRequired ParamsDescription
getSELECTplanTypeName, providerName, subscriptionIdReturns whether or not the canonical support plan of type {type} is enabled for the subscription.
list_infoSELECTsubscriptionIdReturns the canonical support plan information for all types for the subscription.
create_or_updateINSERTplanTypeName, providerName, subscriptionIdCreates or updates the Canonical support plan of type {type} for the subscription.
deleteDELETEplanTypeName, providerName, subscriptionIdCancels the Canonical support plan of type {type} for the subscription.

SELECT examples

Returns the canonical support plan information for all types for the subscription.

SELECT
id,
name,
planTypeName,
providerName,
provisioning_state,
subscriptionId,
type
FROM azure_extras.addons.vw_support_plan_types
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.addons.support_plan_types (
planTypeName,
providerName,
subscriptionId
)
SELECT
'{{ planTypeName }}',
'{{ providerName }}',
'{{ subscriptionId }}'
;

DELETE example

Deletes the specified support_plan_types resource.

/*+ delete */
DELETE FROM azure_extras.addons.support_plan_types
WHERE planTypeName = '{{ planTypeName }}'
AND providerName = '{{ providerName }}'
AND subscriptionId = '{{ subscriptionId }}';