From 34d1ab6e39477c44cae434b9d37a7d3a0f3ec8d1 Mon Sep 17 00:00:00 2001 From: Andre van den Berg Date: Tue, 29 Oct 2024 11:49:51 +0100 Subject: [PATCH] Update SetupPurview.ps1 When running pester test getting a warning because is missing help in PowerShell script. So added help to PowerShell --- code/SetupPurview.ps1 | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/code/SetupPurview.ps1 b/code/SetupPurview.ps1 index 381b6b1a..0374a47f 100644 --- a/code/SetupPurview.ps1 +++ b/code/SetupPurview.ps1 @@ -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()]