shizn / quickpulse

Script used to provision quick pulse environments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Script files to provisition a VM for a quick pulse

The scripts on this repository will provision in an Azure Subscription a virtual machine with the required tools to run a quickpulse study.

Two resource groups will be created LABRG123 and QPRG123 (Note: the 123 id will change at each deployment). The VM for the participants to use is in the QPRG123 resource group and have MSI permissions on the LABRG123 resource group.

The VM deployed is runnig Windows Server 2019, Datacenter edition. Once the VM has been deployed we use the Run-AzCommand to execute PowerShell scripts on the target VM to install the needed tools.

End to end scripts available:

We currently have the following scripts:

In preview:

Pre-requisite

In order to run the scripts, you will need:

  • PowerShell 7: Install PowerShell
  • Latest Azure PowerShell module: Install Azure PowerShell
  • Install-Module -Name Az.ManagedServiceIdentity
  • Install-Module -Name Az.Security
  • Azure Security Center needs to be enabled for the subscription to create JIT policy: Navigate to the VM Configuration blade then click on Upgrade your Security Center Subscription to enable a just-in-time access.
  • A network security group needs to be attached to the VM for JIT rules.

Execute the script

Launch PowerShell 7 and execute the script using a command similar to this:

.\createQuickpulse-Functions.ps1 -SubscriptionId 00000000-0000-0000-0000-000000000000 -Owner John -VMPassword "Password"

Where 00000000-0000-0000-0000-000000000000 is the subscription Id where you want the lab to be deployed.

Using the environement

Once the environement has been deployed, you will need to connect to the vm that has been deployed The public IP address of this VM is displayed at the end of the script.

Help and support

Please open an issue.

About

Script used to provision quick pulse environments


Languages

Language:PowerShell 100.0%