From 394383d798bebb29615d37440eed77b9e14bcc0e Mon Sep 17 00:00:00 2001 From: Yi Liu Date: Mon, 7 Aug 2023 10:05:31 +0800 Subject: [PATCH] support beta feature (#64) --- README.md | 10 ++++++---- azure.yaml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3b904096b..a7cd94cfc 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,15 @@ Let's jump in and get this up and running in Azure. When you are finished, you w The following prerequisites are required to use this application. Please ensure that you have them all installed locally. -- [Azure Developer CLI](https://aka.ms/azd-install) +- [Azure Developer CLI 1.2.0 or later](https://aka.ms/azd-install) - [Java 17 or later](https://learn.microsoft.com/java/openjdk/install) - for API backend - [Powershell 7](https://learn.microsoft.com/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3) if you use windows +If you are using Azure Developer CLI with the version lower than 1.2.0, then you will need to enable the feature for Azure Spring Apps support manually by the following command: +```bash +azd config set alpha.springapp on +``` + ### Quickstart To learn how to get started with any template, follow the steps in [this quickstart](https://learn.microsoft.com/azure/developer/azure-developer-cli/get-started?tabs=localinstall&pivots=programming-language-java) with this template(`Azure-Samples/spring-petclinic-microservices`). @@ -41,9 +46,6 @@ This quickstart will show you how to authenticate on Azure, initialize using a t # Log in to azd. Only required once per-install. azd auth login -# Enable Azure Spring Apps feature for AZD. Only required once per-install. -azd config set alpha.springapp on - # First-time project setup. Initialize a project in the current directory, using this template. azd init --template Azure-Samples/spring-petclinic-microservices diff --git a/azure.yaml b/azure.yaml index 8cff643e6..45d8eed02 100644 --- a/azure.yaml +++ b/azure.yaml @@ -1,4 +1,4 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/alpha/azure.yaml.json +# yaml-language-server: $schema=https://raw.githubusercontent.com/Azure/azure-dev/main/schemas/v1.0/azure.yaml.json name: spring-petclinic-microservices metadata: