You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.
Install all the prerequisites like vagrant and plugin
create a vagrantfile with the following content:
Vagrant.configure('2') do |config|
config.vm.box = 'azure'
config.vm.provider :azure do |azure, override|
# each of the below values will default to use the env vars named as below if not specified explicitly
azure.tenant_id = ENV['ARM_TENANT_ID']
azure.client_id = ENV['ARM_CLIENT_ID']
azure.client_secret = ENV['ARM_CLIENT_SECRET']
azure.subscription_id = ENV['ARM_SUBSCRIPTION_ID']
# azure.vm_image = 'env-win2016-dev'
azure.vm_managed_image_id = '/subscriptions/7bff593e-4ee7-40bb-9d2b-522f196626e5/resourceGroups/CommonRG/providers/Microsoft.Compute/images/env-win2016-dev'
# azure.vm_vhd_uri = "https://commonstorsouthcentralus.blob.core.windows.net/system/Microsoft.Compute/Images/vmimages/env-win2016-dev-osDisk.5ae67658-0262-405e-8a84-eeaeb4b65507.vhd"
azure.instance_ready_timeout = 600
azure.location = 'WestUS2'
azure.vm_size = 'Standard_DS1_v2'
azure.vm_operating_system = 'Windows'
azure.vm_name = 'envdev01'
azure.vm_password = 'TopSecretPassw0rd'
azure.admin_username = "OctoAdmin"
override.winrm.transport = :ssl
override.winrm.port = 5986
override.winrm.ssl_peer_verification = false # must be false if using a self signed cert
override.vm.synced_folder ".", "/vagrant", disabled: true
end
end
Run vagrant up
Expected result
VM is created based on my image.
Actual result:
Error in console
...
"response": {
"body": "{\"status\":\"Failed\",\"error\":{\"code\":\"DeploymentFailed\",\"message\":\"At least one resource deploym
ent operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage detai
ls.\",\"details\":[{\"code\":\"Conflict\",\"message\":\"{\\r\\n \\\"status\\\": \\\"Failed\\\",\\r\\n \\\"error\\\": {
\\r\\n \\\"code\\\": \\\"ResourceDeploymentFailure\\\",\\r\\n \\\"message\\\": \\\"The resource operation complete
d with terminal provisioning state 'Failed'.\\\",\\r\\n \\\"details\\\": [\\r\\n {\\r\\n \\\"code\\\": \\
\"VMExtensionProvisioningTimeout\\\",\\r\\n \\\"message\\\": \\\"Provisioning of VM extension 'WinRMCustomScriptE
xtension' has timed out. Extension installation may be taking too long, or extension status could not be obtained.\\\"\\
r\\n }\\r\\n ]\\r\\n }\\r\\n}\"}]}}",
"headers": {
"cache-control": "no-cache",
"pragma": "no-cache",
"content-type": "application/json; charset=utf-8",
"expires": "-1",
"vary": "Accept-Encoding",
"x-ms-ratelimit-remaining-subscription-reads": "14997",
"x-ms-request-id": "773d3106-b848-4a90-956d-3f978453f623",
"x-ms-correlation-request-id": "773d3106-b848-4a90-956d-3f978453f623",
"x-ms-routing-request-id": "WESTEUROPE:20180721T232812Z:773d3106-b848-4a90-956d-3f978453f623",
"strict-transport-security": "max-age=31536000; includeSubDomains",
"x-content-type-options": "nosniff",
"date": "Sat, 21 Jul 2018 23:28:12 GMT",
"connection": "close",
"content-length": "525"
},
"status": 200
}
...
My image is Windows based, however, it seems that Vagrant is trying to create a linux one. Here is what I see in deployment template in Azure portal:
Steps to reproduce:
vagrant up
Expected result
Actual result:
My image is Windows based, however, it seems that Vagrant is trying to create a linux one. Here is what I see in deployment template in Azure portal:
The text was updated successfully, but these errors were encountered: