Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions code/SetupPurview.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
<#
.SYNOPSIS
Sets up a Purview account with specified parameters.

.DESCRIPTION
This script installs the required Az.Purview module, defines necessary parameters, and optionally sets the specified Purview account as the default account in the tenant.

.PARAMETER PurviewId
The resource ID of the Purview account.

.PARAMETER PurviewRootCollectionAdmins
An array of root collection administrators for the Purview account.

.PARAMETER SetPurviewAccountAsDefault
A switch to set the specified Purview account as the default account in the tenant.

.EXAMPLE
.\SetupPurview.ps1 -PurviewId "/subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.Purview/accounts/xxxx" -SetPurviewAccountAsDefault

.NOTES
Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
#>


# Define script arguments
[CmdletBinding()]
Expand Down