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
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).
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
locked and limited conversation to collaborators
Apr 10, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform v0.8.0-dev (b335418)
Affected Resource(s)
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
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
azurerm_virtual_machine
The text was updated successfully, but these errors were encountered: