Start, stop, and delete an application in Azure Spring Apps
Note
Azure Spring Apps is the new name for the Azure Spring Cloud service. Although the service has a new name, you'll see the old name in some places for a while as we work to update assets such as screenshots, videos, and diagrams.
This article applies to: ✔️ Java ✔️ C#
This article applies to: ✔️ Basic/Standard tier ✔️ Enterprise tier
This guide explains how to change an application's state in Azure Spring Apps by using either the Azure portal or the Azure CLI.
Using the Azure portal
After you deploy an application, you can start, stop, and delete it by using the Azure portal.
- Go to your Azure Spring Apps service instance in the Azure portal.
- Select the Application Dashboard tab.
- Select the application whose state you want to change.
- On the Overview page for that application, select Start/Stop, Restart, or Delete.
Using the Azure CLI
Note
You can use optional parameters and configure defaults with the Azure CLI. Learn more about the Azure CLI by reading our reference documentation.
First, install the Azure Spring Apps extension for the Azure CLI as follows:
az extension add --name spring
Next, select any of these Azure CLI operations:
To start your application:
az spring app start -n <application name> -g <resource group> -s <Azure Spring Apps name>To stop your application:
az spring app stop -n <application name> -g <resource group> -s <Azure Spring Apps name>To restart your application:
az spring app restart -n <application name> -g <resource group> -s <Azure Spring Apps name>To delete your application:
az spring app delete -n <application name> -g <resource group> -s <Azure Spring Apps name>
Maklum balas
Kirim dan lihat maklum balas untuk