Azure Synapse Workspace and Pools
Creates Azure Synapse workspace with SQL and Spark pools
This example lives in the pulumi/examples repository. Check out just this directory to use it:
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examplesgit -C pulumi-examples sparse-checkout set azure-py-synapsecd pulumi-examples/azure-py-synapseStarting point for enterprise analytics solutions based on Azure Synapse.
Running the App#
-
Create a new stack:
Terminal window pulumi stack init dev -
Create a Python virtualenv, activate it, and install dependencies:
This installs the dependent packages needed for our Pulumi program.
Terminal window python3 -m venv venvsource venv/bin/activatepip3 install -r requirements.txt -
Login to Azure CLI (you will be prompted to do this during deployment if you forget this step):
Terminal window az login -
Set the Azure region location to use:
$ pulumi config set azure-native:location westus2 -
Set the user ID to grant access to (e.g., your current user):
$ pulumi config set userObjectId $(az ad signed-in-user show --query=objectId | tr -d '"') -
Run
pulumi upto preview and deploy changes:Terminal window pulumi upPreviewing changes:...Performing changes:...Resources:+ 13 createdDuration: 10m53s -
Navigate to https://web.azuresynapse.net and sign in to your new workspace.