Azure / bicep-types-az

Bicep type definitions for ARM resources
MIT License
86 stars 27 forks source link

Branch Change Detection Failure in Microsoft.Web/sites/sourcecontrols #1978

Open FarzamMohammadi opened 11 months ago

FarzamMohammadi commented 11 months ago

Bicep Version I attempted to use three different versions, but none were successful:

Bug Description Encountered a problem with updating the branch in a Microsoft.Web/sites/sourcecontrols deployment. The expected outcome is for the App Service to deploy code from the newly set branch after redeployment. However, the App Service continues to deploy code from the original branch.

Steps to Reproduce

  1. Perform the initial deployment using Microsoft.Web/sites/sourcecontrols with the following Bicep script:
    resource srcControls 'Microsoft.Web/sites/sourcecontrols@2020-10-01' = {
      parent: appService
      name: 'web'
      properties: {
        repoUrl: <ANY_REPO>
        branch: 'test'
        isManualIntegration: true
      }
    }
  2. After the first deployment, re-run the same Microsoft.Web/sites/sourcecontrols deployment. Change the branch value to main (or any other branch different from the first deployment).
    resource srcControls 'Microsoft.Web/sites/sourcecontrols@2020-10-01' = {
      parent: appService
      name: 'web'
      properties: {
        repoUrl: <ANY_REPO>
        branch: 'main'
        isManualIntegration: true
      }
    }

Expected Behavior

Actual Behavior

alex-frankel commented 11 months ago

Adding @seligj95 to help triage

mikk3l1 commented 4 months ago

Any updates on this issue? :)

I use the 2023-12-01 version as this still seem to be an issue