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

The following fields are returned by SELECT queries:

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".
propertiesobjectDescribes Canonical support plan type and status.
typestringMicrosoft.Addons/supportProvider

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, providerName, planTypeNameReturns 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_updateinsertsubscriptionId, providerName, planTypeNameCreates or updates the Canonical support plan of type {type} for the subscription.
deletedeletesubscriptionId, providerName, planTypeNameCancels the Canonical support plan of type {type} for the subscription.

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
planTypeNamestringThe Canonical support plan type.
providerNamestringThe support plan type. For now the only valid type is "canonical".
subscriptionIdstringSubscription credentials that uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

Returns whether or not the canonical support plan of type {type} is enabled for the subscription.

SELECT
id,
name,
properties,
type
FROM azure_extras.addons.support_plan_types
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND providerName = '{{ providerName }}' -- required
AND planTypeName = '{{ planTypeName }}' -- required
;

INSERT examples

Creates or updates the Canonical support plan of type {type} for the subscription.

INSERT INTO azure_extras.addons.support_plan_types (
subscriptionId,
providerName,
planTypeName
)
SELECT
'{{ subscriptionId }}',
'{{ providerName }}',
'{{ planTypeName }}'
RETURNING
id,
name,
properties,
type
;

DELETE examples

Cancels the Canonical support plan of type {type} for the subscription.

DELETE FROM azure_extras.addons.support_plan_types
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND providerName = '{{ providerName }}' --required
AND planTypeName = '{{ planTypeName }}' --required
;