microsoft / vscode-azurefunctions

Azure Functions extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions
MIT License
290 stars 131 forks source link

Use Stacks API for Flex Consumption SKU #4104

Closed nturinski closed 2 months ago

nturinski commented 2 months ago

There are some different requirements for the stack API when acquiring the runtimes

  1. Location is required as part of the endpoint URL. Due to this constraint, I moved the location step to be before the stacks step
  2. Stack is a required query parameter which is why I have the for loop of stacks
  3. If the stack has the Sku array under its LinuxRuntimeSettings, than it is flex compatible. All other runtimes have Sku as null.