Sync eng/common directory with azure-sdk-tools for PR 10013 (#6455)

* Fix supportsSafeSecretStandard flag

* Update eng/common/TestResources/New-TestResources.ps1

---------

Co-authored-by: Deyaaeldeen Almahallawi <dealmaha@microsoft.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
This commit is contained in:
Azure SDK Bot 2025-03-10 09:50:59 -07:00 committed by GitHub
parent e3ebf9c230
commit 23df1f63e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -533,8 +533,7 @@ try {
# Some arm/bicep templates may want to change deployment settings like local auth in sandboxed TME tenants.
# The pipeline account context does not have the .Tenant.Name property, so check against subscription via
# naming convention instead.
$templateParameters.Add('supportsSafeSecretStandard', ($wellKnownTMETenants.Contains($TenantId)))
$templateParameters.Add('supportsSafeSecretStandard', (!$wellKnownTMETenants.Contains($TenantId)))
$defaultCloudParameters = LoadCloudConfig $Environment
MergeHashes $defaultCloudParameters $(Get-Variable templateParameters)
MergeHashes $ArmTemplateParameters $(Get-Variable templateParameters)