How to set the ScmType for a Azure WebApp

2023-01-11T11:30:17.6433333+00:00

I cant seem to set the siteConfig for a webapp.

This command does nothing that I can see

az webapp update -g asinteuneuais001rg001 -n asinteuneuais001app002 --add siteConfig.scmType VSTSRM

When I try to set this value it keeps defaulting to the Container Registry screen and not the deployment logs

User's image

This is for the production slot only, the stage slot shows the deployment logs perfectlyUser's image

When I try to setup the SCM to Azure pipelines you cant save the setting?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,211 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 29,566 Reputation points Microsoft Employee
    2023-01-12T18:40:06.8866667+00:00

    @Cilliers Denis - Automation Solutions-MR when you want to change deployment type from container app, you will also need to clear/update the linuxFxVersion property under siteConfig. This property is pointing to the image/tag which tells the portal it's a container app.

    az webapp update --name appname --resource-group rg --set --% siteConfig.linuxFxVersion=DOTNETCORE|7.0

    Also, make sure you use set, instead of add to update existing siteConfig properties.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Cilliers Denis - Automation Solutions-MR 20 Reputation points
    2023-01-16T09:12:29.01+00:00

    After redeploying to the site it worked.

    User's image

    My mistake was to use the add and not the set in the command

    az webapp update -g asinteuneuais001rg001 -n asinteuneuais001app002 --set siteConfig.scmType VSTSRM
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.