Skip to content

Latest commit

 

History

History
 
 

testscripts

Testing scripts

These scripts are used by the engineering team to accelerate the testing process through deployment automation.

Workflow

  1. From terminal in the devcontainer start powershell

    pwsh
  2. Install the required PowerShell modules

    Install-Module Az
    Import-Module Az
  3. 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}
  4. Start a provision

    It is encouraged to use a distinct name for each deployment

    .\testscripts\setup.ps1 -NotIsolated -Development -CommonAppServicePlan -SingleLocation -Name reledev7 
  5. Run a deployment

    azd deploy
  6. 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