question

DharaniMoorthy-6167 avatar image
0 Votes"
DharaniMoorthy-6167 asked MayankBargali-MSFT commented

Azure Function App

We are having function app and deploy using azure Devops.Faced 403 error while deploying function app.

After we set below configuration it works like a charm.
WEBSITE_WEBDEPLOY_USE_SCM= false.

Can you please explain what this configuration means?
And why it throws 403 error before?

azure-functions
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.

1 Answer

MayankBargali-MSFT avatar image
0 Votes"
MayankBargali-MSFT answered MayankBargali-MSFT commented

@DharaniMoorthy-6167 Can you share the full exception trace. Are you observing the same error as mentioned here?
If you want to disable the SCM endpoint in order for deployments to work for linux web apps in case of web deploy. In order to achieve this the WEBSITE_WEBDEPLOY_USE_SCM app setting should be set to value as false. If you do not add this setting, web deploy will be unable to find the appropriate endpoint for deployment.

· 2
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.

I am trying to deploy windows .net application and I didn't got WEBSITE_WEBDEPLOY_USE_SCM app setting should be set to value as false this error.

In azure Devops release log only got IP forbidden.Error while deploying function app.

In the function app diagonse and analytics page no client IP are rejected at that time

0 Votes 0 ·

@DharaniMoorthy-6167 There might be some Access Restrictions that might be configure in your functions as mentioned in the stackoverflow discussion.

108399-image.png

There will no function app log or analytics log that will log this information as the request does reach the service as it was rejected before.

0 Votes 0 ·
image.png (21.2 KiB)