question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support market-place ordering

See original GitHub issue

Description

Outline the issue here: When I try to install VM from Azure Marketplace via Azure CLI 2.0 I get the error message: At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details. { “error”: { “code”: “ResourcePurchaseValidationFailed”, “message”: “User failed validation to purchase resources. Error message: ‘Legal terms have not been accepted for this item on this subscription. To accept legal terms, please go to the Azure portal (http://go.microsoft.com/fwlink/?LinkId=534873) and configure programmatic deployment for the Marketplace item or create it there for the first time’” } } Correlation ID: 5d540903-63f7-4d79-8626-92ae748f6d2e In order to overcome it I have to login to portal.azure.com and configure programmatic deployment there. After that I can create VM with no problem. I wonder if it’s possible to configure programmatic deployment via Azure CLI in order not switch from CLI to portal and back again? thanks!


Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: apt-get CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here: root@ALEXEY-HP:~# az --version azure-cli (2.0.6)

acr (2.0.4) acs (2.0.6) appservice (0.1.6) batch (2.0.4) cdn (0.0.2) cloud (2.0.2) cognitiveservices (0.1.2) command-modules-nspkg (2.0.0) component (2.0.4) configure (2.0.6) core (2.0.6) cosmosdb (0.1.6) dla (0.0.6) dls (0.0.6) feedback (2.0.2) find (0.2.2) interactive (0.3.2) iot (0.1.5) keyvault (2.0.4) lab (0.0.4) monitor (0.0.4) network (2.0.6) nspkg (3.0.0) profile (2.0.4) rdbms (0.0.1) redis (0.2.3) resource (2.0.6) role (2.0.4) sf (1.0.1) sql (2.0.3) storage (2.0.6) vm (2.0.6)

Python (Linux) 3.6.1 (default, May 18 2017, 14:59:59) [GCC 4.8.4]

Python location ‘/opt/az/bin/python3’ OS Version: What OS and version are you using?
Answer here: D:>ver Microsoft Windows [Version 10.0.14393] 64-bit

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: cmd.exe, Bash on Windows

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

8reactions
paulopsgilitycommented, Nov 6, 2017

There should be a way to accept this from an ARM template, API, CLI, PowerShell or at subscription create time. The legal terms seems like a silly argument. The whole point of automation is so that you don’t have to do these manual steps.

6reactions
noelbundickcommented, Nov 8, 2018

For future readers - can confirm this works for sendgrid with the following command:

az vm image accept-terms --publisher sendgrid --offer sendgrid_azure --plan free

Note: the publisher/offer/plan are case-sensitive, so make sure that they match exactly the values in your ARM template

Read more comments on GitHub >

github_iconTop Results From Across the Web

Contact the seller or Facebook for help with your order
If you have an issue with something you purchased with checkout on Facebook Marketplace, please try contacting the seller directly. You'll need to...
Read more >
I need help with an order on Facebook Shop.
If you have any questions or issues with a purchase you made on Facebook Shop, please contact the shop you bought the item...
Read more >
I'm having an issue with something I purchased on ... - Facebook
If you have an issue with an order on Facebook Marketplace, please contact the seller for help. If the seller doesn't reply or...
Read more >
I need help with Facebook Marketplace. | Facebook Help Center
If you need help with an order you purchased with checkout: For items purchased with checkout on Facebook, you may be able to...
Read more >
Marketplace | Facebook Help Center
You can use Marketplace to buy and sell items with people in your community on Facebook. Learn more about: Buying and selling responsibly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found