Was able to get this working by adjusting the virtual directory.
Azure App Service app does not update even though build completes
rob evans
0
Reputation points Microsoft Employee
I'm not sure why my Azure Webapp (App service) isn't updating even though I see my updated code in the main
branch in ADO. I've tried restarting the app as well and no change.
I noticed that on kudu site/repository/
doesn't have the latest code.
This is my settings,
-
WEBSITE_RUN_FROM_PACKAGE = 1
-
WEBSITE_ENABLE_SYNC_UPDATE_SITE = true
-
WEBSITE_LOCAL_CACHE_OPTION = NEVER
-
WEBSITE_DYNAMIC_CACHE = 0
My YAML file is like so
trigger:
- main
stages:
- stage: SDL
jobs:
- <removed>
- stage: BuildAndDeploy
jobs:
- job: Build
displayName: 'Build and Publish'
pool:
vmImage: 'windows-latest'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
version: '6.x'
- task: ArchiveFiles@2
displayName: 'Archive project files'
inputs:
rootFolderOrFile: '$(Build.BinariesDirectory)'
includeRootFolder: true
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true
- task: PublishPipelineArtifact@1
displayName: 'Publish Artifact'
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'publishedApp'
publishLocation: 'pipeline'
- task: AzureRmWebAppDeployment@4
displayName: 'Azure Web App Deploy'
inputs:
ConnectionType: 'AzureRM'
azureSubscription: 'myappSubscription'
appType: 'webApp'
WebAppName: 'FMApp'
package: '$(Build.ArtifactStagingDirectory)/*.zip'
deploymentMethod: 'auto'
1 answer
Sort by: Most helpful
-
rob evans 0 Reputation points Microsoft Employee
2024-03-08T13:01:42.8566667+00:00