azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

No Context for "az managedapp"

Open brentarias opened this issue 2 years ago • 4 comments

I am attempting to create and deploy my first-ever Azure Marketplace offering. Everything I have read says that I must have the following three assets in a deployment bundle:

  • mainTemplate.json (ARM file)
  • createUIDefinition.json
  • viewDefinition.json

However, I've just discovered the documentation for the az managedapp create command, which seemingly doesn't require the above deployment bundle. It makes it confusing about what is the REAL purpose of the az managedapp create command. I notice that further documentation about az managedapp create shows a cloud shell script of contributing commands. One of those commands, az managedapp definition create has a parameter --package-file-uri which might be referencing the deployment bundle (the documentation doesn't give sufficient clarification). If that switch does refer to the deployment bundle, then this does make more sense...except that the --package-file-uri is optional. Certainly the deployment bundle is not optional, so again there is a lack of clarity from the documentation.

If indeed these cli commands (e.g. managedapp definition create, managedapp create) are designed to work with the managed app "deployment bundle", then my questions are:

  • Why is the switch --package-file-uri optional for az managedapp definition create?
  • Why does the sample script, shown in the last link above, explicitly create an Application Resource Group? Isn't that the job of the ARM template found in the deployment bundle?
  • In addition to the cloud shell sample script for az managedapp definition create, there is also an Azure Powershell equivalent in MS documentation. Instead of using the az CLI tool, the Powershell commands look like Powershell cmdlets, such as New-AzManagedApplicationDefinition. The documentation doesn't explain (1) why are cmdlets being used instead of the az CLI tool and (2) where can I get or install these cmdlets for my desktop (assuming they have an advantage over the az CLI tool)?

brentarias avatar Jan 17 '23 18:01 brentarias

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar Jan 17 '23 23:01 ghost

route to CXP team

yonzhan avatar Jan 17 '23 23:01 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @MSEvanhi.

Issue Details

I am attempting to create and deploy my first-ever Azure Marketplace offering. Everything I have read says that I must have the following three assets in a deployment bundle:

  • mainTemplate.json (ARM file)
  • createUIDefinition.json
  • viewDefinition.json

However, I've just discovered the documentation for the az managedapp create command, which seemingly doesn't require the above deployment bundle. It makes it confusing about what is the REAL purpose of the az managedapp create command. I notice that further documentation about az managedapp create shows a cloud shell script of contributing commands. One of those commands, az managedapp definition create has a parameter --package-file-uri which might be referencing the deployment bundle (the documentation doesn't give sufficient clarification). If that switch does refer to the deployment bundle, then this does make more sense...except that the --package-file-uri is optional. Certainly the deployment bundle is not optional, so again there is a lack of clarity from the documentation.

If indeed these cli commands (e.g. managedapp definition create, managedapp create) are designed to work with the managed app "deployment bundle", then my questions are:

  • Why is the switch --package-file-uri optional for az managedapp definition create?
  • Why does the sample script, shown in the last link above, explicitly create an Application Resource Group? Isn't that the job of the ARM template found in the deployment bundle?
  • In addition to the cloud shell sample script for az managedapp definition create, there is also an Azure Powershell equivalent in MS documentation. Instead of using the az CLI tool, the Powershell commands look like Powershell cmdlets, such as New-AzManagedApplicationDefinition. The documentation doesn't explain (1) why are cmdlets being used instead of the az CLI tool and (2) where can I get or install these cmdlets for my desktop (assuming they have an advantage over the az CLI tool)?
Author: brentarias
Assignees: -
Labels:

Service Attention, question, ARM - Managed Applications, customer-reported, needs-team-attention

Milestone: -

ghost avatar Jan 19 '23 03:01 ghost

Adding Service team to assist on this issue.

@MSEvanhi Could you please look into this issue ? Thanks in advance.

navba-MSFT avatar Jan 19 '23 03:01 navba-MSFT

You can inline the files or pass a uri to a zip containing them.

ARM templates don't create resource groups unless you deploy one as part of the template, they are not implicit.

The cmdlet is included in the azure az cmdlet and does not need a separate installation. There is not advantage to PS vs CLI here. Ideally these documents should have explored examples for both.

MSEvanhi avatar Jan 29 '24 19:01 MSEvanhi

@navba-MSFT please close this issue with the above comment as the answer.

MSEvanhi avatar Jun 03 '24 11:06 MSEvanhi