Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process errors out when test machine OS has not been licensed #21

Open
jthoel opened this issue Jun 12, 2019 · 1 comment
Open

Process errors out when test machine OS has not been licensed #21

jthoel opened this issue Jun 12, 2019 · 1 comment
Assignees
Labels
help wanted Extra attention is needed

Comments

@jthoel
Copy link

jthoel commented Jun 12, 2019

Support issue

When running an ansible-playbook from a docker image pulled from the latest git, when deploying the test machine into a new subscription, the "go_os" from the provider.yml is set to "ubuntu" but the deployment fails with the following error:

nError: Error applying plan:\n\n1 error(s) occurred:\n\n* module.ServerSpoke-Test-VM.azurerm_virtual_machine.vm: 1 error(s) occurred:\n\n* azurerm_virtual_machine.vm: compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code=\"ResourcePurchaseValidationFailed\" Message=\"User failed validation to purchase resources. Error message: 'Legal terms have not been accepted for this item on this subscription: '<removed>'. To accept legal terms using PowerShell, please use Get-AzureRmMarketplaceTerms and Set-AzureRmMarketplaceTerms API(https://go.microsoft.com/fwlink/?linkid=862451) or deploy via the Azure portal to accept the terms'\"\n\nTerraform does not automatically rollback in the face of errors.\nInstead, your Terraform state file has been partially updated with\nany resources that successfully completed. Please address the error\nabove and apply again to incrementally change your infrastructure.\n\n\n"}

I retested after deploying a "ubuntu 18.04" image and still got the same error. When I removed the test machine section, the deployment moves past that entry.

A suggestion would be to have the default script that uses an image that might not need a license.

@torstenstern
Copy link
Collaborator

Hi @jthoel

we are aware about this. Here is the command for accept the license terms vis cli.

az vm image accept-terms --urn tunnelbiz:ubuntu_server:ubuntu1810webserver:0.0.1

please run this command in the docker container and please let me know if it works.

Regards

Torsten

@torstenstern torstenstern self-assigned this Jun 12, 2019
@torstenstern torstenstern added the help wanted Extra attention is needed label Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants