How do I deploy Azure Purview data governance service with Pulumi?
In this guide, we will deploy an Azure Purview data governance service using Pulumi with TypeScript. Azure Purview is a unified data governance service that helps manage and govern your on-premises, multi-cloud, and software-as-a-service (SaaS) data. We will create an Azure Purview account and configure it to manage your data governance needs.
Key Points
- We will use the
azure-native
package to create and manage Azure resources. - The resources we will create include a resource group and a Purview account.
- We will configure the Purview account with necessary properties such as location and identity.
Below is the Pulumi program to achieve this:
import * as pulumi from "@pulumi/pulumi";
import * as azureNative from "@pulumi/azure-native";
// Create an Azure Resource Group
const resourceGroup = new azureNative.resources.ResourceGroup("resourceGroup", {
resourceGroupName: "exampleResourceGroup",
location: "West US",
});
// Create an Azure Purview Account
const purviewAccount = new azureNative.purview.Account("purviewAccount", {
resourceGroupName: resourceGroup.name,
accountName: "examplePurviewAccount",
location: resourceGroup.location,
identity: {
type: "SystemAssigned",
},
publicNetworkAccess: "Enabled",
managedResourceGroupName: "exampleManagedResourceGroup",
managedResourcesPublicNetworkAccess: "Enabled",
});
// Export the Purview account ID
export const purviewAccountId = purviewAccount.id;
Summary
In this guide, we deployed an Azure Purview data governance service using Pulumi in TypeScript. We created a resource group and a Purview account, configured it with necessary properties, and exported the Purview account ID. This setup allows you to manage and govern your data effectively using Azure Purview.
Deploy this code
Want to deploy this code? Sign up for a free Pulumi account to deploy in a few clicks.
Sign upNew to Pulumi?
Want to deploy this code? Sign up with Pulumi to deploy in a few clicks.
Sign upThank you for your feedback!
If you have a question about how to use Pulumi, reach out in Community Slack.
Open an issue on GitHub to report a problem or suggest an improvement.