What is the certification Path after VMware Cloud Foundation Training or which VMware certificate require VCF training
thanks
raj
What is the certification Path after VMware Cloud Foundation Training or which VMware certificate require VCF training
thanks
raj
Thanks for the info VentziP. It didn't quite work for me when I did it in the VAMI interface but it did give me the idea to check it elsewhere. I logged into the shell and checked the update repo there and it was still stuck on the 6.5 repo! I reset it to Default and then it was all good. *edit* later realised that I was probably updating the wrong VAMI interface
Command> update.get
Config:
Currenturl: https://vapp-updates.vmware.com/vai-catalog/valm/vmw/8d167796-34d5-4899-be0a-6daade4005a3/6.5.0.5600.latest/
Username: ''
Time: 00:00:00
Latestupdatequerytime: ''
Password: ''
Checkupdates: disabled
Latestupdateinstalltime: ''
Day: Everyday
Command> update.set --currentURL "default"
Command>
Command> update.get
Config:
Username: ''
Time: 00:00:00
Latestupdatequerytime: ''
Password: ''
Checkupdates: disabled
Latestupdateinstalltime: ''
Day: Everyday
"The vCenter Server appliance build number does not match with the vCenter Server appliance configured in the update repository."
I know this is not related to actual powercli question. If any one can answer it could be more helpful. There is no official vRA module yet. I don't why vMware not giving much love to its vRA product!
Here is the requirement. I have written the below script to check ThinProvision property is available to blueprint or not. Till this extend I can get the report correctly.
Once I get the list of blueprints which doesn't contains ThinProvision property then I need to add the property to that blueprint. However I don't find any rest method to add custom property to the blueprints in vRA 7.6 API documentation.
So my question - Is it possible to add custom property(ThinProvision) to blueprints using restmethods. If yes pls give me an example.
$cred=Get-Credential $allorgs='','' foreach($org in $allorgs){ $vra_server='' $identityRequest = @{ "username"= $cred.UserName "password"=$cred.GetNetworkCredential().password "tenant"=$org } $json = $identityRequest | ConvertTo-Json $headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]" $headers.Add("Accept", 'application/json') $response = Invoke-RestMethod "https://$($vra_Server)/identity/api/tokens" -Headers $headers -Method Post -Body $json -ContentType 'application/json' $token = $response.ID $restHeaders = @{"Content-Type"="application/json";"Authorization"="Bearer $token"} $uri="https://$($vra_Server)/catalog-service/api/consumer/catalogItems" $CatalogItem=Invoke-RestMethod -Method Get -Uri $uri -Headers $restHeaders foreach($singlecatalogid in $CatalogItem.content){ $uri1="https://$($vra_Server)/catalog-service/api/consumer/entitledCatalogItems/$($singlecatalogid.id)/requests/schema" $CatalogItemschema=Invoke-RestMethod -Method Get -Uri $uri1 -Headers $restHeaders $VirtualMachinethin=$CatalogItemschema.fields.datatype.schema.fields |Where-Object{$_.id -match 'VirtualMachine.Admin.ThinProvision'} if(-not $VirtualMachinethin){ $VirtualMachinethin="ThinProvision Property not added" } else { $VirtualMachinethin="ThinProvision Property added" } New-Object PSObject -Property ( [ordered]@{ TenantName = $org BluePrint = $singlecatalogid.name ThinProvisionPropertystatus = $VirtualMachinethin }) } }
A RegEx expression, which is used on the right side operand in a -match/-notmatch expression, can use the RegEx or symbol ('|')
Something like this
$creds=Get-VICredentialStoreItem-file "C:\Vmware script\pass.cred"
#Connect to the vCenter server defined above. Ignore certificate errors
connect-viserver$vcenter-User $creds.User-Password $creds.Password-WarningAction 0
$excludeNamesRegEx="donotdelete|donttouch|stayaway"
Clear-Host
Get-VM|Get-Snapshot|
Where{$_.Created-lt(Get-Date).AddDays(-5)-and$_.Name-notmatch$excludeNamesRegEx}|
Remove-Snapshot-Confirm:$false
Hi Tom,
If the VM is powered off prior the event, it is not powered on in case of an HA event!
Cheers
N
Our ESXi hosts recently got locked out. Is there any powercli to know the current status of ROOT account if its locked or failed logon attempts.
Dear All,
How we can enable cpu masking for a vm in vcenter 7
Hi Shreyskar,
The Horizon and agent versions are 7.10
When i schedule a Recompose task, the disconnected machines are forcibly log off after 6-8 hours.
Until yesterday I had the "Forcibly disconnect users" setting on the Global Admin page set to 20 hours (by minutes) and I saw yesterday on the connection server logs a value that called: "LogOffAfterDisconnectTimeout=1200".
This is the exact amount of time that was configured on the Global Admin page I've mentioned.
From what I understand from this value is that a log off process is happening after 20 hours and not disconnect as I understand from the Global Admin.
This is very confusing setting. Something is wrong here I think.
Yesterday I've changed the "Forcibly disconnect users" setting to Never and I recomposed again. I'll check on Sunday if there is any change for good.
Thanks.
No, your VMs would be in the same power state after the event as they were before - a powered off VM won’t “restart” as it wasn’t “started” at the time.
Hi,
I Have a vCenter Server with 2 different datacenters. Each datacenter contains a cluster. I want to move a VM (vMotion) a VM from the cluster in datacenter 1 to the cluster in datacenter 2.
The VM is using the same storage and network.
When using the move-vm command I've got the following error:
$datacenenter = Get-datacenter -name 'dc02'
Move-VM -VM 'TEST' -Destination 'esxi01.network.local' -InventoryLocation $datacenter Move-VM : 5/28/2020 8:04:26 AM Move-VM Could not obtain the result of task '/VIServer=@lvmvc001:443/Task=Task-task-64416/'. Task name is 'RelocateVM_Task'. The following error occured: Unexpected error occured. Cannot convert type 'DatacenterMismatchArgument' to 'Object'. At line:1 char:1 + Move-VM -VM 'TEST1' -Destination 'esxi01.network.local' -Inve ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Move-VM], VimException + FullyQualifiedErrorId : ViCore_TaskCoreService_ConvertTaskResult_Failed,VMware.VimAutomation.ViCore.Cmdlets.Commands.MoveVM
Does anybody knows what is wrong?
This is the relevant area of the documentation: CPU Compatibility and EVC
You can query the events (provided you keep them for sufficiently long).
The event should say when it happened and for how long the account will be locked.
Get-VIEvent-Entity $esx-Start (Get-Date).AddMinutes(-15)-MaxSamples ([int]::MaxValue)|
where{$_-is[VMware.Vim.EventEx]-and$_.EventTypeId-eq'esx.audit.account.locked'}
I think a Datacenter is not a valid value for the Location parameter.
Afaik, the Destination accepts a VMHost, a Cluster, or a ResourcePool.
I‘m not aware of any VCF certification. There might be a VTSP for partners, but nothing for end users.
What training did you take?
I'm afraid that you cannot add the v5.5. host to vCenter 6.7 ( see VMware Product Interoperability Matrices).
Although in some cases "not supported" may not necessarily mean that something doesn't work,but in this it looks like this.
André
Hi everyone,
We have a Vsphere Essentials 6.7 license and 3 hosts (2 CPU each) - VCS6-ESSL-C (vCenter 1 instance) and VS6-ESSL-C - for 6 CPUs.
We have added two of the hosts without issues but when adding the third host and assigning the license we get an error:
"License not available to perform the operation.
The VMware vSphere 6 Essentials license for "Host" 89.252.241.75 does not include "vSphere vMotion". Upgrade the license."
We never licensed vMotion nor we use it. The three hosts are identical from software point of view:
Client version: 1.33.4
Client build number: 14093553
ESXi version: 6.7.0
ESXi build number: 15160138
Another thing I tried is to assign the license manually through the ESXi interface (by providing the key) and then to readd the host. This time when adding the host it recognized that the license is already installed but again got the same error.
How do we get around this? We dont need, use or licensed vMotion and I dont understand why it is coming up at all... Initially the hosts had the Evaluation license (it hasnt expired) and I know it includes vMotion but it worked for the other two hosts.
Thank you
I've got the same error when only using the -destination parameter. The host specified is in the other datacenter and cluster in the same vCenter.
get-vm -name 'test' | move-vm -destination 'esxi01.lab.local' move-vm : 5/28/2020 8:38:52 AM Move-VM Could not obtain the result of task '/VIServer=7@lvmvc001:443/Task=Task-task-64426/'. Task name is 'RelocateVM_Task'. The following error occured: Unexpected error occured. Cannot convert type 'DatacenterMismatchArgument' to 'Object'. At line:1 char:31 + ... m -name 'LADMINWEB001' | move-vm -destination 'esxi01.lab.local' + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Move-VM], VimException + FullyQualifiedErrorId : ViCore_TaskCoreService_ConvertTaskResult_Failed,VMware.VimAutomation.ViCore.Cmdlets.Comm ands.MoveVM
Do you have configured vMotion by accident? If so please unconfigure it because you cant apply or downgrades licenses when features are enabled/configured.
Regards,
Joerg
Can you check if the RelocateVM method works?
$tgtDatacenter="<target-datacenter>"
$tgtDatastore="<target-datastore>"
$tgtVMHost="esxi01.lab.local"
$tgtPool="<target-resourcepool>"
$vm=Get-VM-Name $vmName
$dc=Get-Datacenter-Name $tgtDatacenter
$ds=Get-Datastore-Name $tgtDatastore-Location $dc
$esx=Get-VMHost-Name $tgtVMHost-Location $dc
$rp=Get-ResourcePool-Name $tgtPool-Location $dc
$spec=New-Object VMware.Vim.VirtualMachineRelocateSpec
$spec.Datastore=$ds.ExtensionData.MoRef
$spec.Host=$esx.ExtensionData.MoRef
$spec.Pool=$rp.ExtensionData.MoRef
$vm.ExtensionData.RelocateVM($spec,"defaultPriority")