-
- Veeam Legend
- Posts: 843
- Liked: 133 times
- Joined: May 11, 2018 8:42 am
- Contact:
Find-VBRViEntity and tags
Hello,
I just discover if I use the command :
Find-VBRViEntity -name "test" -tag , the command will return all object with test name in vcenter like VM and TAG.
Shouln't it return only TAG because I specify -TAG ?
I can solve it with Find-VBRViEntity -Name "test" -Tags | where {$_.type -eq "Tag"} but I guess it should be the default behavior.
I just discover if I use the command :
Find-VBRViEntity -name "test" -tag , the command will return all object with test name in vcenter like VM and TAG.
Shouln't it return only TAG because I specify -TAG ?
I can solve it with Find-VBRViEntity -Name "test" -Tags | where {$_.type -eq "Tag"} but I guess it should be the default behavior.
-
- Veteran
- Posts: 319
- Liked: 49 times
- Joined: Apr 07, 2015 1:53 pm
- Full Name: James Wilmoth
- Location: Kannapolis, North Carolina, USA
- Contact:
Re: Find-VBRViEntity and tags
Are you including the Server parameter? Per the documentation: "To get the necessary tags of the VMware objects, you must specify the vCenter Server in the Server parameter... If you don't provide the Server parameter, the cmdlet will return tags for all servers, added to a backup infrastructure." https://helpcenter.veeam.com/docs/backu ... ml?ver=120
-
- Veeam Legend
- Posts: 843
- Liked: 133 times
- Joined: May 11, 2018 8:42 am
- Contact:
Re: Find-VBRViEntity and tags
Thanks for your answer.
The cmdlet return all object in the vcenter with "test" name.
It's working fine with or without server parameter because it's not mandatory parameter and I have only 1 vcenter in my infrastructure.
The cmdlet return all object in the vcenter with "test" name.
It's working fine with or without server parameter because it's not mandatory parameter and I have only 1 vcenter in my infrastructure.
-
- Veeam Legend
- Posts: 843
- Liked: 133 times
- Joined: May 11, 2018 8:42 am
- Contact:
Re: Find-VBRViEntity and tags
I just would like to know if it's the expected result or not ^^
-
- Veeam Software
- Posts: 2021
- Liked: 673 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Find-VBRViEntity and tags
@matteu,
What VBR version are you trying this on?
Both in 12 and 12.1 I see only tags when executing the code below:
When executing just Find-VBRViEntity -Tags, it's expected to see the whole view, which includes vCenter, tag categories, tags and vms. This scenario mirrors the UI.
Best regards,
Oleg
What VBR version are you trying this on?
Both in 12 and 12.1 I see only tags when executing the code below:
Code: Select all
Find-VBRViEntity -Name "Tag01" -Tags
Best regards,
Oleg
-
- Veeam Legend
- Posts: 843
- Liked: 133 times
- Joined: May 11, 2018 8:42 am
- Contact:
Re: Find-VBRViEntity and tags
I'm on the version 12.1.0.2131
You can look at my screenshot

You can look at my screenshot

-
- Veeam Software
- Posts: 2021
- Liked: 673 times
- Joined: Sep 25, 2019 10:32 am
- Full Name: Oleg Feoktistov
- Contact:
Re: Find-VBRViEntity and tags
Ok, I checked it further with other names (VMs, hosts etc.). Looks like it's by design as -Tags, -HostsAndClusters etc. parameters here represent views that correspond to what we have in the UI when adding an infrastructure item as a source for a job. So, in this case when -Tags parameter is used together with -Name, it will show you all the infrastructure items included in Tags view that has the name you passed, not only tag items.
Hope it helps,
Oleg
Hope it helps,
Oleg
-
- Veeam Legend
- Posts: 843
- Liked: 133 times
- Joined: May 11, 2018 8:42 am
- Contact:
Re: Find-VBRViEntity and tags
Thanks for your answer.
That means I need à pipe and where object to filter as I mentionned right ?
That means I need à pipe and where object to filter as I mentionned right ?
Who is online
Users browsing this forum: No registered users and 17 guests