These scripts are used by the engineering team to accelerate the testing process through deployment automation.
-
From terminal in the devcontainer start powershell
pwsh
-
Install the required PowerShell modules
Install-Module Az
Import-Module Az
-
Validate your connection settings
Get-AzContext
azd config get defaults.subscription
-
If you are not authenticated then run the following to set your account context.
Connect-AzAccount
azd auth login
-
If you need to change your default subscription.
Set-AzContext -Subscription {your_subscription_id}
azd config set defaults.subscription {your_subscription_id}
-
-
Start a provision
It is encouraged to use a distinct name for each deployment
.\testscripts\setup.ps1 -NotIsolated -Development -CommonAppServicePlan -SingleLocation -Name reledev7
-
Run a deployment
azd deploy
-
Clean up a provisioned environment
Find the full name of the application resource group to be supplied as the value for ResourceGroup param
.\testscripts\cleanup.ps1 -ResourceGroup rg-reledev7-dev-westus3-application