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
@@ -57,7 +57,8 @@ Once a VM has been created, you can apply Go-specific configuration to it by run
57
57
az vm run-command invoke \
58
58
--command-id=RunPowerShellScript \
59
59
--name="MyNewVM" \
60
-
--resource-group=dev_buildlets \
60
+
--subscription=<Development/Production> \
61
+
--resource-group=<dev/prod>_buildlets \
61
62
--scripts @startup.ps1
62
63
```
63
64
@@ -67,25 +68,27 @@ Notes:
67
68
68
69
* output from the command is in JSON
69
70
* exit status of the "az" command does NOT accurately reflect exit status of the powershell script.
71
+
* errors about things already existing are expected
72
+
73
+
## First login
74
+
75
+
Log into the new builder as "gopher" at least once so as to go through the "initial login" Windows workflow. Find the VM in the Azure portal, and enter the login in the Bastion section. Choose "no" on all the setup prompts.
70
76
71
77
## Follow-ons to disable antivirus
72
78
73
79
In later versions of windows, it can be very difficult to completely disable the system's antivirus software, due to "features" such as [tamper protection](https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/prevent-changes-to-security-settings-with-tamper-protection?view=o365-worldwide), which make it almost impossible to programmatically turn off windows defender (and which ensure that any changes made are undone when the system reboots).
74
80
75
-
Running this command should help somewhat:
81
+
Open Windows Security, Virus & threat protection, Manage settings, and turn off Tamper Protection. Then run this command:
76
82
77
83
```
78
84
az vm run-command invoke \
79
85
--command-id=RunPowerShellScript \
80
86
--name="MyNewVM" \
81
-
--resource-group=dev_buildlets \
87
+
--subscription=<Development/Production> \
88
+
--resource-group=<prod/dev>_buildlets \
82
89
--scripts @antivirusadditions.ps1
83
90
```
84
91
85
-
## First login
86
-
87
-
Log into the new builder as "gopher" at least once so as to go through the "initial login" Windows workflow.
88
-
89
92
## Builder key
90
93
91
94
Generate a builder key for the VMs according to the directions in [x/build/cmd/genbuilderkey](https://go.googlesource.com/build/+/fdfb99e1de1f68b555502056567be459d98a0e71/cmd/genbuilderkey/README.md).
0 commit comments