Horizon View API – Query Service

Whilst working on my Horizon View API page, trying to figure out which API calls return the data that you can see in the Horizon Administrator Console, it soon became clear that the API Query Service is used to collect a lot of the data seen within the UI. The way I managed to figure this was by analyzing a Horizon View Example Desktop Script created by Alan Renouf. So I’m going to try and document how to use the Query Service here so that other can use begin to use this really powerful tool.

Hopefully, this will be useful to you. If you have any questions, please either comment below or contact me directly. I will update this page as I learn more.

  • There are few commands that we need to execute to enable the query service, I believe that these three commands will remain the same regardless of what query you are trying to run.
C:\> $ViewAPI = $global:DefaultHVServers[0].ExtensionData
C:\> $query_service = New-Object "Vmware.Hv.QueryServiceService"
C:\> $query = New-Object "Vmware.Hv.QueryDefinition"

  • The next command needs to be modified depending on the data you are trying to capture. You can define the ‘queryEntityType‘ with any of the Queryable Data Objects.
C:\> $query.queryEntityType = 'DesktopSummaryView'

  • Once the Data Object has been defined we can now run the following command. The variable name $Pool can be changed to reflect the data you are collecting.
C:\> $Pools = $query_service.QueryService_Query($ViewAPI,$query)

  • Now we have the Variable defined we can start to find the data we need. In this example, I am looking to get a list Pools. Do get this information I can run the following:

Read the rest of this entry »

Using The Windows Photon Controller CLI For The First Time

vmware-photon-controllerWhen managing VMware’s Photon Controller, you can either manage it via the new management UI or via the CLI. Personally, I am a ‘mouse’ type of guy so I often prefer to use the UI’s were possible. However, occasionally we have to use CLI’s from time to time. When I tried to download and install the Windows Photon Controller CLI (A.K.A. Photon Command-Line Utility) for the first time, it wasn’t as obvious as it probably should have been. Doing a quick Google, didn’t return anything useful. So I thought I’d create a quick post detailing how to use the Windows Photon Controller CLI to connect to your Photon Controllers.

  • Download the Windows Photon Controller CLI 
    • Make sure you download the correct version based on the version of Photon Controller you installed. So if you installed Photon Controller 1.0.0, download the CLI from that section.
    • Once you’ve downloaded the file, do not attempt to install it. It’s not designed to be installed.
  • Place the .exe file somewhere that you will easily remember. For me it was just simply C:\photon. It might also be worth renaming the .exe to photon.exe if it isn’t already, just for simplicity.
  • Open up your favorite Windows Command-Line utility. This could be CMD. I use Powershell as I find it a little more user-friendly than the native Windows CMD (although Window10 version is a lot nicer).
  • Navigate to the location where you placed the photon.exe.

 

C:\Users\Simon> cd c:\photon
C:\photon> dir

       Directory C:\photon

Mode           LastWriteTime     Length  Name
-----          -------------     ------  ----
-a---     11/30/2016 4:06 PM   11618304  photon.exe

C:\photon>
  • Next you’ll need to run the following command to connect to your Photon Controller

 

C:\photon> .\photon.exe target set http://[PhotonControllerURL] -c
API target set to 'http://[PhotonControllerURL]
C:\photon>
  • Now enter the username and password used to authenticate to your Photon Controller

 

C:\photon> .\photon.exe target login -u admin@MYDOMAIN -p MYPASSWORD 
Token stored in config file
C:\photon>

You are now connected to your Photon Controller! You can run all of the Photon CLI commands that are available. Try the following to show more information about your Photon deployment

C:\photon> .\photon.exe deployment list

I hope this helps someone 🙂

Checkout VMware’s Latest EUC Product Releases

vmware_horizon_viewThis week VMware released some EUC focused product updates that I think you will be interested in. I’ve gone through and picked my top 3 features for each release. All three product updates should now be available via the VMware Downloads portal.

Horizon 7.0.3

My top 3 release highlights:

  1. Horizon PowerCLI – Now you can use PowerCLI to pretty much do anything you can via Horizon Administrator. (Getting started with PowerCLI 6.5 and Horizon View)
  2. Support for Horizon and vCenter 6.5 HA
  3. Additional Windows 10 support

Release Notes: http://pubs.vmware.com/Release_Notes/en/horizon-7-view/horizon-703-view-release-notes.html
Release Blog Post: http://blogs.vmware.com/euc/2016/12/horizon-7-0-3-horizon-client-4-3-windows-10-management.html

Horizon Client 4.3

My top 3 release highlights:

  1. 30% Blast Extreme bandwidth reductions ‘out of the box’ – Similar to the optimizations VMware made to the default PCoIP configuration a few years ago, we have optimized the Blast Extreme protocol for the masses. However, you are still free to change the GPO settings should you so wish.
  2. Blast Extreme (H.264 decoding) with Multi-Monitor support
  3. The ability to select which monitor on which to display your virtual desktop session

Release Notes: http://pubs.vmware.com/Release_Notes/en/horizon-client/horizon-client-windows-43-release-notes.html

App Volumes 2.12

My top 3 release highlights:

  1. Improved Active Directory Integration – You can now add multiple AD domain controllers into App Volumes Manager. This is something I’ve been pushing for internally. If you don’t use load-balancers in your environment, you were only able to add in a single Domain controller which became a SPOF.
  2. Improved login & application launch performance – 30% to 50% decrease in login times.
  3. Office 365 (Office 2016) support through AppStacks

Release Notes: http://pubs.vmware.com/Release_Notes/en/appvolumes/2.12/app-volumes-212-release-notes.html
Release Blog Post: http://blogs.vmware.com/euc/2016/12/introducing-app-volumes-2-12.html

Service Level Agreements – Introduction

service_level_agreementSince joining VMware’s internal private cloud provider team and also in my role as a VCDX panelist, I’ve been involved in many conversations around Service Level Agreements (SLA). It soon became apparent that SLA’s are regularly misunderstood, miscalculated and often extremely complicated to define and monitor successfully. So I’ve set myself a challenge to find out more and articulate that back to my readers to share the knowledge.

I’ll be splitting out series of posts on this subject into serval parts. right now, I’m not sure how many parts there will be as I have a feeling the more I dig into the details, the more I’ll uncover more things to talk about. Here are some of the topics that I already know will be covered.

  • Defining a Service Level Agreement
  • Typical Service Level Agreements
    • Availability
    • Performance
    • Recoverability etc
  • How Service Level Agreements are calculated
    • Uptime
    • Login times, Access to CPU/MEM resources
    • RTO/RPO
  • How Service Level Agreements are Monitored/Reported
  • Multiple Service Level Agreements per Environment?
    • Data plane
    • Controle Plane
  • Failing to meet the Service Level Agreement

Can you think of anything else? If so, please add them to the comments below or email me and I’ll make sure they are included

Common VCDX Mistakes: Don’t Believe Everything You Read

Continuing on with my Common VCDX Mistakes posts I have another one for you. However, This is more an overall piece of advice.

Don’t Believe Everything You Read

Over the years I’ve seen many VCDX Defense related blog posts and tweets recommending/stating things that maybe aren’t completely accurate. Then in the coming months, we start to see these inaccurate recommendations appear in the VCDX Defenses. This can be anything from low-level configurations in the design to including a specific bullet point in the slide deck.

Just like this blog post, they are just someone’s opinions. Everything you read should be thought about before you actually act on it. If you get a recommendation to do XYZ, ask yourself, “why should I be doing this? Does it make sense?”. Don’t just blindly add it into your defence.

This also goes back to my previous post: Common VCDX Mistakes: A M P R S

Everyone is different and has their own individual ways of working with customers. Do what works for you as an architect, not what you think the panel wants to see.

As usual, these are my own thoughts, and may not be shared by other VCDX panelists. If you are interested in my thoughts, you can either subscribe to my blog or follow me on Twitter to keep an eye out for new posts.

Feel free to discuss in the comment section below.

Common VCDX Mistakes: A M P R S

Continuing on with my Common VCDX Mistakes posts I have another one for you.

I need you to ask yourself a question. When you are working with customers, how many times do you write the following on a whiteboard?

vcdxrcar

Read the rest of this entry »

Common VCDX Mistakes: What SLA?

Continuing on from yesterday’s post: Common VCDX Mistakes: A02: Enough bandwidth between Datacenters I have another common VCDX mistake for you.

What SLA?

Read the rest of this entry »

Common VCDX Mistakes: A02: Enough bandwidth between Datacenters

Continuing on from yesterday’s post: Common VCDX Mistakes: R01: Customer Requires N+1 I have another common VCDX mistake for you.

A02: Enough bandwidth between Datacenters

Read the rest of this entry »

Common VCDX Mistakes: R01: Customer Requires N+1

Over the years as a VCDX panellist, I began seeing a pattern of regular mistakes that candidates make either in the VCDX Application process or in the actual VCDX Defense. So I have decided to write some short posts highlighting different mistakes. As usual, these are my own thoughts, and may not be shared by other VCDX panellists. If you are interested in my thoughts, you can either subscribe to my blog or follow me on Twitter to keep an eye out for new posts.

For those of you whole aren’t familiar with the VCDX program, you can read more about it here: VMware Certified Design Expert .

Today I want to kick off with the following:

R01: Customer Requires N+1

Read the rest of this entry »

Monitor Your DHCP Scopes With vRealise Log Insight

I’ve been spending some time lately figuring out ways to improve the monitoring and alerting within VMware’s Internal Horizon environments. A condition I wanted to alert on was DHCP scope exhaustion. We have many DHCP scopes globally for our virtual desktop environments and I want our support team to be alerted when we start to run low on DHCP IP addresses and in a worst case scenario, exhausted all IPs in the scope. Virtual desktops without IP addresses don’t tend to work very well.

In theory, we should never exhaust our DHCP scopes if we size and place our desktop Pools correctly. However, in practice that doesn’t always happen. Often a Pools get created with the wrong amount of desktops or the wrong network was selected on the Golden Master image, causing the new Pool to use the wrong DHCP scope. I want to know when these mistakes have been made, so we can correct them before our end users are affected.

Within our Horizon environments, we utilize vRealise Log Insight for log collect and analysis. My knowledge of Log Insight is still pretty primitive, so I engaged one of my OneCloud colleagues, Caleb Stephenson, who manages our Global Log Insight instance that processes 35 Billion events per week to figure out how we can achieve this.  Read the rest of this entry »

PAGE 1 of 2412345...1020...LAST »
 
Get Adobe Flash player