Skip to content

[Bug Report]: --type AzureManagedService not available for marketplace offer create #232

@machug

Description

@machug

cli command

az partnercenter marketplace offer create

Extension version

0.2.5

Describe the bug

I have been researching offer creation for a Managed Service. This type does not seem to be supported by the extension (also tried v 0.2.4 and 0.2.6)

#66 appears to have added this type however it produces an error.

az version output:

{
  "azure-cli": "2.59.0",
  "azure-cli-core": "2.59.0",
  "azure-cli-telemetry": "1.1.0",
  "extensions": {
    "partnercenter": "0.2.5"
  }
}

To reproduce

az partnercenter marketplace offer create --id testoffer --alias "alias" --type AzureManagedService

Code snippet

No response

Relevant log output

cli.azure.cli.core.azclierror: The command failed with an unexpected error. Here is the traceback:
az_command_data_logger: The command failed with an unexpected error. Here is the traceback:
cli.azure.cli.core.azclierror: 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` (AzureManagedService), must be one of ['SoftwareAsAService', 'AzureApplication', 'AzureDeveloperService', 'AzureThirdPartyVirtualMachine', 'AzureContainer', 'AzureVisualStudioExtension', 'AzureDynamics365ForCustomerEngagement', 'AzureDynamics365ForOperations', 'AzureDynamics365BusinessCentral']
Traceback (most recent call last):
  File "C:\Users\madca\.azure\cliextensions\partnercenter\azext_partnercenter\vendored_sdks\v1\partnercenter\model_utils.py", line 1803, in get_allof_instances
    allof_instance = allof_class(**model_args, **constant_args)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\madca\.azure\cliextensions\partnercenter\azext_partnercenter\vendored_sdks\v1\partnercenter\model_utils.py", line 48, in wrapped_init
    return fn(_self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\madca\.azure\cliextensions\partnercenter\azext_partnercenter\vendored_sdks\v1\partnercenter\model\microsoft_ingestion_api_models_products_azure_product_all_of.py", line 275, in __init__
    setattr(self, var_name, var_value)
  File "C:\Users\madca\.azure\cliextensions\partnercenter\azext_partnercenter\vendored_sdks\v1\partnercenter\model_utils.py", line 189, in __setattr__
    self[attr] = value
    ~~~~^^^^^^
  File "C:\Users\madca\.azure\cliextensions\partnercenter\azext_partnercenter\vendored_sdks\v1\partnercenter\model_utils.py", line 510, in __setitem__
    self.set_attribute(name, value)
  File "C:\Users\madca\.azure\cliextensions\partnercenter\azext_partnercenter\vendored_sdks\v1\partnercenter\model_utils.py", line 165, in set_attribute
    check_allowed_values(
  File "C:\Users\madca\.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` (AzureManagedService), must be one of ['SoftwareAsAService', 'AzureApplication', 'AzureDeveloperService', 'AzureThirdPartyVirtualMachine', 'AzureContainer', 'AzureVisualStudioExtension', 'AzureDynamics365ForCustomerEngagement', 'AzureDynamics365ForOperations', 'AzureDynamics365BusinessCentral']

Metadata

Metadata

Labels

bugSomething isn't workingtriage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions