From fa745eb9718387291df7bc98166c25834ae2c29f Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 1 Feb 2021 07:36:04 -0800 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 1351 (#16448) * tweaks to New-TestResources readme --- eng/common/TestResources/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eng/common/TestResources/README.md b/eng/common/TestResources/README.md index 2e2d72c9b52b..3aa1720107e3 100644 --- a/eng/common/TestResources/README.md +++ b/eng/common/TestResources/README.md @@ -30,7 +30,7 @@ Connect-AzAccount -Subscription 'YOUR SUBSCRIPTION ID' eng\common\TestResources\New-TestResources.ps1 -ServiceDirectory 'search' ``` -The `OutFile` switch would be set if you are running this for a .NET project on Windows. This will save test environment settings +The `OutFile` switch will be set by default if you are running this for a .NET project on Windows. This will save test environment settings into a test-resources.json.env file next to test-resources.json. The file is protected via DPAPI. The environment file would be scoped to the current repository directory and avoids the need to set environment variables or restart your IDE to recognize them. @@ -89,6 +89,12 @@ Remove-AzADServicePrincipal -ApplicationId $sp.ApplicationId -Force If you persisted environment variables, you should also remove those as well. +Some test-resources.json templates utilize the `AdditionalParameters` parameter to control additional resource configuration options. For example: + +```powershell +New-TestResources.ps1 keyvault -AdditionalParameters @{enableHsm = $true} +``` + ## In CI Test pipelines should include deploy-test-resources.yml and