* Use SubscriptionId throughout TestResources Fixes #1454 * Resolve PR feedback * Default DeleteAfterHours to 48 for SDK team Also makes a few other adjustments for subscriptions, like restoring the previous one if available and another was specified. * Resolve PR feedback * Change deployment mode to Complete Also fixes an issue where if the user opted not to deploy to the same resource group, the script would continue execution anyway. * Use consistent aka links to satisfy link checker Only need it for the new Update-TestResources.ps1 script, but I wanted them to look consistent. Co-authored-by: Heath Stewart <heaths@microsoft.com>
18 lines
408 B
Batchfile
18 lines
408 B
Batchfile
@echo off
|
|
|
|
REM Copyright (c) Microsoft Corporation. All rights reserved.
|
|
REM Licensed under the MIT License.
|
|
|
|
setlocal
|
|
|
|
for /f "usebackq delims=" %%i in (`where pwsh 2^>nul`) do (
|
|
set _cmd=%%i
|
|
)
|
|
|
|
if "%_cmd%"=="" (
|
|
echo Error: PowerShell not found. Please visit https://github.com/powershell/powershell for install instructions.
|
|
exit /b 2
|
|
)
|
|
|
|
call "%_cmd%" -NoLogo -NoProfile -File "%~dpn0.ps1" %*
|