az vmware placement-policy vm-host
Note
This reference is part of the vmware extension for the Azure CLI (version 2.11.0 or higher). The extension will automatically install the first time you run an az vmware placement-policy vm-host command. Learn more about extensions.
Commands to manage VM Host placement policies.
Commands
| az vmware placement-policy vm-host create |
Create a VM Host placement policy in a private cloud cluster. |
| az vmware placement-policy vm-host delete |
Delete a VM Host placement policy in a private cloud cluster. |
| az vmware placement-policy vm-host update |
Update a VM Host placement policy in a private cloud cluster. |
az vmware placement-policy vm-host create
Create a VM Host placement policy in a private cloud cluster.
az vmware placement-policy vm-host create --cluster-name
--placement-policy-name
--private-cloud
--resource-group
[--affinity-type]
[--display-name]
[--host-members]
[--state]
[--vm-members]
Examples
Create a VM Host placement policy.
az vmware placement-policy vm-host create --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --placement-policy-name policy1 --state Enabled --display-name policy1 --vm-members /subscriptions/subId/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128 /subscriptions/subId/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256 --host-members fakehost22.nyc1.kubernetes.center fakehost23.nyc1.kubernetes.center --affinity-type AntiAffinity
Required Parameters
Name of the cluster in the private cloud.
Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.
Name of the private cloud.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Placement policy affinity type.
Display name of the placement policy.
Host members list.
Whether the placement policy is enabled or disabled.
Virtual machine members list.
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 vmware placement-policy vm-host delete
Delete a VM Host placement policy in a private cloud cluster.
az vmware placement-policy vm-host delete --cluster-name
--placement-policy-name
--private-cloud
--resource-group
[--yes]
Examples
Delete a VM Host placement policy.
az vmware placement-policy vm-host delete --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --placement-policy-name policy1
Required Parameters
Name of the cluster in the private cloud.
Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.
Name of the private cloud.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Delete without confirmation.
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 vmware placement-policy vm-host update
Update a VM Host placement policy in a private cloud cluster.
az vmware placement-policy vm-host update --cluster-name
--placement-policy-name
--private-cloud
--resource-group
[--host-members]
[--state]
[--vm-members]
Examples
Update a VM Host placement policy.
az vmware placement-policy vm-host update --resource-group group1 --private-cloud cloud1 --cluster-name cluster1 --placement-policy-name policy1 --state Enabled --vm-members /subscriptions/subId/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-128 /subscriptions/subId/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/clusters/cluster1/virtualMachines/vm-256 --host-members fakehost22.nyc1.kubernetes.center fakehost23.nyc1.kubernetes.center
Required Parameters
Name of the cluster in the private cloud.
Name of the VMware vSphere Distributed Resource Scheduler (DRS) placement policy.
Name of the private cloud.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
Host members list.
Whether the placement policy is enabled or disabled.
Virtual machine members list.
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.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ