Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions build/ci/evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,8 @@ functions:
- "image_id=/subscriptions/${azure_subscription_id}/resourceGroups/atlascli-image-resources/providers/Microsoft.Compute/images/${image}"
- -var
- "certificate_path=${certificate_path}"
- -var
- "admin_password=${azure_vm_admin_password}"
- command: shell.exec
params:
<<: *go_options
Expand Down
8 changes: 7 additions & 1 deletion build/ci/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ variable "certificate_path" {
default = "~/.ssh/id_rsa.pub"
}

variable "admin_password" {
type = string
description = "The admin password for the Windows VM"
sensitive = true
}

resource "azurerm_resource_group" "atlascli_vm_rg" {
name = "atlascli-resources"
location = "East US"
Expand Down Expand Up @@ -107,7 +113,7 @@ resource "azurerm_windows_virtual_machine" "atlascli_vm" {
resource_group_name = azurerm_resource_group.atlascli_vm_rg.name
size = "Standard_D2s_v3"
admin_username = "atlascli"
admin_password = "P@ssw0rd1234!"
admin_password = var.admin_password
network_interface_ids = [azurerm_network_interface.atlascli_vm_nic.id]
computer_name = "atlasclivm"
os_disk {
Expand Down
Loading