az resiliency goal-assignment goal-resource

Note

This reference is part of the resiliency extension for the Azure CLI (version 2.75.0 or higher). The extension will automatically install the first time you run an az resiliency goal-assignment goal-resource command. Learn more about extensions.

Manage Goal Resource.

Commands

Name Description Type Status
az resiliency goal-assignment goal-resource list

List goal resources under a goal assignment.

Extension GA
az resiliency goal-assignment goal-resource show

Get a goal resource.

Extension GA

az resiliency goal-assignment goal-resource list

List goal resources under a goal assignment.

az resiliency goal-assignment goal-resource list --goal-assignment-name
                                                 --service-group-name
                                                 [--max-items]
                                                 [--next-token]
                                                 [--skip-token]
                                                 [--top]

Examples

GoalResources_List_MaximumSet

az resiliency goal-assignment goal-resource list --service-group-name production-sg --skip-token xntbyoswztnmvitj --top 69 --goal-assignment-name zonal-resiliency-goal

Required Parameters

--goal-assignment-name

The name of the goal assignment.

--service-group-name

The name of the service group.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--max-items

Total number of items to return in the command's output. If the total number of items available is more than the value specified, a token is provided in the command's output. To resume pagination, provide the token value in --next-token argument of a subsequent command.

Property Value
Parameter group: Pagination Arguments
--next-token

Token to specify where to start paginating. This is the token value from a previously truncated response.

Property Value
Parameter group: Pagination Arguments
--skip-token

Skip over when retrieving results.

--top

Number of elements to return when retrieving results.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az resiliency goal-assignment goal-resource show

Get a goal resource.

az resiliency goal-assignment goal-resource show --goal-assignment-name
                                                 --goal-resource-name
                                                 --service-group-name

Examples

Get a goal resource by the name returned by `az resiliency goal-assignment goal-resource list`

az resiliency goal-assignment goal-resource show --service-group-name production-sg --goal-assignment-name zonal-resiliency-goal --goal-resource-name 3f2b8c1e-7d4a-4e6b-9a1c-5d8e2f7b4c90

Required Parameters

--goal-assignment-name

The name of the goal assignment.

--goal-resource-name

The name of the goal resource.

--service-group-name

The name of the service group.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False