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.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