Quickstart: Create a Microsoft Purview (formerly Azure Purview) account using Azure PowerShell/Azure CLI
In this Quickstart, you'll create a Microsoft Purview account using Azure PowerShell/Azure CLI. PowerShell reference for Microsoft Purview is available, but this article will take you through all the steps needed to create an account with PowerShell.
The Microsoft Purview governance portal surfaces tools like the Microsoft Purview Data Map and Microsoft Purview Data Catalog that help you manage and govern your data landscape. By connecting to data across your on-premises, multi-cloud, and software-as-a-service (SaaS) sources, the Microsoft Purview Data Map creates an up-to-date map of your information. It identifies and classifies sensitive data, and provides end-to-end linage. Data consumers are able to discover data across your organization, and data administrators are able to audit, secure, and ensure right use of your data.
the governance capabilities of Microsoft Purview, formerly Azure Purview, see our overview page. For more information about deploying Microsoft Purview governance services across your organization, see our deployment best practices.
If you don't have an Azure subscription, create a free subscription before you begin.
An Azure Active Directory tenant associated with your subscription.
The user account that you use to sign in to Azure must be a member of the contributor or owner role, or an administrator of the Azure subscription. To view the permissions that you have in the subscription, follow these steps:
- Go to the Azure portal
- Select your username in the upper-right corner.
- Select the ellipsis button ("...") for more options.
- Then select My permissions.
- If you have access to multiple subscriptions, select the appropriate subscription.
No Azure Policies preventing creation of Storage accounts or Event Hub namespaces. Microsoft Purview will deploy a managed Storage account and optional Event Hubs namespace when it is created. If a blocking policy exists and needs to remain in place, please follow our Microsoft Purview exception tag guide and follow the steps to create an exception for Microsoft Purview accounts.
Sign in to Azure
Sign in to the Azure portal with your Azure account.
Install either Azure PowerShell or Azure CLI in your client machine to deploy the template: Command-line deployment
Create an account
Sign in with your Azure credential
If you have multiple Azure subscriptions, select the subscription you want to use:
Create a resource group for your account. You can skip this step if you already have one:
Create or Deploy the account:
The deployment command returns results. Look for
ProvisioningStateto see whether the deployment succeeded.
If you deployed the account using a service principal, instead of a user account, you'll also need to run the below command in the Azure CLI:
az purview account add-root-collection-admin --account-name [Microsoft Purview Account Name] --resource-group [Resource Group Name] --object-id [User Object Id]
This command will grant the user account collection admin permissions on the root collection in your Microsoft Purview account. This allows the user to access the Microsoft Purview governance portal and add permission for other users. For more information about permissions in Microsoft Purview, see our permissions guide. For more information about collections, see our manage collections article.
In this quickstart, you learned how to create a Microsoft Purview (formerly Azure Purview) account.
Follow these next articles to learn how to navigate the Microsoft Purview governance portal, create a collection, and grant access to the Microsoft Purview governance portal.
Submit and view feedback for