0

I'm attempting to deploy a project to an Azure AppService using Azure DevOps.

I created the project via the .NET Core 3 angular template using dotnet new angular -o projectname.

When deploying to azure, I'm able to hit the APIs, but i get a 404 on the root. The webpage isn't loading.

I went into the Azure AppService editor to look at the deployed files. While the angular app is being built and published in the pipeline (and those assets make it into the zip file), those files are NOT being deployed to the app service in the release.

Files are in the zip, but not in the appservice?

I attempted to use unzip in the kudu console to force the files in, but i get this error: can't unzip

Any insight into this / suggestions?

Thanks.

2
  • I also noticed it didn't drop in the automapper dlls?? -- that zip is the "a.zip" highlighted in the AppServiceEditor. Commented Mar 6, 2020 at 14:09
  • Hi Did you have a try using the Extract files task in your pipeline as below answer mentioned? How did it go? Commented Mar 11, 2020 at 9:20

1 Answer 1

0

If you deployed your project to an Azure AppService using Azure DevOps. You can try adding a Extract files task to unzip the a.zip file in your pipeline before deploying to Azure.

For below example, configure the Archive file patterns and the Destination folder according to your project.

enter image description here

You can aslo add a Delete files task to remove the a.zip file from your artifacts after it has been unzipped in Extract files task .

Hope above helps!

Sign up to request clarification or add additional context in comments.

1 Comment

So, the a.zip file contains everything, and is the artifact from the build pipeline. It conatins the anuglar code AND the .net core code. And it seems that somehow the deployment task is selectively extracting only the .net core stuff?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.