Quantcast
Channel: VMware Communities : Discussion List - Virtual Disk Development Kit
Viewing all articles
Browse latest Browse all 2039

"Data not found" error when querying Provider vDC for Storage Profile

$
0
0

I am trying to create a vDC with a Storage profile defined. I am getting a "Data not found" when I run the following command:

 

ReferenceType providerVdcStorageProfileRef = pvdc.GetProviderVdcStorageProfileRefs().FirstOrDefault();

 

I can query networks from the pvDCwithout a problem.

 

Here is more of the code:

 

                ReferenceType pvdcRef = admin.GetProviderVdcRefByName("My Provider vDC");
                createVdcParams.ProviderVdcReference = pvdcRef;
                ProviderVdc pvdc = ProviderVdc.GetProviderVdcByReference(objConn.client, pvdcRef);

 

                ReferenceType providerVdcStorageProfileRef = pvdc.GetProviderVdcStorageProfileRefs().FirstOrDefault();

                vdcStorageProfile.ProviderVdcStorageProfile = providerVdcStorageProfileRef;
                createVdcParams.VdcStorageProfile = new VdcStorageProfileParamsType[] { vdcStorageProfile };

 

Can anyone help me out?


Viewing all articles
Browse latest Browse all 2039

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>