Set disk.EnableUUID to TRUE in your vSphere VM config parameters under:
vSphere > VM > Edit Settings > VM Options > Advanced > Configuration Parameters > Edit Configuration
Note: VM needs to be offline to add/change this k:v pair
| │ Error: creating Linux Virtual Machine "<redacted>" (Resource Group "<redacted>): compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code="InvalidParameter" Message="StorageProfile.dataDisks.lun does not have required value(s) for image specified in storage profile." Target="storageProfile" | |
| │ | |
| │ with azurerm_linux_virtual_machine.virtual_machine[0], | |
| │ on main.tf line 89, in resource "azurerm_linux_virtual_machine" "virtual_machine": | |
| │ 78: resource "azurerm_linux_virtual_machine" "virtual_machine" { |
| # Connect to both our SRM enabled vCenters | |
| Connect-VIServer <your_vcenter_server> | |
| # ^^ repeat as needed | |
| # An array to store collected data and output it to .csv at the end | |
| $Results = @() | |
| # Set an array to store our ESXi hosts and populate it with data | |
| $ESXs = @() | |
| $ESXs += Get-Cluster "some cluster name" | Get-VMhost |
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
| git rm -r --cached <dir_path>/ |