Support market-place ordering
See original GitHub issueDescription
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:
- Created 6 years ago
- Reactions:1
- Comments:26 (12 by maintainers)
Top GitHub Comments
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.
For future readers - can confirm this works for sendgrid with the following command:
Note: the publisher/offer/plan are case-sensitive, so make sure that they match exactly the values in your ARM template