ConfigMgr

VMware, Azure and Automation

Cloud Director VM compliancy

30 november 2023 Cloud Director VMware

If you create a VM in VMware Cloud Director you can choose a compute policy (T-shirt size) and/or placement policy.

With a placement policy, you can control where the VM should run. This can be useful for VMs with a specific OS (Windows) where you want to pin them on one or more specific hosts. Or for VMs that need to run at a dedicated data center.

With the compute policies you can control the configured resources but also if those resources will be reserved or not. Even if you didn’t create a compute policy there will always be a default one. However, in this default system policy, nothing is configured.

So with these policies configured, what would happen if you changed the VM from vCenter instead of Cloud Director? Simple, the VM would become non-compliant.

An example…

Consider a virtual data center (VDC) configured with some CPU and/or memory reservations and you want to get rid of those reservations. You can change this from the Allocation settings in the VDC and set the guaranteed resources to 0%. But if there were VMs already running those VMs would still have the old configured guarantees. So you go to vCenter and change the reservations to 0.

If you do this you would end up with a VM that is no longer compliant. To make the VM compliant again you can run the following PowerCLI command:

foreach ($vm in $vms) {if ($vm.ExtensionData.IsComputePolicyCompliant -eq $false) {$vm.ExtensionData.ReapplyComputePolicy()}}

Better is to avoid these compliancy warnings and never change a VM from vCenter! Always do the configuration from Cloud Director!

VCF pre-check error installing async patch

Update VxRail Manager TLS Certificate

Recent Posts

  • Using API for Aria OPS Chargeback
  • Unable to set reservation on Org VDC
  • Veeam Tweaks
  • VCF Anyone? Get your license for free…
  • Configure Entra ID as Cloud Director IdP

Recent Comments

Geen reacties om te tonen.

Archives

  • april 2025
  • maart 2025
  • november 2024
  • oktober 2024
  • januari 2024
  • november 2023
  • oktober 2023
  • september 2023
  • juni 2023
  • mei 2023
  • april 2023
  • november 2022
  • maart 2021
  • februari 2021
  • januari 2021
  • november 2020
  • oktober 2020
  • september 2020
  • juli 2020
  • juni 2020
  • april 2020
  • maart 2020
  • februari 2020
  • oktober 2019
  • september 2019
  • juli 2019
  • juni 2019
  • mei 2019
  • maart 2019
  • februari 2019
  • januari 2019
  • december 2018
  • november 2018
  • april 2018
  • januari 2018
  • juli 2017
  • juni 2017
  • mei 2017

Categories

  • AnyLinq
  • Azure
  • Cloud Director
  • ConfigMgr
  • DIY
  • HomeAssistant
  • Microsoft
  • PowerCli
  • Powershell
  • SCCM
  • Script
  • Solutions
  • System Center
  • Veeam
  • VMware
  • vRealize Automation
  • vRealize Orchestrator
Proudly powered by WordPress | Theme: Doo by ThemeVS.