Skip to main content

activations

Creates, updates, deletes, gets or lists an activations resource.

Overview

Nameactivations
TypeResource
Idazure_stack.azure_bridge_admin.activations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringURI of the resource.
namestringName of the resource.
locationstringLocation of the resource
propertiesobjectProperties of the resource.
tagsobjectList of key value pairs.
typestringType of resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, activationNameReturns activation name.
listselectsubscriptionId, resourceGroupNameReturns the list of activations.
create_or_updateinsertsubscriptionId, resourceGroupName, activationNameCreate a new activation.
deletedeletesubscriptionId, resourceGroupName, activationNameDelete an activation.

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
activationNamestringName of the activation.
resourceGroupNamestringThe resource group the resource is located under.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription.The subscription ID forms part of the URI for every service call.

SELECT examples

Returns activation name.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_stack.azure_bridge_admin.activations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND activationName = '{{ activationName }}' -- required
;

INSERT examples

Create a new activation.

INSERT INTO azure_stack.azure_bridge_admin.activations (
data__displayName,
data__azureRegistrationResourceIdentifier,
data__provisioningState,
data__expiration,
data__marketplaceSyndicationEnabled,
data__usageReportingEnabled,
subscriptionId,
resourceGroupName,
activationName
)
SELECT
'{{ displayName }}',
'{{ azureRegistrationResourceIdentifier }}',
'{{ provisioningState }}',
'{{ expiration }}',
{{ marketplaceSyndicationEnabled }},
{{ usageReportingEnabled }},
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ activationName }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

DELETE examples

Delete an activation.

DELETE FROM azure_stack.azure_bridge_admin.activations
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND activationName = '{{ activationName }}' --required
;