title | description | author | ms.author | ms.service | ms.topic | ms.date | ms.custom | zone_pivot_groups |
---|---|---|---|---|---|---|---|---|
Quickstart - Provision an Azure Spring Apps service |
Describes creation of an Azure Spring Apps service instance for app deployment. |
KarlErickson |
karler |
spring-apps |
quickstart |
06/27/2024 |
devx-track-java, devx-track-azurecli, mode-other |
programming-languages-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: ❌ Standard consumption and dedicated (Preview) ✔️ Basic/Standard ❌ Enterprise
This article shows you how to provision a Basic or Standard plan Azure Spring Apps service instance.
Azure Spring Apps supports multiple plans. For more information, see Quotas and service plans for Azure Spring Apps. To learn how to create service instances for other plans, see the following articles:
- Quickstart: Provision an Azure Spring Apps Standard consumption and dedicated plan service instance
- Migrate an Azure Spring Apps Basic or Standard plan instance to the Enterprise plan
- An Azure subscription. If you don't have a subscription, create a free account before you begin.
- (Optional) Azure CLI version 2.45.0 or higher.
Use the following steps to create an instance of Azure Spring Apps:
-
In a new browser tab, open the Azure portal.
-
Using the search box, search for Azure Spring Apps.
-
Select Azure Spring Apps from the search results.
-
On the Azure Spring Apps page, select Create.
:::image type="content" source="media/quickstart-provision-service-instance/spring-apps-create.png" alt-text="Screenshot of Azure portal showing Azure Spring Apps resource with Create button highlighted.":::
-
Fill out the form on the Azure Spring Apps Create page. Consider the following guidelines:
- Subscription: Select the subscription you want to be billed for this resource.
- Resource group: Creating new resource groups for new resources is a best practice. You use this value in later steps as
<resource-group-name>
. - Service Details/Name: Specify the
<service-instance-name>
. The name must be between 4 and 32 characters long and can contain only lowercase letters, numbers, and hyphens. The first character of the service name must be a letter and the last character must be either a letter or a number. - Location: Select the location for your service instance.
- Zone Redundant: Select to create your service instance with an availability zone.
- Select Standard for the Pricing tier option.
:::image type="content" source="media/quickstart-provision-service-instance/portal-start.png" alt-text="Screenshot of Azure portal showing the Azure Spring Apps Create page." lightbox="media/quickstart-provision-service-instance/portal-start.png":::
-
Select Review and create.
-
Use the following command to add or update the Azure Spring Apps extension for the Azure CLI:
az extension add --upgrade --name spring
-
Use the following commands to sign in to the Azure CLI and choose your active subscription. If you have access to only one subscription, you can skip the
az account set
command.az login az account list --output table az account set --subscription <subscription-name-or-ID>
-
Prepare a name for your Azure Spring Apps service. The name must be between 4 and 32 characters long and can contain only lowercase letters, numbers, and hyphens. The first character of the service name must be a letter and the last character must be either a letter or a number.
-
use the following commands to create a resource group to contain your Azure Spring Apps service instance, and to create the service instance:
az group create \ --name <resource-group-name> \ --location <resource-group-region> az spring create \ --resource-group <resource-group-name> \ --name <service-instance-name>
If you plan to continue working with subsequent tutorials, you might want to leave these resources in place. When no longer needed, delete the resource group, which deletes the resources in the resource group. To delete the resource group by using Azure CLI, use the following commands:
az group delete --name <resource-group-name>
[!div class="nextstepaction"] Quickstart: Set up Azure Spring Apps Config Server