Skip to main content

hierarchy_settings

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

Overview

Namehierarchy_settings
TypeResource
Idazure.management_groups.hierarchy_settings

Fields

NameDatatypeDescription
idstringThe fully qualified ID for the settings object. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/settings/default.
namestringThe name of the object. In this case, default.
propertiesobjectThe generic properties of hierarchy settings.
typestringThe type of the resource. For example, Microsoft.Management/managementGroups/settings.

Methods

NameAccessible byRequired ParamsDescription
getSELECTgroupIdGets the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy.
listSELECTgroupIdGets all the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy.
create_or_updateINSERTgroupIdCreates or updates the hierarchy settings defined at the Management Group level.
deleteDELETEgroupIdDeletes the hierarchy settings defined at the Management Group level.
updateUPDATEgroupIdUpdates the hierarchy settings defined at the Management Group level.

SELECT examples

Gets the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy.

SELECT
id,
name,
properties,
type
FROM azure.management_groups.hierarchy_settings
WHERE groupId = '{{ groupId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.management_groups.hierarchy_settings (
groupId,
properties
)
SELECT
'{{ groupId }}',
'{{ properties }}'
;

UPDATE example

Updates a hierarchy_settings resource.

/*+ update */
UPDATE azure.management_groups.hierarchy_settings
SET
properties = '{{ properties }}'
WHERE
groupId = '{{ groupId }}';

DELETE example

Deletes the specified hierarchy_settings resource.

/*+ delete */
DELETE FROM azure.management_groups.hierarchy_settings
WHERE groupId = '{{ groupId }}';