Azure-Samples / acme-fitness-store

Sample - how to deploy Spring Boot apps to Azure?
https://docs.microsoft.com/en-us/azure/spring-cloud/overview
MIT License
84 stars 157 forks source link

README.md az spring create, gives error #120

Closed chetan-galgali closed 11 months ago

chetan-galgali commented 1 year ago

Command: az spring create --name ${SPRING_APPS_SERVICE} \ --resource-group ${RESOURCE_GROUP} \ --location ${REGION} \ --sku Enterprise \ --enable-application-configuration-service \ --enable-service-registry \ --enable-gateway \ --enable-api-portal \ --enable-alv \ --enable-app-acc \ --build-pool-size S2

This command gives error as unrecognized arguments: --enable-alv --enable-app-acc

I even tried with --enable-application-live-view --enable-application-accelerator. But got the same error

maly7 commented 1 year ago

@chetan-galgali What version of the Azure Spring Apps CLI extension do you have installed?

chetan-galgali commented 1 year ago

1.1.5. Below is the complete output: az --version azure-cli 2.37.0 *

core 2.37.0 telemetry 1.0.6

Extensions: spring 1.1.5

Dependencies: msal 1.18.0b1 azure-mgmt-resource 21.1.0b1

maly7 commented 1 year ago

Looks like the CLI instructions in the README need to be updated. Would you please try updating the spring extension with az extension update --name spring?

chetan-galgali commented 1 year ago

@maly7 - I have the latest version. I was able to create the azure-spring-app, without those options. How do I update an existing service to enable live-view and app-accelerator?

az extension update --name spring No updates available for 'spring'. Use --debug for more information.

Thank you!

maly7 commented 1 year ago

You can use these instructions to enable them on an existing service:

maly7 commented 1 year ago

@chetan-galgali you might still have an issue with the CLI extension version.

My versions are:

azure-cli                         2.47.0

core                              2.47.0
telemetry                          1.0.8

Extensions:
application-insights              0.1.16
spring                            1.10.0

Dependencies:
msal                              1.20.0
azure-mgmt-resource               22.0.0

If you run into issues with the other instructions I sent, would you try removing and reinstalling the spring extension?

az extension remove --name spring
az extension add --name spring
dingmeng-xue commented 1 year ago

Hi @chetan-galgali , was your issue resolved?

microsoft-github-policy-service[bot] commented 1 year ago

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!