Skip to content

Commit 8a5dd35

Browse files
azure-sdkbenbp
andauthored
Add SSS3PT_ to stress resource group name calculation (#46662)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
1 parent 2ef9a72 commit 8a5dd35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eng/common/TestResources/New-TestResources.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ try {
311311
}
312312

313313
# This needs to happen after we set the TenantId but before we use the ResourceGroupName
314-
if ($wellKnownTMETenants.Contains($TenantId)) {
314+
if ($wellKnownTMETenants.Contains($TenantId) -and !$ResourceGroupName.StartsWith("SSS3PT_", [System.StringComparison]::OrdinalIgnoreCase)) {
315315
# Add a prefix to the resource group name to avoid flagging the usages of local auth
316316
# See details at https://eng.ms/docs/products/onecert-certificates-key-vault-and-dsms/key-vault-dsms/certandsecretmngmt/credfreefaqs#how-can-i-disable-s360-reporting-when-testing-customer-facing-3p-features-that-depend-on-use-of-unsafe-local-auth
317317
$ResourceGroupName = "SSS3PT_" + $ResourceGroupName

0 commit comments

Comments
 (0)