VMware Cloud Community
jonathanvh
Enthusiast
Enthusiast
Jump to solution

Get Assigned Storage policy of VM

Hi,

We are using Storage Policies for VMs, but I want an automated check via vRealize Orchestrator.

But I can't seem to find the attached Storage Policy of the VM.

I checked disk per disk, and I see that the IOPS limit has been set.

   storageIOAllocation = (vim.IOAllocationInfo) {

      dynamicType = null,

      dynamicProperty = null,

      limit = 10000,

      shares = (vim.SharesInfo) {

         dynamicType = null,

         dynamicProperty = null,

         shares = 1000,

         level = custom

      },

      reservation = 1

   },

Also an other thing I found different after applying the Storage Policy:

From :

   iofilter = null,

to

   iofilter = (STRING) [

      VMW_spm_1.0.0

   ],

(We are not using vCloud Director)

Reply
0 Kudos
1 Solution

Accepted Solutions
codypure
Contributor
Contributor
Jump to solution

Wrote a post about how to do this here:

Hope it helps!

Retrieving Storage Policy of a VM with vRO | Cody Hosterman

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

View solution in original post

Reply
0 Kudos
2 Replies
codypure
Contributor
Contributor
Jump to solution

Wrote a post about how to do this here:

Hope it helps!

Retrieving Storage Policy of a VM with vRO | Cody Hosterman

---------------------------------------------------------------------------------------------------------

Was it helpful? Let us know by completing this short survey here.

Reply
0 Kudos
jonathanvh
Enthusiast
Enthusiast
Jump to solution

Thanks!

I tried it and it will get the correct policy.

Reply
0 Kudos