states.azurerm.managementgroup.operations¶
Azure Resource Manager (ARM) Management Group State Module
New in version 2.0.0.
Changed in version 4.0.0.
maintainer: | |
---|---|
configuration: | This module requires Azure Resource Manager credentials to be passed via acct. Note that the authentication parameters are case sensitive. Required provider parameters:
Optional provider parameters: cloud_environment: Used to point the cloud driver to different API endpoints, such as Azure GovCloud. Possible values:
Example acct setup for Azure Resource Manager authentication: azurerm:
default:
subscription_id: 3287abc8-f98a-c678-3bde-326766fd3617
tenant: ABCDEFAB-1234-ABCD-1234-ABCDEFABCDEF
client_id: ABCDEFAB-1234-ABCD-1234-ABCDEFABCDEF
secret: XXXXXXXXXXXXXXXXXXXXXXXX
cloud_environment: AZURE_PUBLIC_CLOUD
user_pass_auth:
subscription_id: 3287abc8-f98a-c678-3bde-326766fd3617
username: fletch
password: 123pass
The authentication parameters can also be passed as a dictionary of keyword arguments to the |
-
idem_azurerm.states.azurerm.managementgroup.operations.
absent
(hub, ctx, name, connection_auth=None, **kwargs)¶ New in version 2.0.0.
Ensure a specified management group does not exist.
Parameters: - name – The ID of the Management Group. For example, 00000000-0000-0000-0000-000000000000.
- connection_auth – A dict with subscription and authentication parameters to be used in connecting to the Azure Resource Manager API.
Example usage:
Ensure management group absent: azurerm.managementgroup.operations.absent: - name: test_group
-
idem_azurerm.states.azurerm.managementgroup.operations.
present
(hub, ctx, name, display_name=None, parent=None, connection_auth=None, **kwargs)¶ New in version 2.0.0.
Changed in version 4.0.0.
Ensures that the specified management group is present.
Parameters: - name – The ID of the Management Group. For example, 00000000-0000-0000-0000-000000000000.
- display_name – The friendly name of the management group. If no value is passed then this field will be set to the name of the management group.
- parent – The fully qualified ID for the parent management group. For example, /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000.
- connection_auth – A dict with subscription and authentication parameters to be used in connecting to the Azure Resource Manager API.
Example usage:
Ensure management group exists: azurerm.managementgroup.operations.present: - name: my_mgroup