Create vCAV Replication Policies via API

Few days back I wrote a post on how to create Replication policies in vCloud Availability via GUI. In this post I will walk through steps of creating the same via API.

Below are high level steps of API workflow.

1: Get Auth Token

2: Create a New Replication Policy

Response Output: Make a note of the id of the policy from the response output.

3: Get vCD Organization Detail

Note: In below API call, Cloud-Site is my site name in SP side. Replace this with yours. Read More

vCloud Availability End to End Configuration via API

Lately I have posted few blogs on manual setup of vCAV 3.x in service provider and tenant side. In this post I will walk through configuring the same via API’s.

If you are new to vCAV, then I would recommend reading below articles so that you will get an understanding about vCAV architecture and its functioning.

1: vCAV Introduction & Architecture

2: vCAV Service Provider Setup

3: vCAV Tenant Setup

Current version of vCAV is 3.5 and API documentation for this version is located at VMware code portal. You can also download vCAV openapi json and import it into rest client of your choice to execute the API’s. Read More

How To Unregister vCAV 3.5 Plugin from vCenter

Recently while working in lab, I came across situation where I had to remove the vCloud Availability 3.5 plugin from vCenter. To remove plugins from vCenter, we usually employ mob for this task, but removing the vCAV plugin follow different path. In this post I will walk through steps of doing the same.

Login to your vcsa appliance over SSH and execute following commands:

1: List vCAV plugin registrations in the vCenter Server Lookup service

Make a note of the Service ID from the output Read More

Upgrading vCloud Availability From 3.0 to 3.5

In this post I will walk through steps of upgrading vCloud Availability deployment upgrade from version 3.0 to 3.5.

If you have missed earlier posts of this series, I would recommend reading them from below links:

1: vCAV 3.0-Provider Setup

2: vCAV 3.0-Replication Policies

3: vCAV 3.0-Tenant Setup

vCloud Availability upgrade can be performed via various methods (CLI & UI). These methods are very well documented Here 

Upgrading vCloud Availability in the Cloud

Before upgrading vCAV in service provider side, we need to ensure that environment is configured as per Pre-Upgrade requirement. Read More

Configuring vCloud Availability 3.0-Part 3:Tenant Setup

In first Part of vCAV 3.0 series, we learnt about service provider side configuration and in last Post we discussed about Replication Policies in vCAV. In this post I will walk through steps of configuring on-prem environment with vCAV. 

To configure on-prem environment to work with vCAV, you need to first download the vCAV 3.0 Appliance for Tenants which is located Here

Deployment of appliance is very straight forward like any other vmware product. Below slideshow shows the deployment steps.

Once the appliance boots up, make a note of the login url. Read More

Configuring vCloud Availability 3.0-Part 2: Replication Policies

In last post we learnt how to perform vCloud Availability 3.0 end to end configuration. But before we can jump into performing tenant side configuration, we need to configure Replication Policies.

Replication policies are sets of rules that define and control the replication attributes on a vCD organization level. Typically a replication policy enforces following attributes:

  • Whether an organization can be used as a replication source.
  • Whether an organization can be used as a replication destination.
  • The minimum Recovery Point Objective (RPO) for an organization.
  • The maximum number of retained snapshots per single virtual machine replication for an organization.
  • The maximum number of virtual machine replications that can be created for an organization.

Note: A single replication policy can be assigned to multiple vCD organizations. 

Create a Replication Policy

You can edit and use the default replication policy that comes with vCAV or you can create a new one based on your requirements.  Read More

Configuring vCloud Availability 3.0-Part 1:Provider Setup

Recently I got chance to work on setting up vCloud Availability 3.x version in my test environment and it was a great learning curve. I will share my experience through series of blog posts so that it can help wider audience to understand every nuance’s of this wonderful product. 

I am not going to write any introduction post on what is vCAV and its architecture. Its very well documented Here

If you have worked on previous version of vCAV (2.0 & 1.5), you might remember it was a pain setting up various appliances. With vCAV 3.0, installation & configuration has been simplified drastically. No more hanky panky command line stuff. Now you just need 2 ova files for setting up cloud and on-prem infrastructure. Read More

Automating vCloud Usage Meter Deployment & Configuration via API

In my last Post I covered manual steps of vCloud Usage Meter deployment & configuration. In this post I will show how we can leverage Usage Meter API’s to perform end to end configuration.

Usage Meter Deployment: There is no API for UM deployment and we have to stick to ovftool method for this step.

Once Usage meter boots up, we can leverage below API calls to perform end to end configuration. 

1: Get Authentication Token

Response Output: We need to grab value of “sessionid” from output response. Further API calls will be authenticated using sessionid.  Read More

Installing & Configuring vCloud Usage Meter

What is Usage Meter?

vCloud Usage Meter is an on-premises virtual appliance that is used to collect and generate reports for Cloud Provider Partners (VCPP) to send back to VMware for monthly billing of usage.

Usage Meter collects usage of most of the VMware products that are installed in cloud providers datacenter. Current version of Usage Meter (4.1) supports usage collection from following endpoints:


How Usage Meter collects and report monthly product consumption data, is explained Here

vCloud Usage Insight Read More

Automating vROPs Tenant Appliance Deployment & Configuration via API

In my previous post on vROPs Tenant Appliance for vCD, I covered steps of manual deployment & configuration. In this post I will cover how we can achieve this via CLI/API.

These API’s can be leveraged via any scripting language to automate the deployment of vROPs TA.

Step 1: Deploy vROPs Tenant Appliance via ovftool

As of now there is no API for automating deployment of appliance via API, so we will use ovftool for this purpose.

Step 2: Get Authentication Token Read More

Installing & Configuring vCD Content Pack in vRLI via API

In this post we will learn how to install vCD content pack in vRealize Log Insight via API. 

What is vCD Content pack?

As per VMware official documentation:

The VMware vCloud Director content pack provides you unparalleled visibility into your vCD environment from 5.5 to the new 9.x SP. Providing graphical representations of important log data, metrics of your vCD workloads and a robust set of alerts this content pack will allow you to better manage vCD utilizing Log Insight’s capabilities.

Installing content packs in vRLI is one of the day 2 operations that most VMware Admins do in their day to day job. In large datacenters where there are several instances of vRLI, configuring content packs & agents via UI is a very tedious and time consuming process. You can use API’s to automate these day 2 tasks to reduce time and to minimize human errors. So let’s get started. Read More

Install & Configure vCD Management Pack in vROPs via API

In this post I will walk through steps of installing vCD Management Pack in vROPS via API. Installation of management pack is leveraged via vROPS CaSA API. Adapter configuration is done via regular suite-api. 

What is vROps CaSA API?

CaSA stands for Cluster and Slice Administration. The CaSA API manages the internal working of vRealize Operations Manager and runs on a standalone vFabric tcServer. CaSA API can be explored directly from vROPs by typing https://<vrops-fqdn>/casa/api-guide.html

Install and Configure vCD Management Pack & Adapter Read More

Getting Started With vROPs Tenant App For vCloud Director 10.x

In this post I will walk through step by step installation for vRealize Operations Manager Tenant App for vCloud Director. But before I jump into lab, I want to take a moment to explain what this solution is all about and how it looks like from architectural point of view.

What is vROPs Tenant App for vCloud Director?

vROPs Tenant App is a solution which helps in exposing vRops performance metrics to tenants in a vCD environment. Each tenant can only see metrics data relevant to their organization.

From a service provider point of view, this is an awesome solution as Tenant App enables tenants to have complete visibility of performance metrics of their environment. If an environment is not performing as per expectations, tenants can leverage this solution to root cause analysis of performance issue and they can perform L1-L2 level of maintenance/troubleshooting tasks themselves without raising service tickets with service providers.  Read More

How To Update/Patch Multi Cell vCD 10.x Environment

In this post we will learn how to patch/update a Multi cell vCD 10.x environment.

Note: Above steps are for updating vCD from one build to another (patch release) within same version. Please do not confuse this with upgrading a vCD deployment where we jump from one major version to another.

I will breakup this post in 4 sections:

  • Pre Update Checks.
  • vCD Update Process.
  • Post Update Checks.
  • Post Update Tasks.

Pre Update Checks

There are number of checks which must be performed before attempting to update a vCD environment.

1: vCD Health Check & Primary Node identification: Before updating multi cell vCD environment, please ensure all vCD cells in server group are healthy and functioning correctly. Read More

vCloud Extender-Part 4: Cloud Provider Registration and VM Migration

In last post of this series, I covered the steps needed to configure on-prem environment to connect it to a cloud provider site. In this post I will demonstrate how to register cloud provider and initiate vm migration using vCloud Extender.

1: Introduction to vCloud Extender

2: vCloud Extender-Cloud Provider Setup

3: vCloud Extender-Tenant (On-Premise) Setup

Lets start with Cloud Provider registration.

Login to On-prem vCenter server webclient and click on vCloud Extender plugin and navigate to Provider Clouds tab. Click on Add a Provider Cloud button. Read More