VMware Cloud Community
cn_mweber
Contributor
Contributor

Bug on getting CIVAPP from CIVM if VApp Name has "+"-sign in Name

Today I found a bug - If a VAPP has a "+"-sign in his name - PowerCLI cannot find it.

For Example:

VAPP: "DMZ+TEST" with VM "Server1"

 

Failed: (Get-CIVM "Server1").VApp - this is null
Failed: Get-CIVApp "DMZ+TEST" - this is null

Work: Get-CIVApp "DMZ*TEST" - This returns the correct VApp
Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership

Did you try single quotes?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
cn_mweber
Contributor
Contributor

Yes, and it did also not Work.

Note that also the VApp Property ( (Get-CIVM Test1).VApp ) a CIVM is also in this cases...

Tags (1)
Reply
0 Kudos