$catalog = Get-Org -name test |get-catalog -name "test catalog" $storProfile = Search-Cloud -QueryType ProviderVdcStorageProfile -Name "Standard 1" | Get-CIView $cat.ExtensionData.CatalogStorageProfiles = $storProfile
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:
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?
↧
How to change catalog default storage policy?
↧