-
Notifications
You must be signed in to change notification settings - Fork 24
Azure devops build fails to deploy python function #45
Description
I am trying to deploy a python function to Azure function app using Linux ubuntu-18.04 agent.
It is failing with below error
Syncing triggers...
Request:
Method: POST, RequestUri: 'https://management.azure.com/subscriptions/XXXXXXXX/resourceGroups/XXXXX/providers/Microsoft.Web/sites/YYYYYYY/hostruntime/admin/host/synctriggers?api-version=2015-08-01', Version: 2.0, Content: System.Net.Http.StringContent, Headers:
{
Authorization:
User-Agent: functions-core-tools/2.7.1724
Accept: application/json
x-ms-request-id: b9f510cb-a473-4885-90df-7bf7de5dd730
Content-Type: application/json; charset=utf-8
}
null
Response:
StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.HttpConnection+HttpConnectionResponseContent, Headers:
{
Cache-Control: no-cache
Pragma: no-cache
Strict-Transport-Security: max-age=31536000; includeSubDomains
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
x-ms-ratelimit-remaining-subscription-writes: 1198
x-ms-request-id: a98cd971-21f5-42d0-9011-e944e847e5ed
x-ms-correlation-request-id: a98cd971-21f5-42d0-9011-e944e847e5ed
x-ms-routing-request-id: CENTRALUS:20191019T015647Z:a98cd971-21f5-42d0-9011-e944e847e5ed
X-Content-Type-Options: nosniff
Date: Sat, 19 Oct 2019 01:56:46 GMT
Content-Length: 331
Content-Type: application/json; charset=utf-8
Expires: -1
}
{"Code":"Unauthorized","Message":"Encountered an error (Forbidden) from extensions API.","Target":null,"Details":[{"Message":"Encountered an error (Forbidden) from extensions API."},{"Code":"Unauthorized"},{"ErrorEntity":{"Code":"Unauthorized","Message":"Encountered an error (Forbidden) from extensions API."}}],"Innererror":null}