Skip to main content

multiple_activation_keys

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

Overview

Namemultiple_activation_keys
TypeResource
Idazure_extras.windows_extended_security_updates.multiple_activation_keys

Fields

NameDatatypeDescription
locationstringThe geo-location where the resource lives
propertiesobjectMAK key specific properties.
tagsobjectResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTmultipleActivationKeyName, resourceGroupName, subscriptionIdGet a MAK key.
listSELECTsubscriptionIdList all Multiple Activation Keys (MAK) created for a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList all Multiple Activation Keys (MAK) in a resource group.
createINSERTmultipleActivationKeyName, resourceGroupName, subscriptionIdCreate a MAK key.
deleteDELETEmultipleActivationKeyName, resourceGroupName, subscriptionIdDelete a MAK key.
updateUPDATEmultipleActivationKeyName, resourceGroupName, subscriptionIdUpdate a MAK key.

SELECT examples

List all Multiple Activation Keys (MAK) created for a subscription.

SELECT
location,
properties,
tags
FROM azure_extras.windows_extended_security_updates.multiple_activation_keys
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.windows_extended_security_updates.multiple_activation_keys (
multipleActivationKeyName,
resourceGroupName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ multipleActivationKeyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;

UPDATE example

Updates a multiple_activation_keys resource.

/*+ update */
UPDATE azure_extras.windows_extended_security_updates.multiple_activation_keys
SET
tags = '{{ tags }}'
WHERE
multipleActivationKeyName = '{{ multipleActivationKeyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified multiple_activation_keys resource.

/*+ delete */
DELETE FROM azure_extras.windows_extended_security_updates.multiple_activation_keys
WHERE multipleActivationKeyName = '{{ multipleActivationKeyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';