Quickstart: Provision an Azure Spring Cloud service instance
This article applies to: ✔️ Basic/Standard tier ❌ Enterprise tier
In this quickstart, you use the Azure CLI to provision an instance of the Azure Spring Cloud service.
Prerequisites
- An Azure account with an active subscription. Create an account for free.
- .NET Core 3.1 SDK. The Azure Spring Cloud service supports .NET Core 3.1 and later versions.
- The Azure CLI version 2.0.67 or higher.
- Git.
Install Azure CLI extension
Verify that your Azure CLI version is 2.0.67 or later:
az --version
Install the Azure Spring Cloud extension for the Azure CLI using the following command:
az extension add --name spring-cloud
Sign in to Azure
Sign in to the Azure CLI.
az loginIf you have more than one subscription, choose the one you want to use for this quickstart.
az account list -o tableaz account set --subscription <Name or ID of a subscription from the last step>
Provision an instance of Azure Spring Cloud
Create a resource group to contain your Azure Spring Cloud service. The resource group name can include alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters.
az group create --location eastus --name <resource group name>Provision an instance of Azure Spring Cloud service. The service instance name must be unique, 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.
az spring-cloud create -n <service instance name> -g <resource group name>This command might take several minutes to complete.
Set your default resource group name and service instance name so you don't have to repeatedly specify these values in subsequent commands.
az config set defaults.group=<resource group name>az config set defaults.spring-cloud=<service instance name>
You can provision an instance of the Azure Spring Cloud service using the Azure portal or the Azure CLI. Both methods are explained in the following procedures.
Prerequisites
- Install JDK 8 or JDK 11
- Sign up for an Azure subscription
- (Optional) Install the Azure CLI version 2.0.67 or higher and install the Azure Spring Cloud extension with the command:
az extension add --name spring-cloud - (Optional) Install the Azure Toolkit for IntelliJ IDEA and sign-in
Provision an instance of Azure Spring Cloud
The following procedure creates an instance of Azure Spring Cloud using the Azure portal.
In a new tab, open the Azure portal.
From the top search box, search for Azure Spring Cloud.
Select Azure Spring Cloud from the results.

On the Azure Spring Cloud page, select Create.

Fill out the form on the Azure Spring Cloud 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 will 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.
- Select Standard for the Pricing tier option.

Select Review and create.
Clean up resources
If you plan to continue working with subsequent quickstarts and 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:
echo "Enter the Resource Group name:" &&
read resourceGroupName &&
az group delete --name $resourceGroupName &&
echo "Press [ENTER] to continue ..."
Next steps
Povratne informacije
Pošalјite i prikažite povratne informacije za