Here I supposed you have installed and configure the cohesity appliance in your environment.
This article is reffering to https://github.com/cohesity/cohesity-vcd-extension
We need to log into cohesity cluster.
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-49-1024x555.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-50-1024x455.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-51.png)
copy some where that you can execute it by command, in my case the cohesity cluster ip is 172.10.0.40
iris_cli -server cohesityClusterIP
then enter the user and password
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-52.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-53.png)
Run the code below to enable CORS and Referal link
cluster update-gflag gflag-name="iris_cors_origins" gflag-value="https://vCloudDirector" service-name=iris reason="Enabling_CORS"
cluster update-gflag gflag-name="iris_alllowed_referrer_urls" gflag-value="https://vCloudDirector" service-name=iris reason="Enabling_Referer_Url"
cluster restart service-names=iris
In my case my vCD IP is 172.10.0.10
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-56.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-57.png)
In this part we need to do some configuration on cohesity cluster:
- Login to the Cohesity Cluster UI as a user with Admin role
- Click on “Admin->Cluster Settings”
- Click on the toggle buton to “Enable Organizations”
- Create organizations in Cohesity correspending to the tenants in vCloud Director by navigating to “Admin-Organizations” and clicking on “Add Organization”
- Assign the Protection Policies to the organization and also assign the corresponding vCD organization under Sources
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-60-1024x653.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-61-1024x650.png)
In vCloud I have defined a Organization for cohesity
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-62-1024x496.png)
Now back to the cohesity and create an organization to map to the ORG which we have created in vCloud Director
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-63-1024x660.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-64-1024x464.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-65-1024x645.png)
We need to select a storage domain
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-67-1024x621.png)
Here we need to create a user in cohesity to be used by vCloud director
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-69-1024x610.png)
After filling out, add the user and assign it
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-71-1024x700.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-72-1024x819.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-73-1024x686.png)
Now we need to define source for this user
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-74-1024x682.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-75.png)
I assigned the ORG which already created for this user in vCloud Director and assigned it
Now I define the policies for the backup
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-76-1024x588.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-77-1024x810.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-78-1024x676.png)
Now we need to run some python script, because in windows it is not installed by default then i have to install it manually search for downloading python and install it
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-58.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-83.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-79.png)
From this URL I should dowload the extensions
https://github.com/cohesity/cohesity-vcd-extension/releases
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-80-1024x403.png)
First download the dataprotection.zip and unzip it somewhere
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-81.png)
edit the file ui_ext_api like below
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-82.png)
Then we need to run deploy.py, but before that we have to install some package:
python -m pip install requests
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-84.png)
Then running the script
python deploy.py deploy
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-85.png)
Now if I log into the vCloud Director I see a new menu as Data Protection
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-86.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-89-1024x502.png)
If I click add in the corner:
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-90.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-91.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-92.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-93.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-94.png)
After this step a user will be created in Cohesity for API Calls
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-96-1024x629.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-97-1024x556.png)
and automatically will be assign to the organization which we already have created
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-95-1024x601.png)
Now If I open the Cohesity-ORG I can see the seperated panel inorder to configure the backups
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-98-1024x548.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-99-1024x657.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-100-1024x511.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-101-1024x569.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-102-1024x574.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-104-1024x683.png)
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-105-1024x586.png)
My selected VM is now protected
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-106-1024x544.png)
If i check the protection part in Cohesity I can also see a new job with the same name that was created by vCloud Director
![](https://www.vmehrabi.com/wp-content/uploads/2022/12/image-107-1024x615.png)