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

The following fields are returned by SELECT queries:

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. (title: Properties)
typestringThe type of the resource. For example, Microsoft.Management/managementGroups/settings.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectgroupIdGets all the hierarchy settings defined at the Management Group level. Settings can only be set on the root Management Group of the hierarchy.
getselectgroupIdGets 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.
updateupdategroupIdUpdates the hierarchy settings defined at the Management Group level.
deletedeletegroupIdDeletes the hierarchy settings defined at the Management Group level.

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
groupIdstringManagement Group ID.

SELECT examples

Gets all 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 }}' -- required
;

INSERT examples

Creates or updates the hierarchy settings defined at the Management Group level.

INSERT INTO azure.management_groups.hierarchy_settings (
data__properties,
groupId
)
SELECT
'{{ properties }}',
'{{ groupId }}'
RETURNING
id,
name,
properties,
type
;

UPDATE examples

Updates the hierarchy settings defined at the Management Group level.

UPDATE azure.management_groups.hierarchy_settings
SET
data__properties = '{{ properties }}'
WHERE
groupId = '{{ groupId }}' --required
RETURNING
id,
name,
properties,
type;

DELETE examples

Deletes the hierarchy settings defined at the Management Group level.

DELETE FROM azure.management_groups.hierarchy_settings
WHERE groupId = '{{ groupId }}' --required
;