PowerShell script exchange
Post Reply
esir
Novice
Posts: 8
Liked: never
Joined: Mar 29, 2019 2:52 pm
Full Name: Esir Kings
Contact:

Find-VBRViEntity not returning any vm

Post by esir »

I am new to Veeam backup and I have a small issue. Get-VBRServer -Name "maryland" returns a host. Running Find-VBRViEntity on this, however, no vm is returned. Any ideas why??
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Find-VBRViEntity not returning any vm

Post by veremin »

Can you provide the exact script, so we can double check the code? By the way, are those hosts for which you're trying to get VMs are added to backup console? Thanks!
esir
Novice
Posts: 8
Liked: never
Joined: Mar 29, 2019 2:52 pm
Full Name: Esir Kings
Contact:

Re: Find-VBRViEntity not returning any vm

Post by esir »

Thanks for the response.
Find-VBRViEntity is the script that I have but it returns nothing. I am not sure about the backup console part.
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Find-VBRViEntity not returning any vm

Post by veremin »

You need to get ESXi host or vCenter server VMs (you want to query) reside on. Then, pass it Find-VBRViEntity cmdlet.

Code: Select all

Asnp VeeamPSSnapin
$Server = Get-VBRServer -name "Name of your host/vCenter"
Find-VBRViEntity -Server $Server
Host or vCenter server needs to be added to the backup server first.

Thanks!
esir
Novice
Posts: 8
Liked: never
Joined: Mar 29, 2019 2:52 pm
Full Name: Esir Kings
Contact:

Re: Find-VBRViEntity not returning any vm

Post by esir »

Thanks for this.
veremin
Product Manager
Posts: 20415
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Find-VBRViEntity not returning any vm

Post by veremin »

Has it helped or the issue persists? Thanks!
esir
Novice
Posts: 8
Liked: never
Joined: Mar 29, 2019 2:52 pm
Full Name: Esir Kings
Contact:

Re: Find-VBRViEntity not returning any vm

Post by esir »

it has helped.
Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests