From 3405557f447372335f3e85d73f7061d650102e1c Mon Sep 17 00:00:00 2001 From: Jonathan Chang Date: Tue, 22 Oct 2024 10:54:03 -0700 Subject: [PATCH] remove unused function --- dev-infrastructure/templates/maestro-consumer.bicep | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dev-infrastructure/templates/maestro-consumer.bicep b/dev-infrastructure/templates/maestro-consumer.bicep index 60f36e22..56e7bd52 100644 --- a/dev-infrastructure/templates/maestro-consumer.bicep +++ b/dev-infrastructure/templates/maestro-consumer.bicep @@ -44,14 +44,13 @@ resource mgmtUami 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' scope: resourceGroup(mgmtResourceGroup) } ] -func isValidMaestroConsumerName(input string) bool => length(input) <= 90 && contains(input, '[^a-zA-Z0-9_-]') == false module maestroConsumer '../modules/maestro/maestro-consumer.bicep' = if (deployMaestroConsumer) { name: 'maestro-consumer' params: { maestroServerManagedIdentityPrincipalId: mgmtUami[0].properties.principalId maestroInfraResourceGroup: regionalResourceGroup - maestroConsumerName: isValidMaestroConsumerName(resourceGroup().name) ? mgmtResourceGroup : '' + maestroConsumerName: mgmtResourceGroup maestroEventGridNamespaceName: maestroEventGridNamespacesName maestroKeyVaultName: maestroKeyVaultName maestroKeyVaultOfficerManagedIdentityName: maestroKeyVaultCertOfficerMSIName