multiple_activation_keys
Creates, updates, deletes, gets or lists a multiple_activation_keys
resource.
Overview
Name | multiple_activation_keys |
Type | Resource |
Id | azure_extras.windows_extended_security_updates.multiple_activation_keys |
Fields
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | MAK key specific properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | multipleActivationKeyName, resourceGroupName, subscriptionId | Get a MAK key. |
list | SELECT | subscriptionId | List all Multiple Activation Keys (MAK) created for a subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List all Multiple Activation Keys (MAK) in a resource group. |
create | INSERT | multipleActivationKeyName, resourceGroupName, subscriptionId | Create a MAK key. |
delete | DELETE | multipleActivationKeyName, resourceGroupName, subscriptionId | Delete a MAK key. |
update | UPDATE | multipleActivationKeyName, resourceGroupName, subscriptionId | Update 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: multipleActivationKey
value: string
- name: expirationDate
value: string
- name: osType
value: string
- name: supportType
value: string
- name: installedServerNumber
value: integer
- name: agreementNumber
value: string
- name: isEligible
value: boolean
- name: provisioningState
value: string
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 }}';