File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -423,6 +423,8 @@ functions:
423423 - " image_id=/subscriptions/${azure_subscription_id}/resourceGroups/atlascli-image-resources/providers/Microsoft.Compute/images/${image}"
424424 - -var
425425 - " certificate_path=${certificate_path}"
426+ - -var
427+ - " admin_password=${azure_vm_admin_password}"
426428 - command : shell.exec
427429 params :
428430 << : *go_options
Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ variable "certificate_path" {
2727 default = " ~/.ssh/id_rsa.pub"
2828}
2929
30+ variable "admin_password" {
31+ type = string
32+ description = " The admin password for the Windows VM"
33+ sensitive = true
34+ }
35+
3036resource "azurerm_resource_group" "atlascli_vm_rg" {
3137 name = " atlascli-resources"
3238 location = " East US"
@@ -107,7 +113,7 @@ resource "azurerm_windows_virtual_machine" "atlascli_vm" {
107113 resource_group_name = azurerm_resource_group. atlascli_vm_rg . name
108114 size = " Standard_D2s_v3"
109115 admin_username = " atlascli"
110- admin_password = " P@ssw0rd1234! "
116+ admin_password = var . admin_password
111117 network_interface_ids = [azurerm_network_interface . atlascli_vm_nic . id ]
112118 computer_name = " atlasclivm"
113119 os_disk {
You can’t perform that action at this time.
0 commit comments