From 1be084b68129386910971f15b9632300cc7f9e2f Mon Sep 17 00:00:00 2001 From: jolov Date: Wed, 24 Jan 2024 14:07:17 -0800 Subject: [PATCH] Rename --- eng/common/TestResources/New-TestResources.ps1 | 8 ++++---- eng/common/TestResources/New-TestResources.ps1.md | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/eng/common/TestResources/New-TestResources.ps1 b/eng/common/TestResources/New-TestResources.ps1 index bf822e8b8cbe0..0f997fd1e9f17 100644 --- a/eng/common/TestResources/New-TestResources.ps1 +++ b/eng/common/TestResources/New-TestResources.ps1 @@ -93,7 +93,7 @@ param ( [switch] $SuppressVsoCommands = ($null -eq $env:SYSTEM_TEAMPROJECTID), [Parameter()] - [switch] $UseUserCredentials, + [switch] $UserAuth, # Captures any arguments not declared here (no parameter errors) # This enables backwards compatibility with old script versions in @@ -614,9 +614,9 @@ try { } } - if ($UseUserCredentials) { + if ($UserAuth) { if ($TestApplicationId) { - Write-Warning "The specified TestApplicationId '$TestApplicationId' will be ignored when UseUserCredentials is set." + Write-Warning "The specified TestApplicationId '$TestApplicationId' will be ignored when UserAuth is set." } $TestApplicationOid = (Get-AzADUser -UserPrincipalName (Get-AzContext).Account).Id @@ -1013,7 +1013,7 @@ The environment file will be named for the test resources template that it was generated for. For ARM templates, it will be test-resources.json.env. For Bicep templates, test-resources.bicep.env. -.PARAMETER UseUserCredentials +.PARAMETER UserAuth Create the resource group and deploy the template using the signed in user's credentials. No service principal will be created or used. diff --git a/eng/common/TestResources/New-TestResources.ps1.md b/eng/common/TestResources/New-TestResources.ps1.md index cb1f7c1ac9f51..9cb6756d24d29 100644 --- a/eng/common/TestResources/New-TestResources.ps1.md +++ b/eng/common/TestResources/New-TestResources.ps1.md @@ -19,7 +19,7 @@ New-TestResources.ps1 [-BaseName ] [-ResourceGroupName ] [-Servi [-TestApplicationOid ] [-SubscriptionId ] [-DeleteAfterHours ] [-Location ] [-Environment ] [-ResourceType ] [-ArmTemplateParameters ] [-AdditionalParameters ] [-EnvironmentVariables ] [-CI] [-Force] [-OutFile] - [-SuppressVsoCommands] [-UseUserCredentials] [-NewTestResourcesRemainingArguments ] + [-SuppressVsoCommands] [-UserAuth] [-NewTestResourcesRemainingArguments ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -32,7 +32,7 @@ New-TestResources.ps1 [-BaseName ] [-ResourceGroupName ] [-Servi -ProvisionerApplicationSecret [-DeleteAfterHours ] [-Location ] [-Environment ] [-ResourceType ] [-ArmTemplateParameters ] [-AdditionalParameters ] [-EnvironmentVariables ] [-CI] [-Force] [-OutFile] - [-SuppressVsoCommands] [-UseUserCredentials] [-NewTestResourcesRemainingArguments ] + [-SuppressVsoCommands] [-UserAuth] [-NewTestResourcesRemainingArguments ] [-ProgressAction ] [-WhatIf] [-Confirm] [] ``` @@ -629,7 +629,7 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -UseUserCredentials +### -UserAuth Create the resource group and deploy the template using the signed in user's credentials. No service principal will be created or used.