Closed M0ns1gn0r closed 5 years ago
@M0ns1gn0r Hi, I am sorry but I am not able to repro the issue. I followed your exact steps and the function app is deployed, the functions are displayed on the portal and can be executed. Can you check if your package is correct and if the issue continues please share the pipeline logs with system.debug set as true.
@eaarora-ms still reproduces, the package is correct because the same deployment pipeline does deploy to a windows function (I only change the value of my functionAppName
variable).
Here is the log: DeploymentLog.txt
The logs are for windows app. Please share logs for Linux Function App as well.
For windows app? I am deploying a function app, there is no mention of windows in my pipeline:
- task: AzureFunctionApp@1
displayName: 'Deploy visits'
inputs:
azureSubscription: '$(azureSubscription)'
appType: functionApp
appName: $(functionAppName)
package: '$(Pipeline.Workspace)/drop/$(Build.BuildId).zip'
appSettings: >
-EventGridTopicKey $(eventGridTopicKey)
-EventGridTopicHostName $(eventGridTopicHostName)
-TopSecretThirdPartyApiKey "$(topSecretThirdPartyApiKey)"
@M0ns1gn0r appType:functionApp means that it is a windows function app. For Linux function app it is appType: functionAppLinux. Please check your pipeline variables and let us know if that is the cause of the problem. Just FYI, my YAML snippet looks like:
steps:
- task: AzureFunctionApp@1
displayName: 'Azure Function App Deploy'
inputs:
azureSubscription: '$(azureSubscription)'
appType: functionAppLinux
appName: '$(azureSubscription)'
package: '$(System.DefaultWorkingDirectory)/_adcf/Functions.zip'
It indeed works with appType: functionAppLinux
.
@eaarora-ms Could you please make the task return an error in case the target system OS doesn't match this setting (or even better, auto-detect the OS)? The current ##[debug]Deployment Succeded
message is misleading.
@M0ns1gn0r Sure will add that to our list of enhancements. Closing this.
Required Information
Type: Bug Enter Task Name: AzureFunctionApp@1
Environment
Issue Description
Repro:
Expected: the function app is deployed, the functions are displayed on the portal and can be executed. Actual: the app is not deployed, no functions on the portal, the target deployment location (watched via ftp) is empty.
(!) However, the deployment works if deployed from VS Code or if the Windows Consumption plan is selected.
Additional log:
I don't known what is going on there ^. But suspicious are the sizes and the number of files. My actual artifact ZIP is 7MB.