az connectedvmware vm-template
Note
This reference is part of the connectedvmware extension for the Azure CLI (version 2.0.67 or higher). The extension will automatically install the first time you run an az connectedvmware vm-template command. Learn more about extensions.
Vm template resource.
Commands
Name | Description | Type | Status |
---|---|---|---|
az connectedvmware vm-template create |
Create vm template resource. |
Extension | GA |
az connectedvmware vm-template delete |
Delete vm template resource. |
Extension | GA |
az connectedvmware vm-template list |
Retrieve a list of vm template of given resource group. |
Extension | GA |
az connectedvmware vm-template show |
Get details of a vm template by id, resource-group, reource pool name or subscription. |
Extension | GA |
az connectedvmware vm-template create
Create vm template resource.
az connectedvmware vm-template create --custom-location
--inventory-item
--location
--name
--resource-group
--vcenter
[--no-wait]
[--tags]
Examples
Create vm template
az connectedvmware vm-template create --custom-location "custom location name" --location "location name" --inventory-item "name or id the inventory item" --name "vm template name" --resource-group "resource group name" --vcenter "name or id of the vcenter"
Required Parameters
Name or ID of the custom location that will manage this resource.
Name or ID of the inventory item.
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
Name of the resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of the vCenter that is managing this resource.
Optional Parameters
Do not wait for the long-running operation to finish.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az connectedvmware vm-template delete
Delete vm template resource.
az connectedvmware vm-template delete [--force]
[--ids]
[--name]
[--no-wait]
[--resource-group]
[--subscription]
[--yes]
Examples
Delete virtual template
az connectedvmware vm-template delete --ids "resource id" --name "vm template name" --resource-group "resource group name" --subscription "Name or ID of subscription"
Optional Parameters
Whether force delete or not.
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.
Name of the resource.
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Do not prompt for confirmation.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az connectedvmware vm-template list
Retrieve a list of vm template of given resource group.
az connectedvmware vm-template list [--resource-group]
Examples
Retrieve a list of vm template resource
az connectedvmware vm-template list --resource-group "resource group name"
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az connectedvmware vm-template show
Get details of a vm template by id, resource-group, reource pool name or subscription.
az connectedvmware vm-template show [--ids]
[--name]
[--resource-group]
[--subscription]
Examples
Get details of a vm template
az connectedvmware vm-template show --ids "resource id" --name "vm template name" --resource-group "resource group name" --subscription "Name or ID of subscription"
Optional Parameters
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.
Name of the resource.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
Azure CLI