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

Current master crashes when importing an azurerm_virtual_machine #10312

Closed
simonjefford opened this issue Nov 23, 2016 · 1 comment
Closed

Current master crashes when importing an azurerm_virtual_machine #10312

simonjefford opened this issue Nov 23, 2016 · 1 comment

Comments

@simonjefford
Copy link

Terraform Version

Terraform v0.8.0-dev (b335418)

Affected Resource(s)

  • azurerm_virtual_machine

Terraform Configuration Files

https://www.dropbox.com/s/7joncaeuea4wvje/config.tar.gz.encrypted?dl=0

Debug Output

https://gist.github.com/simonjefford/f2e9cdc808f29a1e34546a38ebdb2962

Panic Output

https://gist.github.com/simonjefford/8c6646fcaa573dbaf8fce013f937f142

Expected Behavior

Import the azure RM based virtual machine into state.

Actual Behavior

It crashed due to the API not returning JSON containing an os_profile object as seen in the crash log. Changing the code to guard against resp.Properties.OsProfile being nil (around this code) resulted in a successful import (but obviously without any of the os_profile data).

Steps to Reproduce

  1. terraform import azurerm_virtual_machine.winslave /subscriptions/<redacted>/resourceGroups/jenkins-prodeng/providers/Microsoft.Compute/virtualMachines/prodeng-wslave1

Important Factoids

Also as seen in the crash log, the virtual machine has some extensions around backup and recovery, but I'm not sure that's relevant.

References

@ghost
Copy link

ghost commented Apr 10, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants