title: Release from Azure DevOps to Azure App Service: "You do not have permission to view this directory or page"
body: <p>I saw a lot of posts about this issue. I want to create my pipeline from Azure DevOps to Azure App Service.</p>
  <p>In DevOps I created my pipeline like:</p>
  <pre><code>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()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/VcQjn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VcQjn.png" alt="enter image description here" /></a></p>
  <p>In the <strong>Release</strong> I deploy the artifact to the App Service. In <strong>Kudu</strong> of the App Service, I can see all files.</p>
  <p><a href="https://i.stack.imgur.com/kVS2m.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kVS2m.png" alt="enter image description here" /></a></p>
  <p>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.</p>
  <p><a href="https://i.stack.imgur.com/89WXs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/89WXs.png" alt="enter image description here" /></a></p>
  <p>Then, I check the logs in Kudu and I found in the eventlog.xml those errors:</p>
  <pre><code>&lt;Events&gt;
      &lt;Event&gt;
          &lt;System&gt;
              &lt;Provider Name=&quot;ZipFS&quot;/&gt;
              &lt;EventID&gt;0&lt;/EventID&gt;
              &lt;Level&gt;1&lt;/Level&gt;
              &lt;Task&gt;0&lt;/Task&gt;
              &lt;Keywords&gt;Keywords&lt;/Keywords&gt;
              &lt;TimeCreated SystemTime=&quot;2020-10-10T16:24:34Z&quot;/&gt;
              &lt;EventRecordID&gt;-1126954890&lt;/EventRecordID&gt;
              &lt;Channel&gt;Application&lt;/Channel&gt;
              &lt;Computer&gt;RD281878C97A29&lt;/Computer&gt;
              &lt;Security/&gt;
          &lt;/System&gt;
          &lt;EventData&gt;
              &lt;Data&gt;Failed to open siteversion.txt. ZipFS setup failed. Error: 0x80070003&lt;/Data&gt;
          &lt;/EventData&gt;
      &lt;/Event&gt;
      &lt;Event&gt;
          &lt;System&gt;
              &lt;Provider Name=&quot;ZipFS&quot;/&gt;
              &lt;EventID&gt;0&lt;/EventID&gt;
              &lt;Level&gt;1&lt;/Level&gt;
              &lt;Task&gt;0&lt;/Task&gt;
              &lt;Keywords&gt;Keywords&lt;/Keywords&gt;
              &lt;TimeCreated SystemTime=&quot;2020-10-10T16:24:34Z&quot;/&gt;
              &lt;EventRecordID&gt;-1126954875&lt;/EventRecordID&gt;
              &lt;Channel&gt;Application&lt;/Channel&gt;
              &lt;Computer&gt;RD281878C97A29&lt;/Computer&gt;
              &lt;Security/&gt;
          &lt;/System&gt;
          &lt;EventData&gt;
              &lt;Data&gt;Failed to copy zip from remote source.&lt;/Data&gt;
          &lt;/EventData&gt;
      &lt;/Event&gt;
  &lt;/Events&gt;
  </code></pre>
  <p>Where am I doing something wrong?</p>