azure-functions-pack icon indicating copy to clipboard operation
azure-functions-pack copied to clipboard

Portal file access is confused after using this

Open SteveALee opened this issue 7 years ago • 5 comments

Feel free to just close this as it's a pretty unusual use case but I'm raising it for the record.

So I installed and ran this in the Azure portal Functions Console (because I could) and then wanted to look at the files using the Functions Files UI - mainly to figure out what had been done. I had a single functions

When the Functions panel is opened the .funcpack/index.js is open which make sense I guess. However if you use the Files UI to explore other files it is impossible to get back the .funcpack/index.js

SteveALee avatar Mar 25 '17 17:03 SteveALee

@lindydonna - any idea why this would be?

christopheranderson avatar Mar 28 '17 17:03 christopheranderson

File viewer only allows access to function folder and below I think. .funcpack is in wrong place.

SteveALee avatar Mar 28 '17 17:03 SteveALee

@christopheranderson Can you tell me the layout that funcpack produces?

Note that the API for listing the functions within an app is in Kudu.

lindydonna avatar Apr 01 '17 01:04 lindydonna

So this produces a structure like:

-/.funcpack/index.js
-/foo/index.js
-/foo/function.json
-/bar/index.js
-/bar/function.json

I think the problem here is that you can't navigate back to .funcpack/index.js once you navigate away. If the file's tool in the portal let you navigate down the root of the Function App, that might help with this and other issues like shared libraries/node modules/etc.

christopheranderson avatar Apr 14 '17 17:04 christopheranderson

@christopheranderson Great point. I'll add this to the portal backlog. I'll have to work with the designer to find the right UX.

lindydonna avatar Apr 14 '17 17:04 lindydonna