Quantcast
Channel: VMware Communities : Popular Discussions - vCloud Director PowerCLI
Viewing all articles
Browse latest Browse all 13334

How to change catalog default storage policy?

$
0
0


I am trying to change the default storage policy on a organizations catalog


Organization -> Catalogs -> Org Catalog -> Properties -> Storage -> Pre-provision on on specific storage policy


I can't get the storage profile into the right type for the catalog:


$catalog = Get-Org -name test |get-catalog -name "test catalog"




$storProfile = Search-Cloud -QueryType ProviderVdcStorageProfile -Name "Standard 1" | Get-CIView




$cat.ExtensionData.CatalogStorageProfiles = $storProfile




returns:


Exception setting "CatalogStorageProfiles": "Cannot convert the "VMware.VimAutomation.Cloud.Views.VMWProviderVdcStorage Profile" value of type "VMware.VimAutomation.Cloud.Views.VMWProviderVdcStorageProfile" to type "VMware.VimAutomation.Cloud.Views.CatalogStorageProfiles"."


So I guess the question is how do I set $storProfile to a CatalogStorageProfiles object?

$catalog = Get-Org -name arntd |get-catalome "arntd catalog"



$storProfile = Search-Cloud -QueryType ProviderVdcStorageProfile -Name "Standard 1"  |Get-CIView 



$cat.ExtensionData.CatalogStorageProfiles = $storProfile



 



Exception setting "CatalogStorageProfiles": "Cannot convert the "VMware.VimAutomation.Cloud.Views.VMWProviderVdcStorage



Profile" value of type "VMware.VimAutomation.Cloud.Views.VMWProviderVdcStorageProfile" to type "VMware.VimAutomation.Cl



oud.Views.CatalogStorageProfiles"."



Viewing all articles
Browse latest Browse all 13334

Latest Images

Trending Articles



Latest Images

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