Microsoft Azure Microsoft Azure: Management - Resource Groups

Summary

This module contains actions for viewing Azure resource groups.

Actions

azure.mgmt.resource_groups.

get_all

Get all resource groups.

Minimum Plugin Version: 1.1.0

Input
  • azure_client: an AzureClient dictionary

  • subscription_id: the subscription ID

Output

A list of ResourceGroup dictionaries.

Example
1
2
3
4
5
- azure.mgmt.groups.get_all:
  load:
    azure_client: azure_secrets
    subscription_id: subscription_id
  save: all_groups

azure.mgmt.resource_groups.

input_table

Display a list of resource groups in a table, & allow the task operator to make a selection.

The table will have the following columns:

  • Name
  • Location
  • Tags

Minimum Plugin Version: 1.1.0

Input
  • text: the title of the table

  • groups: a list of ResourceGroup dictionaries to display in the table

  • minimum: The minimum number of acceptable selections (Optional)

  • maximum: The maximum number of acceptable selections (Optional)

Output

A list of ResourceGroup dictionaries.

Tip
  • If neither a minimum or maximum is provided, the task operator will be able to submit 0 selections.

  • If minimum or maximum are provided, the operation will repeat until a valid number of selections is made.

Example

Finding groups with get_all, saving them as all_groups, & waiting for a single selection:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
- azure.mgmt.groups.get_all:
  load:
    subscription_id: subscription_id
    azure_client: azure_secrets
  save: all_groups

- azure.mgmt.groups.input_table:
    text: Choose a resource group
    minimum: 1
    maximum: 1
  load:
    groups: all_groups
  save: selected_groups