I saw a lot of posts about this issue. I want to create my pipeline from Azure DevOps to Azure App Service.
In DevOps I created my pipeline like:
pool:
name: Azure Pipelines
steps:
- task: DotNetCoreCLI@2
displayName: 'dotnet restore'
inputs:
command: restore
projects: |
**/PowerBIDashboard.csproj
**/PowerBIDashboard.Tests.csproj
- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
command: test
- task: DotNetCoreCLI@2
displayName: 'dotnet build'
inputs:
projects: '**/*.csproj'
arguments: '-o publish_output'
- task: ArchiveFiles@2
displayName: 'Archive Files'
inputs:
rootFolderOrFile: '$(System.DefaultWorkingDirectory)/publish_output'
includeRootFolder: false
archiveFile: '$(System.DefaultWorkingDirectory)/$(Build.BuildId).zip'
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
inputs:
PathtoPublish: '$(System.DefaultWorkingDirectory)/$(Build.BuildId).zip'
condition: succeededOrFailed()
In the Release I deploy the artifact to the App Service. In Kudu of the App Service, I can see all files.
I deleted the App Service and re-deploy with the same result. Then I try to deploy directly from Visual Studio but I have another error.
Then, I check the logs in Kudu and I found in the eventlog.xml those errors:
<Events>
<Event>
<System>
<Provider Name="ZipFS"/>
<EventID>0</EventID>
<Level>1</Level>
<Task>0</Task>
<Keywords>Keywords</Keywords>
<TimeCreated SystemTime="2020-10-10T16:24:34Z"/>
<EventRecordID>-1126954890</EventRecordID>
<Channel>Application</Channel>
<Computer>RD281878C97A29</Computer>
<Security/>
</System>
<EventData>
<Data>Failed to open siteversion.txt. ZipFS setup failed. Error: 0x80070003</Data>
</EventData>
</Event>
<Event>
<System>
<Provider Name="ZipFS"/>
<EventID>0</EventID>
<Level>1</Level>
<Task>0</Task>
<Keywords>Keywords</Keywords>
<TimeCreated SystemTime="2020-10-10T16:24:34Z"/>
<EventRecordID>-1126954875</EventRecordID>
<Channel>Application</Channel>
<Computer>RD281878C97A29</Computer>
<Security/>
</System>
<EventData>
<Data>Failed to copy zip from remote source.</Data>
</EventData>
</Event>
</Events>
Where am I doing something wrong?