Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Az Function, Run from Package - deploy via Azure DevOps #19672

Closed
yzorg opened this issue Nov 28, 2018 — with docs.microsoft.com · 5 comments
Closed

Az Function, Run from Package - deploy via Azure DevOps #19672

yzorg opened this issue Nov 28, 2018 — with docs.microsoft.com · 5 comments

Comments

Copy link

yzorg commented Nov 28, 2018

It took me a while to figure out how to use Run from package to deploy an Azure Function from Azure DevOps. It took me a while to realize the "Visual Studio Build" template will, by default, create a zip file for my Core 2.0 compiled function. I also had to change the variables in the "Azure App Services Deploy" step to find the zip file created by the build step. This isn't covered anywhere in your documentation.

In your Quickstarts you cover scenarios to deploy via Visual Studio (IDE wizard), VS Code (cloud shell), and Linux function (deployed via GIT, optionally built via Kudu). But no good reference covering the recommended deployment method (packages) via CI/CD using Azure DevOps.

This blog post from an Azure employee Jeff Hollan tries to cover this scenario, but all the VSTS templates are outdated, and screenshots are very outdated. (None of the checkboxes and options he describes are still there.) https://medium.com/microsoftazure/serverless-devops-and-ci-cd-part-2-b6e0a6d05530

I should mention this "Run from package" feature discussion is here: Azure/app-service-announcements-discussions#48, and is where David Ebbo was recommending this deployment method for new Core 2.0 deployments, but there's no follow-up notes covering how to use it with Azure DevOps.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@mikeurnun
Copy link
Contributor

Hi @yzorg Thank you for your feedback! We have assigned this issue to the author to investigate further and take the right course of action.

@yzorg
Copy link
Author

yzorg commented Nov 28, 2018

Jeff Hollan's medium post turned out to be what I needed, but I was misreading one of his steps and couldn't match my UI to his screenshots. Still might be a good idea to convert that to a doc.

(And possibly clarify his "build template" step so others don't repeat my mistake. I didn't know build template vs. build process steps that are visually similar.)

Copy link
Contributor

I am also using AzureDevops for #25727
I am using javascript however, and it would be great to just be able to drop in a build step to package everything up using webpack.

@alohaninja
Copy link
Contributor

alohaninja commented Apr 4, 2019

This isn't documented well that I could find either - but to save others time here are some screenshots and direction until it's posted. There are docs on the DevOps App Service Deployment task for reference.

Adding Azure App Service Deploy v4

image

Note: You can't use your existing App Service Deploy task - you MUST add a new one to see the latest v4 settings. Previously added App Service Deploy tasks will not have the latest settings.

Choosing Deployment Method

image

Assigning App Settings

image

Note: Not sure if this is required, but this makes your intentions clearer

@ggailey777
Copy link
Contributor

We now have a deployment article that feature Azure Pipelines

Please reopen this work item if the new article doesn't address your scenario. #please-close

cc. @ahmedelnably

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants