Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Chang committed Oct 22, 2024
1 parent 65da54e commit 3405557
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dev-infrastructure/templates/maestro-consumer.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3405557

Please sign in to comment.