Closed bastienmenis closed 4 years ago
@bastienmenis Please share debug logs with system.debug set as true.
@eaarora-ms Here are the logs of the deploy tasks as requested:
2019-11-25T12:12:49.0448232Z ##[debug]Evaluating condition for step: 'Deploy Azure App Service'
2019-11-25T12:12:49.0449260Z ##[debug]Evaluating: succeeded()
2019-11-25T12:12:49.0449430Z ##[debug]Evaluating succeeded:
2019-11-25T12:12:49.0449870Z ##[debug]=> True
2019-11-25T12:12:49.0450139Z ##[debug]Result: True
2019-11-25T12:12:49.0450405Z ##[section]Starting: Deploy Azure App Service
2019-11-25T12:12:49.0464558Z ==============================================================================
2019-11-25T12:12:49.0464685Z Task : Azure App Service deploy
2019-11-25T12:12:49.0464768Z Description : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2019-11-25T12:12:49.0464880Z Version : 4.157.4
2019-11-25T12:12:49.0464935Z Author : Microsoft Corporation
2019-11-25T12:12:49.0465023Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-rm-web-app-deployment
2019-11-25T12:12:49.0465109Z ==============================================================================
2019-11-25T12:12:49.1728855Z ##[debug]agent.TempDirectory=/home/vsts/work/_temp
2019-11-25T12:12:49.1752664Z ##[debug]loading inputs and endpoints
2019-11-25T12:12:49.1757453Z ##[debug]loading INPUT_CONNECTIONTYPE
2019-11-25T12:12:49.1768680Z ##[debug]loading INPUT_CONNECTEDSERVICENAME
2019-11-25T12:12:49.1771050Z ##[debug]loading INPUT_PUBLISHPROFILEPATH
2019-11-25T12:12:49.1772999Z ##[debug]loading INPUT_WEBAPPKIND
2019-11-25T12:12:49.1774463Z ##[debug]loading INPUT_WEBAPPNAME
2019-11-25T12:12:49.1775933Z ##[debug]loading INPUT_DEPLOYTOSLOTORASEFLAG
2019-11-25T12:12:49.1776609Z ##[debug]loading INPUT_SLOTNAME
2019-11-25T12:12:49.1777891Z ##[debug]loading INPUT_DOCKERIMAGETAG
2019-11-25T12:12:49.1778640Z ##[debug]loading INPUT_PACKAGE
2019-11-25T12:12:49.1779535Z ##[debug]loading INPUT_RUNTIMESTACKFUNCTION
2019-11-25T12:12:49.1780694Z ##[debug]loading INPUT_SCRIPTPATH
2019-11-25T12:12:49.1782093Z ##[debug]loading INPUT_APPSETTINGS
2019-11-25T12:12:49.1783495Z ##[debug]loading INPUT_USEWEBDEPLOY
2019-11-25T12:12:49.1784298Z ##[debug]loading INPUT_DEPLOYMENTTYPE
2019-11-25T12:12:49.1785582Z ##[debug]loading INPUT_TAKEAPPOFFLINEFLAG
2019-11-25T12:12:49.1786237Z ##[debug]loading INPUT_SETPARAMETERSFILE
2019-11-25T12:12:49.1787283Z ##[debug]loading INPUT_REMOVEADDITIONALFILESFLAG
2019-11-25T12:12:49.1789305Z ##[debug]loading INPUT_EXCLUDEFILESFROMAPPDATAFLAG
2019-11-25T12:12:49.1791161Z ##[debug]loading INPUT_RENAMEFILESFLAG
2019-11-25T12:12:49.1793267Z ##[debug]loading INPUT_XMLTRANSFORMATION
2019-11-25T12:12:49.1795161Z ##[debug]loading INPUT_XMLVARIABLESUBSTITUTION
2019-11-25T12:12:49.1798861Z ##[debug]loading ENDPOINT_AUTH_e2ba3c1f-8b9c-4107-ba83-b8b40c726a78
2019-11-25T12:12:49.1799657Z ##[debug]loading ENDPOINT_AUTH_SCHEME_e2ba3c1f-8b9c-4107-ba83-b8b40c726a78
2019-11-25T12:12:49.1801833Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_e2ba3c1f-8b9c-4107-ba83-b8b40c726a78_TENANTID
2019-11-25T12:12:49.1804383Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_e2ba3c1f-8b9c-4107-ba83-b8b40c726a78_SERVICEPRINCIPALID
2019-11-25T12:12:49.1805395Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_e2ba3c1f-8b9c-4107-ba83-b8b40c726a78_AUTHENTICATIONTYPE
2019-11-25T12:12:49.1809246Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_e2ba3c1f-8b9c-4107-ba83-b8b40c726a78_SERVICEPRINCIPALKEY
2019-11-25T12:12:49.1812967Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2019-11-25T12:12:49.1818164Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2019-11-25T12:12:49.1820278Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2019-11-25T12:12:49.1824148Z ##[debug]loaded 30
2019-11-25T12:12:49.1841906Z ##[debug]Agent.ProxyUrl=undefined
2019-11-25T12:12:49.1847079Z ##[debug]Agent.CAInfo=undefined
2019-11-25T12:12:49.1847277Z ##[debug]Agent.ClientCert=undefined
2019-11-25T12:12:49.1847387Z ##[debug]Agent.SkipCertValidation=undefined
2019-11-25T12:12:49.3914121Z ##[debug]agent.proxyurl=undefined
2019-11-25T12:12:49.3914409Z ##[debug]VSTS_ARM_REST_IGNORE_SSL_ERRORS=undefined
2019-11-25T12:12:49.3915548Z ##[debug]AZURE_HTTP_USER_AGENT=VSTS_2b581a90-683e-455d-a39b-32f6d5d34f90_Release__582_582_1
2019-11-25T12:12:49.4527131Z ##[debug]Agent.TempDirectory=/home/vsts/work/_temp
2019-11-25T12:12:49.4720909Z ##[debug]check path : /home/vsts/work/_tasks/AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1/4.157.4/task.json
2019-11-25T12:12:49.4721556Z ##[debug]adding resource file: /home/vsts/work/_tasks/AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1/4.157.4/task.json
2019-11-25T12:12:49.4722089Z ##[debug]system.culture=en-US
2019-11-25T12:12:49.4848221Z ##[debug]check path : /home/vsts/work/_tasks/AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1/4.157.4/node_modules/azure-arm-rest-v2/module.json
2019-11-25T12:12:49.4848734Z ##[debug]adding resource file: /home/vsts/work/_tasks/AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1/4.157.4/node_modules/azure-arm-rest-v2/module.json
2019-11-25T12:12:49.4849091Z ##[debug]system.culture=en-US
2019-11-25T12:12:49.4868399Z ##[debug]check path : /home/vsts/work/_tasks/AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1/4.157.4/node_modules/webdeployment-common-v2/module.json
2019-11-25T12:12:49.4868899Z ##[debug]adding resource file: /home/vsts/work/_tasks/AzureRmWebAppDeployment_497d490f-eea7-4f2b-ab94-48d9c1acdcb1/4.157.4/node_modules/webdeployment-common-v2/module.json
2019-11-25T12:12:49.4869243Z ##[debug]system.culture=en-US
2019-11-25T12:12:49.4886689Z ##[debug]ConnectionType=AzureRM
2019-11-25T12:12:49.4889523Z ##[debug]WebAppKind=functionAppLinux
2019-11-25T12:12:49.4890847Z ##[debug]DeployToSlotOrASEFlag=false
2019-11-25T12:12:49.4890958Z ##[debug]GenerateWebConfig=null
2019-11-25T12:12:49.4898762Z ##[debug]WebConfigParameters=null
2019-11-25T12:12:49.4900309Z ##[debug]XmlTransformation=false
2019-11-25T12:12:49.4901463Z ##[debug]JSONFiles=null
2019-11-25T12:12:49.4901865Z ##[debug]XmlVariableSubstitution=false
2019-11-25T12:12:49.4903008Z ##[debug]TakeAppOfflineFlag=true
2019-11-25T12:12:49.4903177Z ##[debug]RenameFilesFlag=true
2019-11-25T12:12:49.4903298Z ##[debug]AdditionalArguments=null
2019-11-25T12:12:49.4903446Z ##[debug]ScriptType=null
2019-11-25T12:12:49.4903594Z ##[debug]InlineScript=null
2019-11-25T12:12:49.4903744Z ##[debug]ScriptPath=/home/vsts/work/r1/a
2019-11-25T12:12:49.4903848Z ##[debug]DockerNamespace=null
2019-11-25T12:12:49.4904775Z ##[debug]AppSettings=-AzureWebJobsStorage DefaultEndpointsProtocol=https;AccountName=mcwstoragedev;AccountKey=Opw4ZUy6nCHeJUU84WseQWXqcaqV8tlj80nwtlmuf5qbzz+XAFyiG/cU5pewU4DQImPG3tMCMIzlihoutJZOhg==;EndpointSuffix=core.windows.net -EventHubConnection Endpoint=sb://eh-datapipeline-dev.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=KIh+gw3zIaT/Vj9Dsyn/V5RBTueZYbrCbFVRJeJ0Bmo= -IOT_HUB_CONNECTION_STRING HostName=mcw-iot-hub-dev.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=wULVJCzdTj+vP1CIu4uEoYE/VzGmIpXAyiJbxXracwU= -COSMOS_ENDPOINT https://mcw-metadata-dev.documents.azure.com:443/ -COSMOS_KEY sgktxLXTMGgvPJ8cz8KqG0uKCRUAgujIkKbwkDlnl9xtbL9jZceYogcbaebfACAwR1O4P2WZpcD4cGVM5Wr07A== -COSMOS_DATABASE metadata -COSMOS_ENTITIES_CONTAINER entities -COSMOS_ENTITIES_CACHE_PERIOD_MINUTES 30 -COSMOS_TEMPLATES_CONTAINER templates -IOT_HUB_HOST_NAME mcw-iot-hub-dev.azure-devices.net -IOT_DB_CLIENT mysql -IOT_DB_HOST mcw-mysql-dev.mysql.database.azure.com -IOT_DB_PORT 3306 -IOT_DB_USER mcwadmin@mcw-mysql-dev -IOT_DB_PASSWORD _9vAxbp<@E7T=}pA -IOT_DB_NAME iot
2019-11-25T12:12:49.4905255Z ##[debug]StartupCommand=null
2019-11-25T12:12:49.4905405Z ##[debug]ConfigurationSettings=null
2019-11-25T12:12:49.4905788Z ##[debug]ConnectedServiceName=e2ba3c1f-8b9c-4107-ba83-b8b40c726a78
2019-11-25T12:12:49.4906098Z ##[debug]WebAppName=mcw-devicetwin-pipeline-dev
2019-11-25T12:12:49.5207190Z ##[debug]Processed: ##vso[telemetry.publish area=TaskEndpointId;feature=AzureRmWebAppDeployment]{"endpointId":"e2ba3c1f-8b9c-4107-ba83-b8b40c726a78"}
2019-11-25T12:12:49.5207935Z ##[debug]Package=/home/vsts/work/r1/a/**/*.zip
2019-11-25T12:12:49.5208123Z ##[debug]Finding files matching input: /home/vsts/work/r1/a/**/*.zip
2019-11-25T12:12:49.5208572Z ##[debug]Matching glob pattern: /home/vsts/work/r1/a/**/*.zip
2019-11-25T12:12:49.5208720Z ##[debug]Index of first wildcard: 21
2019-11-25T12:12:49.5208841Z ##[debug]find root dir: /home/vsts/work/r1/a/
2019-11-25T12:12:49.5209516Z ##[debug]findPath: '/home/vsts/work/r1/a/'
2019-11-25T12:12:49.5209896Z ##[debug]findOptions.allowBrokenSymbolicLinks: 'false'
2019-11-25T12:12:49.5210151Z ##[debug]findOptions.followSpecifiedSymbolicLink: 'true'
2019-11-25T12:12:49.5210389Z ##[debug]findOptions.followSymbolicLinks: 'true'
2019-11-25T12:12:49.5210501Z ##[debug] /home/vsts/work/r1/a/ (directory)
2019-11-25T12:12:49.5210649Z ##[debug] /home/vsts/work/r1/a/_Device Twin Pipeline Functions (directory)
2019-11-25T12:12:49.5210786Z ##[debug] /home/vsts/work/r1/a/_Device Twin Pipeline Functions/drop (directory)
2019-11-25T12:12:49.5210926Z ##[debug] /home/vsts/work/r1/a/_Device Twin Pipeline Functions/drop/523.zip (file)
2019-11-25T12:12:49.5211044Z ##[debug]4 results
2019-11-25T12:12:49.5211595Z ##[debug]patternRoot: ''
2019-11-25T12:12:49.5211881Z ##[debug]matchOptions.debug: 'undefined'
2019-11-25T12:12:49.5212123Z ##[debug]matchOptions.nobrace: 'undefined'
2019-11-25T12:12:49.5212344Z ##[debug]matchOptions.noglobstar: 'undefined'
2019-11-25T12:12:49.5212581Z ##[debug]matchOptions.dot: 'undefined'
2019-11-25T12:12:49.5212811Z ##[debug]matchOptions.noext: 'undefined'
2019-11-25T12:12:49.5213030Z ##[debug]matchOptions.nocase: 'false'
2019-11-25T12:12:49.5213304Z ##[debug]matchOptions.nonull: 'undefined'
2019-11-25T12:12:49.5213535Z ##[debug]matchOptions.matchBase: 'true'
2019-11-25T12:12:49.5213770Z ##[debug]matchOptions.nocomment: 'undefined'
2019-11-25T12:12:49.5214214Z ##[debug]matchOptions.nonegate: 'undefined'
2019-11-25T12:12:49.5214461Z ##[debug]matchOptions.flipNegate: 'undefined'
2019-11-25T12:12:49.5214698Z ##[debug]pattern: '/home/vsts/work/r1/a/**/*.zip'
2019-11-25T12:12:49.5214808Z ##[debug]expanding braces
2019-11-25T12:12:49.5214936Z ##[debug]applying include pattern against original list
2019-11-25T12:12:49.5215054Z ##[debug]1 matches
2019-11-25T12:12:49.5215187Z ##[debug]1 final results
2019-11-25T12:12:49.5215289Z ##[debug]intially web config parameters :null
2019-11-25T12:12:49.5215420Z ##[debug]This is zip package
2019-11-25T12:12:49.5215688Z ##[debug]RuntimeStackFunction=DOCKER|microsoft/azure-functions-node8:2.0
2019-11-25T12:12:49.5215809Z ##[debug]Depolyment started for linux app service
2019-11-25T12:12:49.5215944Z ##[debug]release.releaseId=582
2019-11-25T12:12:49.5216069Z ##[debug]system.defaultworkingdirectory=/home/vsts/work/r1/a
2019-11-25T12:12:49.5216203Z ##[debug]release.artifacts._Device Twin Pipeline Functions.definitionId=20
2019-11-25T12:12:49.5216336Z ##[debug]Artifact alias of package is: _Device Twin Pipeline Functions
2019-11-25T12:12:49.5216478Z ##[debug]set Azure_App_Service_Deploy_PackageArtifactAlias=_Device Twin Pipeline Functions
2019-11-25T12:12:49.5216825Z ##[debug]Processed: ##vso[task.setvariable variable=Azure_App_Service_Deploy_PackageArtifactAlias;issecret=false;]_Device Twin Pipeline Functions
2019-11-25T12:12:49.5216988Z ##[debug]Predeployment Step Started
2019-11-25T12:12:49.5217281Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 data subscriptionid = 91c8eaee-cc33-4977-a96a-35b7a7ff2c8f
2019-11-25T12:12:49.5217552Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 data subscriptionname = Connected_Workspace
2019-11-25T12:12:49.5218033Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 auth param serviceprincipalid = ***
2019-11-25T12:12:49.5218303Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 data environmentAuthorityUrl = https://login.windows.net/
2019-11-25T12:12:49.5218602Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 auth param tenantid = ***
2019-11-25T12:12:49.5218858Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78=https://management.azure.com/
2019-11-25T12:12:49.5219098Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 data environment = AzureCloud
2019-11-25T12:12:49.5219336Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 auth scheme = ServicePrincipal
2019-11-25T12:12:49.5219743Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 data msiclientId = undefined
2019-11-25T12:12:49.5220016Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 data activeDirectoryServiceEndpointResourceId = https://management.core.windows.net/
2019-11-25T12:12:49.5220314Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 data AzureKeyVaultServiceEndpointResourceId = https://vault.azure.net
2019-11-25T12:12:49.5220597Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 data AzureKeyVaultDnsSuffix = vault.azure.net
2019-11-25T12:12:49.5220845Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 data ScopeLevel = Subscription
2019-11-25T12:12:49.5221155Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 auth param authenticationType = ***
2019-11-25T12:12:49.5221742Z ##[debug]credentials spn endpoint
2019-11-25T12:12:49.5222240Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 auth param serviceprincipalkey = ***
2019-11-25T12:12:49.5222563Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 data EnableAdfsAuthentication = false
2019-11-25T12:12:49.5222818Z ##[debug]e2ba3c1f-8b9c-4107-ba83-b8b40c726a78 auth param apitoken = null
2019-11-25T12:12:49.5223625Z ##[debug]{"subscriptionID":"91c8eaee-cc33-4977-a96a-35b7a7ff2c8f","subscriptionName":"Connected_Workspace","servicePrincipalClientID":"***","environmentAuthorityUrl":"https://login.windows.net/","tenantID":"***","url":"https://management.azure.com/","environment":"AzureCloud","scheme":"ServicePrincipal","activeDirectoryResourceID":"https://management.azure.com/","azureKeyVaultServiceEndpointResourceId":"https://vault.azure.net","azureKeyVaultDnsSuffix":"vault.azure.net","scopeLevel":"Subscription","authenticationType":"***","servicePrincipalKey":***,"isADFSEnabled":false,"applicationTokenCredentials":{"clientId":"***","domain":"***","baseUrl":"https://management.azure.com/","authorityUrl":"https://login.windows.net/","activeDirectoryResourceId":"https://management.azure.com/","isAzureStackEnvironment":false,"authType":"***","secret":***,"isADFSEnabled":false,"accessToken":null}}
2019-11-25T12:12:49.5224422Z Got service connection details for Azure App Service:'mcw-devicetwin-pipeline-dev'
2019-11-25T12:12:49.5224750Z ##[debug][POST]https://login.windows.net/***/oauth2/token/
2019-11-25T12:12:49.6476290Z ##[debug][GET]https://management.azure.com/subscriptions/91c8eaee-cc33-4977-a96a-35b7a7ff2c8f/resources?$filter=resourceType EQ 'Microsoft.Web%2FSites' AND name EQ 'mcw-devicetwin-pipeline-dev'&api-version=2016-07-01
2019-11-25T12:12:49.7914337Z ##[debug][POST]https://management.azure.com/subscriptions/91c8eaee-cc33-4977-a96a-35b7a7ff2c8f/resourceGroups/mcw-rg-dev/providers/Microsoft.Web/sites/mcw-devicetwin-pipeline-dev/config/publishingcredentials/list?api-version=2016-08-01
2019-11-25T12:12:52.6982624Z ##[debug]set AZURE_APP_SERVICE_KUDU_production_PASSWORD=********
2019-11-25T12:12:52.6987149Z ##[debug]Processed: ##vso[task.setvariable variable=AZURE_APP_SERVICE_KUDU_production_PASSWORD;issecret=true;]***
2019-11-25T12:12:52.6995083Z ##[debug]Resource Group: mcw-rg-dev
2019-11-25T12:12:52.6995244Z ##[debug]Deployment Step Started
2019-11-25T12:12:52.7152622Z ##[debug]Processed: ##vso[telemetry.publish area=TaskDeploymentMethod;feature=AzureWebAppDeployment]{"deploymentMethod":"Zip Deploy"}
2019-11-25T12:12:52.7153524Z ##[debug]Performing Linux built-in package deployment
2019-11-25T12:12:52.7153687Z Updating App Service Application settings. Data: {"FUNCTIONS_WORKER_RUNTIME":"node","WEBSITES_ENABLE_APP_SERVICE_STORAGE":"true"}
2019-11-25T12:12:52.7154088Z ##[debug][POST]https://management.azure.com/subscriptions/91c8eaee-cc33-4977-a96a-35b7a7ff2c8f/resourceGroups/mcw-rg-dev/providers/Microsoft.Web/sites/mcw-devicetwin-pipeline-dev/config/appsettings/list?api-version=2016-08-01
2019-11-25T12:12:52.8396172Z Updated App Service Application settings and Kudu Application settings.
2019-11-25T12:12:52.8400196Z ##[debug]warming up Kudu Service
2019-11-25T12:12:52.8410645Z ##[debug][GET]https://$mcw-devicetwin-pipeline-dev:***@mcw-devicetwin-pipeline-dev.scm.azurewebsites.net/api/settings
2019-11-25T12:12:52.9559640Z ##[debug]Could not parse response: {}
2019-11-25T12:12:52.9559906Z ##[debug]Response: undefined
2019-11-25T12:12:52.9560532Z ##[debug]Encountered a retriable status code: 503. Message: 'Site Unavailable'.
2019-11-25T12:12:54.9585418Z ##[debug][GET]https://$mcw-devicetwin-pipeline-dev:***@mcw-devicetwin-pipeline-dev.scm.azurewebsites.net/api/settings
2019-11-25T12:12:55.0267129Z ##[debug]Could not parse response: {}
2019-11-25T12:12:55.0268076Z ##[debug]Response: undefined
2019-11-25T12:12:55.0270583Z ##[debug]Encountered a retriable status code: 503. Message: 'Site Unavailable'.
2019-11-25T12:13:01.0291811Z ##[debug][GET]https://$mcw-devicetwin-pipeline-dev:***@mcw-devicetwin-pipeline-dev.scm.azurewebsites.net/api/settings
2019-11-25T12:13:01.1190974Z ##[debug]Could not parse response: {}
2019-11-25T12:13:01.1191792Z ##[debug]Response: undefined
2019-11-25T12:13:01.1192726Z ##[debug]Encountered a retriable status code: 503. Message: 'Site Unavailable'.
2019-11-25T12:13:15.1340042Z ##[debug][GET]https://$mcw-devicetwin-pipeline-dev:***@mcw-devicetwin-pipeline-dev.scm.azurewebsites.net/api/settings
2019-11-25T12:13:15.2044492Z ##[debug]Could not parse response: {}
2019-11-25T12:13:15.2045107Z ##[debug]Response: undefined
2019-11-25T12:13:15.2045779Z ##[debug]Encountered a retriable status code: 503. Message: 'Site Unavailable'.
2019-11-25T12:13:45.2251573Z ##[debug][GET]https://$mcw-devicetwin-pipeline-dev:***@mcw-devicetwin-pipeline-dev.scm.azurewebsites.net/api/settings
2019-11-25T12:13:45.3033368Z ##[debug]Could not parse response: {}
2019-11-25T12:13:45.3033792Z ##[debug]Response: undefined
2019-11-25T12:13:45.3037006Z ##[debug]getAppSettings. Data: {"statusCode":503,"statusMessage":"Site Unavailable","headers":{"content-type":"text/html","server":"Microsoft-IIS/10.0","date":"Mon, 25 Nov 2019 12:13:44 GMT","connection":"close","content-length":"27"},"body":"The service is unavailable."}
2019-11-25T12:13:45.3042085Z ##[debug]Failed to warm-up Kudu: Error: Failed to fetch Kudu App Settings. Error: Site Unavailable (CODE: 503)
2019-11-25T12:13:45.3045388Z Package deployment using ZIP Deploy initiated.
2019-11-25T12:13:45.3144383Z ##[debug][POST]https://$mcw-devicetwin-pipeline-dev:***@mcw-devicetwin-pipeline-dev.scm.azurewebsites.net/api/zipdeploy?isAsync=true&deployer=VSTS_ZIP_DEPLOY
2019-11-25T12:13:45.8885617Z ##[debug]Could not parse response: {}
2019-11-25T12:13:45.8885824Z ##[debug]Response: undefined
2019-11-25T12:13:45.8886529Z ##[debug]Encountered a retriable status code: 503. Message: 'Site Unavailable'.
2019-11-25T12:13:47.3886175Z ##[debug][POST]https://$mcw-devicetwin-pipeline-dev:***@mcw-devicetwin-pipeline-dev.scm.azurewebsites.net/api/zipdeploy?isAsync=true&deployer=VSTS_ZIP_DEPLOY
2019-11-25T12:13:47.4736876Z ##[debug]Could not parse response: {}
2019-11-25T12:13:47.4737084Z ##[debug]Response: undefined
2019-11-25T12:13:47.4739024Z ##[debug]Encountered a retriable status code: 503. Message: 'Site Unavailable'.
2019-11-25T12:13:53.4808736Z ##[debug][POST]https://$mcw-devicetwin-pipeline-dev:***@mcw-devicetwin-pipeline-dev.scm.azurewebsites.net/api/zipdeploy?isAsync=true&deployer=VSTS_ZIP_DEPLOY
2019-11-25T12:13:53.5690038Z ##[debug]Could not parse response: {}
2019-11-25T12:13:53.5690995Z ##[debug]Response: undefined
2019-11-25T12:13:53.5691996Z ##[debug]Encountered a retriable status code: 503. Message: 'Site Unavailable'.
2019-11-25T12:14:07.5758047Z ##[debug][POST]https://$mcw-devicetwin-pipeline-dev:***@mcw-devicetwin-pipeline-dev.scm.azurewebsites.net/api/zipdeploy?isAsync=true&deployer=VSTS_ZIP_DEPLOY
2019-11-25T12:14:07.6439898Z ##[debug]Could not parse response: {}
2019-11-25T12:14:07.6440879Z ##[debug]Response: undefined
2019-11-25T12:14:07.6441769Z ##[debug]Encountered a retriable status code: 503. Message: 'Site Unavailable'.
2019-11-25T12:14:37.6746474Z ##[debug][POST]https://$mcw-devicetwin-pipeline-dev:***@mcw-devicetwin-pipeline-dev.scm.azurewebsites.net/api/zipdeploy?isAsync=true&deployer=VSTS_ZIP_DEPLOY
2019-11-25T12:14:37.8065649Z ##[debug]Could not parse response: {}
2019-11-25T12:14:37.8066388Z ##[debug]Response: undefined
2019-11-25T12:14:37.8067495Z ##[debug]ZIP Deploy response: {"statusCode":503,"statusMessage":"Site Unavailable","headers":{"content-type":"text/html","server":"Microsoft-IIS/10.0","date":"Mon, 25 Nov 2019 12:14:36 GMT","connection":"close","content-length":"27"},"body":"The service is unavailable."}
2019-11-25T12:14:37.8142672Z ##[error]Failed to deploy web package to App Service.
2019-11-25T12:14:37.8154329Z ##[debug]Processed: ##vso[task.issue type=error;]Failed to deploy web package to App Service.
2019-11-25T12:14:37.8154927Z ##[debug]Deployment Failed with Error: Error: Error: Failed to deploy web package to App Service. Site Unavailable (CODE: 503)
2019-11-25T12:14:37.8155112Z ##[debug]task result: Failed
2019-11-25T12:14:37.8155453Z ##[error]Error: Error: Failed to deploy web package to App Service. Site Unavailable (CODE: 503)
2019-11-25T12:14:37.8155716Z ##[debug]Processed: ##vso[task.issue type=error;]Error: Error: Failed to deploy web package to App Service. Site Unavailable (CODE: 503)
2019-11-25T12:14:37.8156386Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Error: Failed to deploy web package to App Service. Site Unavailable (CODE: 503)
2019-11-25T12:14:37.8156915Z ##[debug][GET]https://management.azure.com/subscriptions/91c8eaee-cc33-4977-a96a-35b7a7ff2c8f/providers/microsoft.insights/components?$filter=InstrumentationKey eq '80114502-b0a2-48ce-808c-4baba810a0c3'&api-version=2015-05-01
2019-11-25T12:14:38.1066245Z ##[debug]Release.ReleaseUri=vstfs:///ReleaseManagement/Release/582
2019-11-25T12:14:38.1066424Z ##[debug]Build.BuildUri=vstfs:///Build/Build/523
2019-11-25T12:14:38.1067428Z ##[debug]Release.DefinitionName=Device Twin Pipeline Functions - dev
2019-11-25T12:14:38.1067716Z ##[debug]Release.ReleaseName=Release-18
2019-11-25T12:14:38.1067845Z ##[debug]Build.BuildUri=vstfs:///Build/Build/523
2019-11-25T12:14:38.1068113Z ##[debug]Release.ReleaseWebUrl=https://dev.azure.com/mitiecw/e1df5ce2-400a-4008-aec6-2ab6ce5ad799/_release?releaseId=582&_a=release-summary
2019-11-25T12:14:38.1068274Z ##[debug]System.TeamFoundationCollectionUri=https://dev.azure.com/mitiecw/
2019-11-25T12:14:38.1068527Z ##[debug]System.TeamProjectId=e1df5ce2-400a-4008-aec6-2ab6ce5ad799
2019-11-25T12:14:38.1068649Z ##[debug]build.buildId=523
2019-11-25T12:14:38.1072613Z ##[debug][PUT]https://management.azure.com/subscriptions/91c8eaee-cc33-4977-a96a-35b7a7ff2c8f/resourceGroups/mcw-rg-dev/providers/microsoft.insights/components/mcw-datapipeline-dev/Annotations?api-version=2015-05-01
2019-11-25T12:14:39.5210649Z ##[debug]addReleaseAnnotation. Data : {"statusCode":200,"statusMessage":"OK","headers":{"cache-control":"no-cache","pragma":"no-cache","content-length":"372","content-type":"application/json; charset=utf-8","expires":"-1","x-ms-request-id":"9ed9cdd2-65b0-4c3b-ab29-ccce5fabdbc0","x-content-type-options":"nosniff","request-context":"appId=cid-v1:920e14b1-13f3-461a-a4bb-b4fe6f1a4525","access-control-expose-headers":"Request-Context","strict-transport-security":"max-age=31536000; includeSubDomains","x-ms-ratelimit-remaining-subscription-writes":"1199","server":"Microsoft-IIS/10.0","x-powered-by":"ASP.NET","x-ms-correlation-request-id":"87023f74-8f53-4f9d-a5d4-ece19db4d2e0","x-ms-routing-request-id":"NORTHEUROPE:20191125T121439Z:87023f74-8f53-4f9d-a5d4-ece19db4d2e0","date":"Mon, 25 Nov 2019 12:14:39 GMT","connection":"close"},"body":[{"AnnotationName":"Device Twin Pipeline Functions - dev - Release-18","Id":"f0864370-6f24-4774-8a39-b07fe84beb5c","Category":"Text","Properties":"{\"Label\":\"Error\",\"Deployment Uri\":\"https://dev.azure.com/mitiecw/e1df5ce2-400a-4008-aec6-2ab6ce5ad799/_release?releaseId=582&_a=release-summary\"}","EventTime":"2019-11-25T12:14:38.106+00:00","RelatedAnnotation":null}]}
2019-11-25T12:14:39.5212430Z Successfully added release annotation to the Application Insight : mcw-datapipeline-dev
2019-11-25T12:14:39.5216677Z ##[debug]Azure_App_Service_Deploy_PackageArtifactAlias=_Device Twin Pipeline Functions
2019-11-25T12:14:39.5217473Z ##[debug]release.releaseId=582
2019-11-25T12:14:39.5218299Z ##[debug]release.releaseName=Release-18
2019-11-25T12:14:39.5218642Z ##[debug]system.TeamFoundationCollectionUri=https://dev.azure.com/mitiecw/
2019-11-25T12:14:39.5228451Z ##[debug]system.teamProjectId=e1df5ce2-400a-4008-aec6-2ab6ce5ad799
2019-11-25T12:14:39.5229007Z ##[debug]release.requestedfor=Bastien Menissier
2019-11-25T12:14:39.5229330Z ##[debug]Artifact Source Alias is: _Device Twin Pipeline Functions
2019-11-25T12:14:39.5229604Z ##[debug]release.artifacts._Device Twin Pipeline Functions.sourceVersion=a81349c5b1bbce2522968f397cef586c2c77a85d
2019-11-25T12:14:39.5229916Z ##[debug]release.artifacts._Device Twin Pipeline Functions.repository.provider=TfsGit
2019-11-25T12:14:39.5230480Z ##[debug]release.artifacts._Device Twin Pipeline Functions.repository.name=device-twin-pipeline-functions
2019-11-25T12:14:39.5230854Z ##[debug]release.artifacts._Device Twin Pipeline Functions.sourcebranchname=dev
2019-11-25T12:14:39.5231222Z ##[debug]release.artifacts._Device Twin Pipeline Functions.type=Build
2019-11-25T12:14:39.5231734Z ##[debug]release.artifacts._Device Twin Pipeline Functions.buildId=523
2019-11-25T12:14:39.5232049Z ##[debug]release.artifacts._Device Twin Pipeline Functions.buildNumber=523
2019-11-25T12:14:39.5232556Z ##[debug]release.artifacts._Device Twin Pipeline Functions.projectId=e1df5ce2-400a-4008-aec6-2ab6ce5ad799
2019-11-25T12:14:39.5232969Z ##[debug]build.buildUri=vstfs:///Build/Build/523
2019-11-25T12:14:39.5233268Z ##[debug]release.releaseUri=vstfs:///ReleaseManagement/Release/582
2019-11-25T12:14:39.5233522Z ##[debug]build.buildId=523
2019-11-25T12:14:39.5234056Z ##[debug]release.releaseId=582
2019-11-25T12:14:39.5234299Z ##[debug]build.buildNumber=523
2019-11-25T12:14:39.5234792Z ##[debug]release.releaseName=Release-18
2019-11-25T12:14:39.5235249Z ##[debug]system.TeamFoundationCollectionUri=https://dev.azure.com/mitiecw/
2019-11-25T12:14:39.5235727Z ##[debug]system.teamProjectId=e1df5ce2-400a-4008-aec6-2ab6ce5ad799
2019-11-25T12:14:39.5236123Z ##[debug]build.sourceVersion=a81349c5b1bbce2522968f397cef586c2c77a85d
2019-11-25T12:14:39.5236566Z ##[debug]build.repository.name=device-twin-pipeline-functions
2019-11-25T12:14:39.5236893Z ##[debug]build.repository.provider=TfsGit
2019-11-25T12:14:39.5237314Z ##[debug]system.teamproject=iot-soc
2019-11-25T12:14:39.5241346Z ##[debug][PUT]https://$mcw-devicetwin-pipeline-dev:***@mcw-devicetwin-pipeline-dev.scm.azurewebsites.net/api/deployments/5821574684079523
2019-11-25T12:14:39.6160748Z ##[debug]Could not parse response: {}
2019-11-25T12:14:39.6161029Z ##[debug]Response: undefined
2019-11-25T12:14:39.6164606Z ##[debug]updateDeployment. Data: {"statusCode":503,"statusMessage":"Site Unavailable","headers":{"content-type":"text/html","server":"Microsoft-IIS/10.0","date":"Mon, 25 Nov 2019 12:14:38 GMT","connection":"close","content-length":"27"},"body":"The service is unavailable."}
2019-11-25T12:14:39.6165985Z ##[warning]Error: Failed to update deployment history. Error: Site Unavailable (CODE: 503)
2019-11-25T12:14:39.6166423Z ##[debug]Processed: ##vso[task.issue type=warning;]Error: Failed to update deployment history. Error: Site Unavailable (CODE: 503)
2019-11-25T12:14:39.6166814Z ##[debug]Active DeploymentId :undefined
2019-11-25T12:14:39.6179449Z ##[debug][POST]https://management.azure.com/subscriptions/91c8eaee-cc33-4977-a96a-35b7a7ff2c8f/resourceGroups/mcw-rg-dev/providers/Microsoft.Web/sites/mcw-devicetwin-pipeline-dev/publishxml?api-version=2016-08-01
2019-11-25T12:14:39.7438766Z ##[debug]Could not parse response: {}
2019-11-25T12:14:39.7439503Z ##[debug]Response: undefined
2019-11-25T12:14:39.7564659Z App Service Application URL: http://mcw-devicetwin-pipeline-dev.azurewebsites.net
2019-11-25T12:14:39.7565537Z ##[debug]set AppServiceApplicationUrl=http://mcw-devicetwin-pipeline-dev.azurewebsites.net
2019-11-25T12:14:39.7566543Z ##[debug]Processed: ##vso[task.setvariable variable=AppServiceApplicationUrl;issecret=false;]http://mcw-devicetwin-pipeline-dev.azurewebsites.net
2019-11-25T12:14:39.7567129Z ##[debug]Deployment failed
2019-11-25T12:14:39.7705348Z ##[section]Finishing: Deploy Azure App Service
Hey, any solution for this? I'm facing the same issue, Consumption App Service Plan for functionapp,linux
and getting the same error
Failed to deploy web package to App Service. Site Unavailable (CODE: 503)
Me too, same issue
Hello, sorry for the delay in reply. Can you please try deploying using the AzureFunctionAppV1 (https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/AzureFunctionAppV1), we support the functionality of deploying Linux function app on consumption plan in this task. Thanks!
Please comment to re-open if you have any other issues.
Facing the same issue, any solution out there for this?
@ronakvpanchal just try the solution suggested by @eaarora-ms above, it worked for me.
Hello, sorry for the delay in reply. Can you please try deploying using the AzureFunctionAppV1 (https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/AzureFunctionAppV1), we support the functionality of deploying Linux function app on consumption plan in this task. Thanks!
Hello, sorry for the delay in reply. Can you please try deploying using the AzureFunctionAppV1 (https://github.com/microsoft/azure-pipelines-tasks/tree/master/Tasks/AzureFunctionAppV1), we support the functionality of deploying Linux function app on consumption plan in this task. Thanks!
I couldn't found any task in AzureFunctionAppV1 in azure devops release pipeline. Could you please help me for that ?
Hey, @pomtom, hope it helps
How about github actions, still facing this problem.
My deployment pipeline fails when deploying to a Linux host on a consumption plan, the same pipeline works when deploying to a Linux host on a Premium App Service plan.
I initially had an error, caused by the deploy task trying to build the app with Oryx. Not sure why it would do that since it is a zip deploy and the app is already built. I fixed that by settings the
SCM_DO_BUILD_DURING_DEPLOYMENT
variable tofalse
. Then I got a different error. Here is the log:The error message makes sense as according to the Azure Portal, Kudu is not supported for Linux apps on a consumption plan. I can see that the application settings are applied properly though, maybe the deploy task should skip checking the app settings after updating them?
Is this a bug or a configuration issue in my app or deploy task?