question

mattwoberts avatar image
1 Vote"
mattwoberts asked JoffreyNURIT-4769 edited

Deploying a .net core 3.0 web app to azure app service

Hi,

As per azure guidance, when we setup deployment for our azure app-service web app (dotnet core), we hooked azure app service up with Github, and when we push to a branch, the deployment script kicks in, and azure app service runs the deploy.cmd script, which then essentially does a "dotnet publish" of the web app, and then kuku-syncs that to the file system.

All fine, but now we've updated our app to dotnetcore 3.0. And the azure dotnet SDKs on app services are stuck to 2.2. So this isn't going to work any more - because obviously the 2.2 SDK can't build dotnet 3.0 apps.

I don't think there are any plans to update the SDK version - nothing imminent anyway, so I'm unsure what the expectation is on us and thousands of others I'm sure are in a similar situation. Are we supposed to install the SDK manually - via an extension? Or is this a way to try to move us all off and onto azure pipelines now (we don't have the resources to do this right now).

Thanks!

azure-webapps
· 8
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You should keep an eye on Azure, as .NET Core 3.1 support should be rolling out.

0 Votes 0 ·

I think Azure DevOps Pipelines is a better choice for CI/CD.

0 Votes 0 ·

While I agree, I'm struggling to get the deployment working in any form using pipelines, and we have a reasonably complex kudu-based deployment script that we don't reallly have the time to port right now.

0 Votes 0 ·

Scott Hanselman happened to blog just about it, https://www.hanselman.com/blog/UpdatingAnASPNETCore22WebSiteToNETCore31LTS.aspx But I agree with you that deployment pipeline is something tricky to use.

0 Votes 0 ·
Show more comments

What's failing in your CI/CD pipeline @mattwoberts?

0 Votes 0 ·

Yeah - I think I answered my own question - looks like there are delays getting the SDK out:

https://github.com/Azure/app-service-announcements-discussions/issues/118


0 Votes 0 ·

Then you should post your own answer and accept it.

0 Votes 0 ·

1 Answer

JoffreyNURIT-4769 avatar image
0 Votes"
JoffreyNURIT-4769 answered JoffreyNURIT-4769 edited

Hi @mattwoberts,

Some problems occurred with app service when you deploy a .net core 3.X app on an old app service. I have contacted Microsoft support and the problem have no answer for now.

But you can create another app service from scratch, with the same config (copy/paste yml configs), on .net core 3.X framework: all work fine for me.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.