VMImage was not found

48 views
Skip to first unread message

Kannan S

unread,
Dec 28, 2016, 6:55:49 AM12/28/16
to Vagrant
Hi Vagrant Support,

We analyzing about the Vagrant with Azure. While run the vagrant up with dummy box getting the below error. Can you help to resolve this issue?

Error

   "response": {
    "body": "{\r\n  \"error\": {\r\n    \"code\": \"NotFound\",\r\n    \"message\": \"Artifact: VMImage was not found.\"\r\n  }\r\n}",
    "headers": {
      "cache-control": "no-cache",
      "pragma": "no-cache",
      "content-length": "99",
      "content-type": "application/json; charset=utf-8",
      "expires": "-1",
      "strict-transport-security": "max-age=31476000; includeSubDomains",
      "x-ms-request-id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
      "server": "Microsoft-HTTPAPI/2.0, Microsoft-HTTPAPI/2.0",
      "x-ms-ratelimit-remaining-subscription-reads": "14999",
      "x-ms-correlation-request-id": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
      "x-ms-routing-request-id": "WESTINDIA:20161228T084334Z:yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
      "date": "Wed, 28 Dec 2016 08:43:34 GMT",
      "connection": "close"
    },
    "status": 404

Here the source vagrantfile

Vagrant.configure('2') do |config|
  config.vm.box = 'azure'
  
  # use local ssh key to connect to remote vagrant box
  
  config.vm.provider :azure do |azure, override|

    # use Azure Active Directory Application / Service Principal to connect to Azure

    # each of the below values will default to use the env vars named as below if not specified explicitly
    #azure.mgmt_certificate = 'D:/CI/Vagrant-Azure2azurecerti.pem'
#azure.mgmt_endpoint = 'https://management.core.windows.net'
azure.subscription_id  = 'xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx'
    azure.tenant_id = 'yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy'
azure.client_id = 'zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz'
    azure.client_secret = 'wwwwwwww-wwww-wwww-wwww-wwwwwwwwwwww'
azure.vm_name = 'box01'
    
  end
  config.ssh.username         = 'vagrant'
  config.vm.provision "shell", inline: "echo hello"
  config.vm.synced_folder "./vagrant", "/vagrant"
  config.vm.network :private_network, ip: "172.17.1.100", type: "dhcp"

end

If enable the auzre.mgmt_certificate, it says below,


There are errors in the configuration of this machine. Please fix
the following errors and try again:

Microsoft Azure Provider:
* The following settings shouldn't exist: mgmt_certificate

Regards,
Kannan

Alvaro Miranda Aguilera

unread,
Dec 28, 2016, 9:11:04 AM12/28/16
to vagra...@googlegroups.com
Hello.

Can you check these instructions?

Azure is not a vagrant core plugin, so if there are still  issues the best will be create an Issue on the Github repo of the azure plugin.

Thanks
Alvaro.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/fe0b7627-0946-40b9-ab3d-c5e9d521ebb9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages