Provision With Systems Manager - State Association and Resource Groups

Опубликовано: 05 Октябрь 2024
на канале: Mark Bulmer
25
0

Step 1) Create a resource group
Step 2) Place servers in resource group
Step 3) Invoke State Association to Resource Group

-If setup correctly , steps 2 and 3 happen automatically as servers come online with the corresponding tags.

Here was the script I used for the State Association.

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
start-sleep -s 15
choco install googlechrome -y