Creating a Synapse workspace

In this tutorial, you'll learn how to create a Synapse workspace, a dedicated SQL pool, and a serverless Apache Spark pool.

Prerequisites

To complete this tutorial's steps, you need to have access to a resource group for which you are assigned the Owner role. Create the Synapse workspace in this resource group.

Create a Synapse workspace in the Azure portal

Start the process

  1. Open the Azure portal, in the search bar enter Synapse without hitting enter.
  2. In the search results, under Services, select Azure Synapse Analytics.
  3. Select Add to create a workspace.

Basics tab > Project Details

Fill in the following fields:

  1. Subscription - Pick any subscription.
  2. Resource group - Use any resource group.
  3. Managed Resource group - Leave this blank.

Basics tab > Workspace details

Fill in the following fields:

  1. Workspace name - Pick any globally unique name. In this tutorial, we'll use myworkspace.
  2. Region - Pick the region where you have placed your client applications/services (for example, Azure VM, Power BI, Azure Analysis Service) and storages that contain data (for example Azure Data Lake storage, Azure Cosmos DB analytical storage).

Note

A workspace that is not co-located with the client applications or storage can be the root cause of many performance issues. If you data or the clients are placed in multiple regions, you can create separate workspaces in different regions co-located with your data and clients.

Under Select Data Lake Storage Gen 2:

  1. By Account name, select Create New and name the new storage account contosolake or similar as the name must be unique.
  2. By File system name, select Create New and name it users. This will create a storage container called users. The workspace will use this storage account as the "primary" storage account to Spark tables and Spark application logs.
  3. Check the "Assign myself the Storage Blob Data Contributor role on the Data Lake Storage Gen2 account" box.

Completing the process

Select Review + create > Create. Your workspace is ready in a few minutes.

Note

To enable workspace features from an existing dedicated SQL pool (formerly SQL DW) refer to How to enable a workspace for your dedicated SQL pool (formerly SQL DW).

Open Synapse Studio

After your Azure Synapse workspace is created, you have two ways to open Synapse Studio:

  1. Open your Synapse workspace in the Azure portal, in the Overview section of the Synapse workspace, select Open in the Open Synapse Studio box.

  2. Go to the https://web.azuresynapse.net and sign in to your workspace.

    Log in to workspace

Note

To sign into your workspace, there are two Account selection methods. One is from Azure subscription, the other is from Enter manually. If you have the Synapse Azure role or higher level Azure roles, you can use both methods to log into the workspace. If you don't have the related Azure roles, and you were granted as the Synapse RBAC role, Enter manually is the only way to log into the workspace. To learn more about the Synapse RBAC, refer to What is Synapse role-based access control (RBAC).

Place sample data into the primary storage account

We are going to use a small 100K row sample dataset of NYX Taxi Cab data for many examples in this getting started guide. We begin by placing it in the primary storage account you created for the workspace.

Once the parquet file is uploaded it is available through two equivalent URIs:

  • https://contosolake.dfs.core.windows.net/users/NYCTripSmall.parquet
  • abfss://users@contosolake.dfs.core.windows.net/NYCTripSmall.parquet

In the examples that follow in this tutorial, make sure to replace contosolake in the UI with the name of the primary storage account that you selected for your workspace.

Next steps