Creating a Databricks service using the Azure CLI (command-line interface)
In this recipe, we will look at an automated way of creating and managing a Databricks workspace using the Azure CLI.
By the end of this recipe, you will know how to use the Azure CLI and deploy Azure Databricks. Knowing how to deploy resources using the CLI will help you automate the task of deploying from your DevOps pipeline or running the task from a PowerShell terminal.
Getting ready
Azure hosts the Azure Cloud Shell, which can be used to work with Azure services. Azure Cloud Shell uses preinstalled commands that can be executed without us needing to install it in our local environment.
This recipe will use a service principal (SP) to authenticate to Azure so that we can deploy the Azure Databricks workspace. Before we start running the SP script, we must create one.
You can find out how to create an Azure AD app and a SP in the Azure portal by going to Microsoft identity platform | Microsoft...