Quickstart: Get started with Azure Synapse Analytics

This quickstart guides you through the essential steps to start using Azure Synapse Analytics, a limitless analytics service that brings together data warehousing and Big Data analytics.

What is Azure Synapse Analytics?

Azure Synapse Analytics is a cloud-based enterprise analytics service that accelerates time to insight across data warehouses and Big Data systems. It enables you to query data on your terms using serverless or dedicated resources at a petabyte scale.

Prerequisites

Step 1: Create an Azure Synapse Workspace

Navigate to the Azure Portal

Open your web browser and go to the Azure portal.

Search for Azure Synapse Analytics

In the search bar at the top, type "Azure Synapse Analytics" and select it from the search results.

Create a new Synapse workspace

Click on "Create" or "+ Add" to begin creating a new Synapse workspace. Fill in the required fields:

Azure Synapse Workspace Creation - Basics Tab

Configure other settings as needed (Networking, Security, Tags) and click "Review + create", then "Create".

Step 2: Explore the Synapse Studio

Access Synapse Studio

Once your workspace is deployed, navigate to it in the Azure portal. On the workspace overview page, click the "Open Synapse Studio" button.

Open Synapse Studio Button
Understand the Synapse Studio Interface

Synapse Studio is your unified environment for managing all aspects of Azure Synapse Analytics. You'll see several sections:

Synapse Studio Homepage

Step 3: Run a SQL Query

Create a SQL Script

In Synapse Studio, navigate to the Develop hub. Click the "+" button and select "SQL script".

Write and Execute a Query

In the SQL editor, you can write T-SQL queries. For example, to get the current server version:

SELECT @@VERSION;

Click the "Run" button to execute the script. The results will appear below the editor.

You might need to provision a SQL pool (dedicated or serverless) to run certain SQL queries. For this quickstart, using the default serverless SQL endpoint is sufficient for basic queries.

Step 4: Create a Spark Pool (Optional)

Navigate to the Manage Hub

In Synapse Studio, go to the Manage hub.

Create a Spark Pool

Under "Analytics pools," select "Apache Spark pools." Click "+ New" to create a new Spark pool. Configure the settings like node size, number of nodes, and Spark version. Click "Review + create" and then "Create".

Create a Spark Notebook

Once the Spark pool is provisioned, go back to the Develop hub. Click the "+" button and select "Notebook." Attach your notebook to the newly created Spark pool.

You can write code in various languages like PySpark, Scala, or .NET for Spark. Here's a simple PySpark example:

print("Hello, Synapse Spark!")

data = [("Alice", 1), ("Bob", 2)]
columns = ["name", "id"]
df = spark.createDataFrame(data, columns)
df.show()
                

Click the "Run all" button to execute the notebook cells.

Next Steps

Congratulations! You've completed the Azure Synapse Analytics quickstart. Here are some resources to continue your learning:

Microsoft Logo Azure Logo