vscode-azurefunctions icon indicating copy to clipboard operation
vscode-azurefunctions copied to clipboard

Creating a Function App throws "The api-version '2021-01-01' is invalid." error.

Open bpsims opened this issue 3 years ago • 4 comments
trafficstars

Windows 10 Azure Stack

After signing, click "Create Resource" icon, select "Create Function App in Azure...", enter name and runtime stack.
Immediately throws:

The api-version '2021-01-01' is invalid. The supported versions are '2020-06-01,2020-05-01,2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04,2015-11-01,2015-11-01'.

bpsims avatar Jun 08 '22 20:06 bpsims

This feature request is now a candidate for our backlog. The community has 240 days to upvote the issue. If it receives 5 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

AzCode-Bot avatar Jul 07 '22 05:07 AzCode-Bot

For App Services on Azure Stack Hub, the extension should use an API profile that is compatible with the target Azure Stack Hub region, such as 2020-09-01-hybrid. For more details on supported api-versions, see- https://docs.microsoft.com/azure-stack/user/azure-stack-version-profiles#azure-api-profiles-and-azure-stack-hub-compatibility Specifically for App Services (Microsoft.Web provider)- https://docs.microsoft.com/azure-stack/user/azure-stack-profiles-azure-resource-manager-versions#microsoftweb And implementation in .NET- https://docs.microsoft.com/azure-stack/user/azure-stack-version-profiles-net#profiles

alexsmithMSFT avatar Jul 07 '22 13:07 alexsmithMSFT

This issue might be better handled over in https://github.com/microsoft/vscode-azureappservice/issues

Either way, the API profile for AzureCustomCloud option should be locked into one of the hybrid profiles that is supported on Azure Stack Hub, like in https://github.com/microsoft/vscode-azureresourcegroups/pull/67

alexsmithMSFT avatar Jul 07 '22 18:07 alexsmithMSFT

Related to https://github.com/microsoft/vscode-azurefunctions/issues/2259

nturinski avatar Jul 14 '22 22:07 nturinski