Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.3k stars 1.96k forks source link

[FEATURE REQ] OneDeploy for Flex consumption SKU #40987

Closed weidongxu-microsoft closed 1 week ago

weidongxu-microsoft commented 2 months ago

To support function app deployment on new Flex consumption SKU, there needs to be an update to existing OneDeploy in Java SDK.

  1. Detect if the app is on flex consumption. If cannot detect, then may be add a parameter where user can specify SKU.
  2. If Flex consumption, then a. Pass 2 API parameters: RemoteBuild = false and deployer = JavaSDK. API example: /api/publish?RemoteBuild=false&deployer=JavaSDK b. Skip any other parameters and logic performed for existing SKUs
  3. If not flex consumption, then continue with existing logic.
XiaofeiCao commented 2 months ago

Azure CLI implementation from @Flanker32 : https://github.com/Azure/azure-cli/blob/dev/src/azure-cli/azure/cli/command_modules/appservice/custom.py#L720

weidongxu-microsoft commented 2 months ago

Thanks Xiaofei. Appears they really don't need the type query param.