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
azure_rm_virtualmachine returns nboundLocalError: local variable 'boot_diag_storage_account' referenced before assignment even when boot_diagnostics enabled is set to no
#159
Closed
Akasurde opened this issue
Jun 14, 2020
· 4 comments
· Fixed by #200
I am trying to use ansible for creating virtual machines and its components in azure and Im stuck with the actual VM creation with the error mentioned in the title. I do not want the boot_diagnostics so I wanted to disable it with "enabled: no" but it is throwing the error
@Akasurde Thank you very much for submitting this problem. We will investigate. Until the problem is fixed, if you want to create boot_diagno=no, you can create the VM without specifying boot_, which defaults to False. Thank you very much!
From @mohankrishnavanga on Jun 14, 2020 07:55
SUMMARY
I am trying to use ansible for creating virtual machines and its components in azure and Im stuck with the actual VM creation with the error mentioned in the title. I do not want the boot_diagnostics so I wanted to disable it with "enabled: no" but it is throwing the error
ISSUE TYPE
COMPONENT NAME
azure_rm_virtualmachine
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 18.04-LTS (Azure VM)
STEPS TO REPRODUCE
EXPECTED RESULTS
Expected the VM to be created without any boot_diagnostics and errors.
ACTUAL RESULTS
Step for Create VM exits with error saying "UnboundLocalError: local variable 'boot_diag_storage_account' referenced before assignment"
Copied from original issue: ansible/ansible#70057
The text was updated successfully, but these errors were encountered: