You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This needs to happen after we set the TenantId but before we use the ResourceGroupName
308
+
# This needs to happen after we set the TenantId but before we use the ResourceGroupName
300
309
if ($wellKnownTMETenants.Contains($TenantId)) {
301
310
# Add a prefix to the resource group name to avoid flagging the usages of local auth
302
311
# 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
@@ -364,9 +373,10 @@ try {
364
373
$ProvisionerApplicationOid=$sp.Id
365
374
}
366
375
367
-
$tags=@{
368
-
Owners= (GetUserName)
369
-
ServiceDirectory=$ServiceDirectory
376
+
$tags=@{ Owners= (GetUserName) }
377
+
378
+
if ($ServiceDirectory) {
379
+
$tags['ServiceDirectory'] =$ServiceDirectory
370
380
}
371
381
372
382
# Tag the resource group to be deleted after a certain number of hours.
0 commit comments