你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az mcc ent resource

Note

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

Microsoft Connected Cache for Enterprise resource CLI Commands.

Commands

Name Description Type Status
az mcc ent resource create

Creates a Microsoft Connected Cache for Enterprise resource with specified create parameters.

Extension GA
az mcc ent resource delete

Deletes an existing Microsoft Connected Cache for Enterprise resource.

Extension GA
az mcc ent resource list

Retrieves relevant information about all Microsoft Connected Cache for Enterprise resources under the resource group.

Extension GA
az mcc ent resource wait

Place the CLI in a waiting state until a condition is met.

Extension GA

az mcc ent resource create

Creates a Microsoft Connected Cache for Enterprise resource with specified create parameters.

az mcc ent resource create --mcc-resource-name
                           --resource-group
                           [--location]
                           [--tags]

Required Parameters

--mcc-resource-name

Name of Microsoft Connected Cache for Enterprise resource.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Optional Parameters

--location -l

Geo-location of the cache node. This should be the same as Microsoft Connected Cache for Enterprise resource. When not specified, location of Microsoft Connected Cache for Enterprise resource will be used. When not specified, the location of the resource group will be used.

--tags

Resource tags. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--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.

az mcc ent resource delete

Deletes an existing Microsoft Connected Cache for Enterprise resource.

az mcc ent resource delete [--ids]
                           [--mcc-resource-name]
                           [--resource-group]
                           [--subscription]
                           [--yes]

Examples

Delete an MCC resource

az mcc ent resource delete --mcc-resource-name MyMCCResourceName --resource-group MyResourceGroupName

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--mcc-resource-name

Name of Microsoft Connected Cache for Enterprise resource.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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

--yes -y

Do not prompt for confirmation.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--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.

az mcc ent resource list

Retrieves relevant information about all Microsoft Connected Cache for Enterprise resources under the resource group.

az mcc ent resource list [--max-items]
                         [--next-token]
                         [--resource-group]

Optional Parameters

--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.

--next-token

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

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--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.

az mcc ent resource wait

Place the CLI in a waiting state until a condition is met.

az mcc ent resource wait [--created]
                         [--custom]
                         [--deleted]
                         [--exists]
                         [--ids]
                         [--interval]
                         [--mcc-resource-name]
                         [--resource-group]
                         [--subscription]
                         [--timeout]
                         [--updated]

Optional Parameters

--created

Wait until created with 'provisioningState' at 'Succeeded'.

Default value: False
--custom

Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].

--deleted

Wait until deleted.

Default value: False
--exists

Wait until the resource exists.

Default value: False
--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--interval

Polling interval in seconds.

Default value: 30
--mcc-resource-name

Name of Microsoft Connected Cache for Enterprise resource.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

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

--timeout

Maximum wait in seconds.

Default value: 3600
--updated

Wait until updated with provisioningState at 'Succeeded'.

Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--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.