bicep

  • Bicep Deployment of APIM API Operations

    Problem: Deploy your API Operations into APIM using BICEP Existing Deployment: Simple deployment (no request or response definitions etc…) Using a YAML driver:   – template: ../apimanagement/cli/apis/APIM.AddApi.yaml     parameters:       azureServiceConnection: ${{ parameters.azureServiceConnection }}       resourceGroupName: ‘$(coreResourceGroupName)’       apiManagementServiceName: ‘$(coreApimInstance)’       name: ‘oracle-erp-internal-api’       displayName: ‘Oracle ERP Internal API’       description: ‘Oracle Internal API for ERP’       path: ‘/oracle/internal/erp’ – template: ../apimanagement/cli/apis/APIM.AddApi.Operation.yaml     parameters:       azureServiceConnection: ${{ parameters.azureServiceConnection…

    Know More

  • Retrieving Bicep Output Variables between Yaml Tasks

    In the Bicep file you can output variables: output laPrincipalId string = logicAppResource.identity.principalId So how do I then pass these to another Yaml task? My first research found this perfect discussion: BICEP Output to Pipeline Variables #4638 So this is the task that populates the output variables as pipeline variables after the create resource task:…

    Know More

  • Bicep: Get the Trigger URL for a Consumption Logic App

      resource logicApp ‘Microsoft.Logic/workflows@2016-06-01’ = {   name: logicAppName   location: logicAppLocation   identity: {… }   properties: {…   } } output id         string = logicApp.id output version    string = logicApp.apiVersion output triggerUrl string = listCallbackURL(concat(logicApp.id, ‘/triggers/manual’), logicApp.apiVersion).value

    Know More

  • Deploy Logic App (Std) Workflow Disabled with Bicep/YAML

    In my yaml I send a the workflows in a pipe separated string e.g. “wf-one|wf-two|wf-three|wf-four” Then, in my bicep I populate an array of Workflow states app settings: var wfAppSettingStatuses = [ for wf in split(workflows,’|’): {   name: ‘Workflows.${wf}.FlowState’   value: ‘Disabled’  }] To add to the Logic App container configuration settings use the union function:…

    Know More