The extension is unable to list the offers throwing an error about "SoftwareAsAService" not supported.
To reproduce
Have an offer of type "Software as a Service"
Try to run az partnercenter marketplace offer list
Code snippet
No response
Relevant log output
The command failed with an unexpected error. Here is the traceback:
Invalid inputs given to generate an instance of 'MicrosoftIngestionApiModelsCommonPagedCollectionMicrosoftIngestionApiModelsProductsBaseProductAllOf'. The input data was invalid for the allOf schema 'MicrosoftIngestionApiModelsCommonPagedCollectionMicrosoftIngestionApiModelsProductsBaseProductAllOf' in the composed schema 'MicrosoftIngestionApiModelsCommonPagedCollectionMicrosoftIngestionApiModelsProductsBaseProduct'. Error=Invalid inputs given to generate an instance of 'MicrosoftIngestionApiModelsProductsAzureProductAllOf'. The input data was invalid for the allOf schema 'MicrosoftIngestionApiModelsProductsAzureProductAllOf' in the composed schema 'MicrosoftIngestionApiModelsProductsAzureProduct'. Error=Invalid value for `resource_type` (SoftwareAsAService), must be one of ['AzureApplication', 'AzureDeveloperService', 'AzureThirdPartyVirtualMachine', 'AzureContainer', 'AzureVisualStudioExtension', 'AzureDynamics365ForCustomerEngagement', 'AzureDynamics365ForOperations', 'AzureDynamics365BusinessCentral']
Traceback (most recent call last):
File "/root/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/model_utils.py", line 1801, in get_allof_instances
allof_instance = allof_class._from_openapi_data(**model_args, **constant_args)
File "/root/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/model_utils.py", line 48, in wrapped_init
return fn(_self, *args, **kwargs)
File "/root/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/model/microsoft_ingestion_api_models_products_azure_product_all_of.py", line 189, in _from_openapi_data
setattr(self, var_name, var_value)
File "/root/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/model_utils.py", line 189, in __setattr__
self[attr] = value
File "/root/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/model_utils.py", line 510, in __setitem__
self.set_attribute(name, value)
File "/root/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/model_utils.py", line 165, in set_attribute
check_allowed_values(
File "/root/.azure/cliextensions/partnercenter/azext_partnercenter/vendored_sdks/v1/partnercenter/model_utils.py", line 874, in check_allowed_values
raise ApiValueError(
azext_partnercenter.vendored_sdks.v1.partnercenter.exceptions.ApiValueError: Invalid value for `resource_type` (SoftwareAsAService), must be one of ['AzureApplication', 'AzureDeveloperService', 'AzureThirdPartyVirtualMachine', 'AzureContainer', 'AzureVisualStudioExtension', 'AzureDynamics365ForCustomerEngagement', 'AzureDynamics365ForOperations', 'AzureDynamics365BusinessCentral']
cli command
az partnercenter marketplace offer list
Extension version
0.2.1
Describe the bug
The extension is unable to list the offers throwing an error about "SoftwareAsAService" not supported.
To reproduce
az partnercenter marketplace offer list
Code snippet
No response
Relevant log output