adding additional parameters in bicep module

03Xoxo 0 Reputation points
2024-04-11T10:18:54.9733333+00:00

Need help with bicep module when when i set up container apps, how to control the value of the revision mode parameter, where the default value here is multiple, but then i need it to be set to single. getting error with this code-

properties: {
    managedEnvironmentId: containerAppEnvId
    configuration: {
      activeRevisionsMode: revisionmode == 'Multiple' ? 'Multiple' : 'Single'
      secrets: (!empty(secret)) ? secret : null
      ingress: {
        external: externalapp
        targetPort: targetPort
        allowInsecure: false
        traffic: [
          {
            latestRevision: true
            weight: 100 // set weight to 100 for all cases
          }
        ]
        ipSecurityRestrictions: ipSecurityRestrictions
      }
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
419 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.