Azure / Azure/partnercenter-cli-extension
[Bug Report]: AzureApplication type which is currently not supported by package
- Dominant language
- Python
- Stars
- 12
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
### cli command
az partnercenter marketplace offer package build --offer-id haiche-test-modm-20241014
### Extension version
0.2.1
### Describe the bug
I used `az partnercenter marketplace offer` to create an Azure Application offer with a plan. Then I ran the [az partnercenter marketplace offer package build](https://learn.microsoft.com/en-us/cli/azure/partnercenter/marketplace/offer/package?view=azure-cli-latest#az-partnercenter-marketplace-offer-package-build) command to build my ARM templates, but encountered the following error:
```
root@me:/mnt/c/Users/me/Documents/weblogic-azure/weblogic-azure-aks/target/arm# az partnercenter marketplace offer package build --offer-id haiche-test-modm-20241014 --verbose
Command group 'partnercenter marketplace offer package' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
haiche-test-modm-20241014 offer is a AzureApplication type which is currently not supported by the CLI. Please submit an issue to get support at https://github.com/Azure/partnercenter-cli-extension/issues.
```
### To reproduce
1. Create an offer:
```
az partnercenter marketplace offer create -a haiche-test-modm --id haiche-test-modm-20241014 -t AzureApplication
```
2. Create a plan
```
az partnercenter marketplace offer plan create --id wls-aks-test -n "Test WLS on AKS" --offer-id haiche-test-modm-20241014
```
3. Download templates from [wls-on-aks-azure-marketplace-1.0.82-arm-assembly.zip](https://github.com/user-attachments/files/17360796/wls-on-aks-azure-marketplace-1.0.82-arm-assembly.zip) and unzip the package.
4. Package the template
```
az partnercenter marketplace offer package build --offer-id haiche-test-modm-20241014
```
### Code snippet
_No response_
### Relevant log output
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the implementation of `az partnercenter marketplace offer package build` and trace the check that rejects the `AzureApplication` offer type. Reproduce the command with the documented offer and plan steps, then verify that packaging the downloaded ARM template succeeds for AzureApplication offers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python
- Domain
- cli, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100