Quickstart: Provision an Azure Spring Cloud service

In this quickstart, you use the Azure CLI to provision an instance of the Azure Spring Cloud service.

Prerequisites

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

  1. Sign in to the Azure CLI.

    az login
    
  2. If you have more than one subscription, choose the one you want to use for this quickstart.

    az account list -o table
    
    az account set --subscription <Name or ID of a subscription from the last step>
    

Provision an instance of Azure Spring Cloud

  1. 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>
    
  2. 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.

  3. 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 instantiate Azure Spring Cloud using the Azure portal or the Azure CLI. Both methods are explained in the following procedures.

Prerequisites

Provision an instance of Azure Spring Cloud

The following procedure creates an instance of Azure Spring Cloud using the Azure portal.

  1. In a new tab, open the Azure portal.

  2. From the top search box, search for Azure Spring Cloud.

  3. Select Azure Spring Cloud from the results.

    ASC icon start

  4. On the Azure Spring Cloud page, select Create.

    ASC icon add

  5. 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. Note that this will be used 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.
    • On the Application insights tab, select yes for Enable Java in-process agent.

    ASC portal start

  6. Select Review and create.

Next steps

In this quickstart, you created Azure resources that will continue to accrue charges if they remain in your subscription. If you don't intend to continue on to the next quickstart, see Clean up resources. Otherwise, advance to the next quickstart: