DEV Community

Discussion on: Implement CI/CD with GitHub - Deploy Azure Functions

Collapse
 
urbanraven profile image
urbanraven • Edited

So I'm giving making a function app my first try, but apparently I'm not seeing what I should be. I can create the function app server either through power shell or the Azure portal. That's fine. My issues seem to be with VS Code and the Azure Extension. I'm attaching an image of what I see when I click the Azure icon. I'm on version v1.7.3, which I gather is the most current. I do not see the "Functions" category as in your proj01.png graphic. Instead, I see "Workspace". And while I can click the + icon there, my only option is to create a new Function, not a project. When I click that, I get an error saying my directory is not a Function App directory, and do I want to create a new one. If I say yes, it dumps all the new files into the root of the folder created in earlier steps without providing an option to select the subfolder created after cloning the repo. Any ideas? Or is this something that changed between versions?

Collapse
 
pwd9000 profile image
Marcel.L

Hey :)
When you create a new project using the vscode extension it should ask you to browse to the folder you wish to create the template in:
res.cloudinary.com/practicaldev/im...

Collapse
 
urbanraven profile image
urbanraven • Edited

The problem is, I'm never given an option to select a folder. When I click the Azure extension icon, I get three options: "Resources", "Workspace", and "Help and Feedback". Workspace does have a plus, which when clicked on allows you to "Create Function..." but when clicked, presents the error "The selected folder is not a function project. Create new project?" The options on this error window are Yes and Cancel. Clicking yes allows you to create the project but just dumps the newly created files into the root of the original folder (the one cloned from the earlier steps from GitHub.) At no point does it give me the option to select the subfolder we created.

I'm curious is this is a version difference, or if I have something set incorrectly. (I've tried attaching images to this and the previous messages showing what I am seeing...)

EDIT - Ok, did some testing with various versions of the Azure Extension. The feature used in this tutorial under the Azure Extension: Functions, disappears with the introduction of version 1.7.0. It seems "Functions" gets replaced with "Workspace" and a lot of icons go away, including the menu option for New Project. Bummer.