From e030070e7ed97dae905f2cfbc1de613dc5386c5d Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Tue, 7 Apr 2020 16:01:26 -0400 Subject: [PATCH 1/5] Added new resource --- CHANGELOG.md | 2 + .../MSFT_AADGroupsNamingPolicy.psm1 | 3 +- .../MSFT_AADMSGroupLifecyclePolicy.psm1 | 299 + .../MSFT_AADMSGroupLifecyclePolicy.schema.mof | 10 + .../MSFT_AADMSGroupLifecyclePolicy/readme.md | 5 + .../1-ConfigureGroupLifecyclePolicy.ps1 | 27 + ...fice365DSC.AADGroupsNamingPolicy.Tests.ps1 | 2 +- ...365DSC.AADMSGroupLifecyclePolicy.Tests.ps1 | 207 + Tests/Unit/Stubs/Generic.psm1 | 23 + Tests/Unit/Stubs/Office365.psm1 | 5306 ++++++++++++++--- 10 files changed, 5044 insertions(+), 840 deletions(-) create mode 100644 Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.psm1 create mode 100644 Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof create mode 100644 Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/readme.md create mode 100644 Modules/Office365DSC/Examples/Resources/AADMSGroupLifecyclePolicy/1-ConfigureGroupLifecyclePolicy.ps1 create mode 100644 Tests/Unit/Office365DSC/Office365DSC.AADMSGroupLifecyclePolicy.Tests.ps1 diff --git a/CHANGELOG.md b/CHANGELOG.md index 36db01c256..e847aeb7e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## UNRELEASED +* AADMSGroupLifecyclePolicy + * Initial Release; * AADGroupsNamingPolicy * Initial Release; * SPOPropertyBag diff --git a/Modules/Office365DSC/DSCResources/MSFT_AADGroupsNamingPolicy/MSFT_AADGroupsNamingPolicy.psm1 b/Modules/Office365DSC/DSCResources/MSFT_AADGroupsNamingPolicy/MSFT_AADGroupsNamingPolicy.psm1 index d2271a2516..d50f06623d 100644 --- a/Modules/Office365DSC/DSCResources/MSFT_AADGroupsNamingPolicy/MSFT_AADGroupsNamingPolicy.psm1 +++ b/Modules/Office365DSC/DSCResources/MSFT_AADGroupsNamingPolicy/MSFT_AADGroupsNamingPolicy.psm1 @@ -42,7 +42,6 @@ function Get-TargetResource if ($null -eq $Policy) { - New-Office365DSCLogEntry -Error $_ -Message "Couldn't get AzureAD Group Naming Policy" -Source $MyInvocation.MyCommand.ModuleName $currentValues = $PSBoundParameters $currentValues.Ensure = "Absent" return $currentValues @@ -91,7 +90,7 @@ function Set-TargetResource $GlobalAdminAccount ) - Write-Verbose -Message "Setting configuration of Device Conditional Access Policy for $Name" + Write-Verbose -Message "Setting configuration of Azure AD Groups Naming Policy" #region Telemetry $data = [System.Collections.Generic.Dictionary[[String], [String]]]::new() $data.Add("Resource", $MyInvocation.MyCommand.ModuleName) diff --git a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.psm1 b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.psm1 new file mode 100644 index 0000000000..8549a070cc --- /dev/null +++ b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.psm1 @@ -0,0 +1,299 @@ +function Get-TargetResource +{ + [CmdletBinding()] + [OutputType([System.Collections.Hashtable])] + param + ( + [Parameter(Mandatory = $true)] + [System.String] + [ValidateSet('Yes')] + $IsSingleInstance, + + [Parameter(Mandatory = $true)] + [System.UInt32] + $GroupLifetimeInDays, + + [Parameter(Mandatory = $true)] + [System.String] + [ValidateSet('All', 'Selected', 'None')] + $ManagedGroupTypes, + + [Parameter(Mandatory = $true)] + [System.String[]] + $AlternateNotificationEmails, + + [Parameter()] + [ValidateSet('Present', 'Absent')] + [System.String] + $Ensure = 'Present', + + [Parameter(Mandatory = $true)] + [System.Management.Automation.PSCredential] + $GlobalAdminAccount + ) + + Write-Verbose -Message "Getting configuration of AzureAD Groups Lifecycle Policy" + #region Telemetry + $data = [System.Collections.Generic.Dictionary[[String], [String]]]::new() + $data.Add("Resource", $MyInvocation.MyCommand.ModuleName) + $data.Add("Method", $MyInvocation.MyCommand) + Add-O365DSCTelemetryEvent -Data $data + #endregion + + Test-MSCloudLogin -CloudCredential $GlobalAdminAccount ` + -Platform AzureAD + + try + { + $Policy = Get-AzureADMSGroupLifecyclePolicy -ErrorAction SilentlyContinue + } + catch + { + Write-Verbose -Message $_ + } + + if ($null -eq $Policy) + { + $currentValues = $PSBoundParameters + $currentValues.Ensure = "Absent" + return $currentValues + } + else + { + Write-Verbose "Found existing AzureAD Groups Lifecycle Policy" + $result = @{ + IsSingleInstance = 'Yes' + GroupLifetimeInDays = $Policy.GroupLifetimeInDays + ManagedGroupTypes = $Policy.ManagedGroupTypes + AlternateNotificationEmails = $Policy.AlternateNotificationEmails.Split(';') + Ensure = "Present" + GlobalAdminAccount = $GlobalAdminAccount + } + + Write-Verbose -Message "Get-TargetResource Result: `n $(Convert-O365DscHashtableToString -Hashtable $result)" + return $result + } +} + +function Set-TargetResource +{ + [CmdletBinding()] + param + ( + [Parameter(Mandatory = $true)] + [System.String] + [ValidateSet('Yes')] + $IsSingleInstance, + + [Parameter(Mandatory = $true)] + [System.UInt32] + $GroupLifetimeInDays, + + [Parameter(Mandatory = $true)] + [System.String] + [ValidateSet('All', 'Selected', 'None')] + $ManagedGroupTypes, + + [Parameter(Mandatory = $true)] + [System.String[]] + $AlternateNotificationEmails, + + [Parameter()] + [ValidateSet('Present', 'Absent')] + [System.String] + $Ensure = 'Present', + + [Parameter(Mandatory = $true)] + [System.Management.Automation.PSCredential] + $GlobalAdminAccount + ) + + Write-Verbose -Message "Setting configuration of Azure AD Groups Lifecycle Policy" + #region Telemetry + $data = [System.Collections.Generic.Dictionary[[String], [String]]]::new() + $data.Add("Resource", $MyInvocation.MyCommand.ModuleName) + $data.Add("Method", $MyInvocation.MyCommand) + Add-O365DSCTelemetryEvent -Data $data + #endregion + + Test-MSCloudLogin -CloudCredential $GlobalAdminAccount ` + -Platform AzureAD + + try + { + $policy = Get-AzureADMSGroupLifecyclePolicy -ErrorAction SilentlyContinue + } + catch + { + Write-Verbose $_ + return + } + + $currentPolicy = Get-TargetResource @PSBoundParameters + + if ($Ensure -eq "Present" -and $currentPolicy.Ensure -eq "Absent") + { + Write-Verbose -Message "The Group Lifecycle Policy should exist but it doesn't. Creating it." + $creationParams = $PSBoundParameters + $creationParams.Remove("IsSingleInstance") + $creationParams.Remove("GlobalAdminAccount") + $creationParams.Remove("Ensure") + + $emails = "" + foreach($email in $creationParams.AlternateNotificationEmails) + { + $emails += $email + ";" + } + if ($emails.EndsWith(';')) + { + $emails = $emails.SubString(0, $emails.Length-1) + } + $creationParams.AlternateNotificationEmails = $emails + New-AzureADMSGroupLifecyclePolicy @creationParams + } + elseif ($Ensure -eq 'Present' -and $currentPolicy.Ensure -eq 'Present') + { + $updateParams = $PSBoundParameters + $updateParams.Remove("IsSingleInstance") + $updateParams.Remove("GlobalAdminAccount") + $updateParams.Remove("Ensure") + + $emails = "" + foreach($email in $updateParams.AlternateNotificationEmails) + { + $emails += $email + ";" + } + if ($emails.EndsWith(';')) + { + $emails = $emails.SubString(0, $emails.Length-1) + } + $updateParams.AlternateNotificationEmails = $emails + $updateParams.Add("Id", (Get-AzureADMSGroupLifecyclePolicy).Id) + + Write-Verbose -Message "The Group Lifecycle Policy exists but it's not in the Desired State. Updating it." + Set-AzureADMSGroupLifecyclePolicy @updateParams + } + elseif ($Ensure -eq 'Absent' -and $currentPolicy.Ensure -eq 'Present') + { + Write-Verbose -Message "The Group Lifecycle Policy should NOT exist but it DOES. Removing it." + Remove-AzureADMSGroupLifecyclePolicy -Id (Get-AzureADMSGroupLifecyclePolicy).Id + } +} + +function Test-TargetResource +{ + [CmdletBinding()] + [OutputType([System.Boolean])] + param + ( + [Parameter(Mandatory = $true)] + [System.String] + [ValidateSet('Yes')] + $IsSingleInstance, + + [Parameter(Mandatory = $true)] + [System.UInt32] + $GroupLifetimeInDays, + + [Parameter(Mandatory = $true)] + [System.String] + [ValidateSet('All', 'Selected', 'None')] + $ManagedGroupTypes, + + [Parameter(Mandatory = $true)] + [System.String[]] + $AlternateNotificationEmails, + + [Parameter()] + [ValidateSet('Present', 'Absent')] + [System.String] + $Ensure = 'Present', + + [Parameter(Mandatory = $true)] + [System.Management.Automation.PSCredential] + $GlobalAdminAccount + ) + + Write-Verbose -Message "Testing configuration of AzureAD Groups Lifecycle Policy" + + $CurrentValues = Get-TargetResource @PSBoundParameters + + Write-Verbose -Message "Current Values: $(Convert-O365DscHashtableToString -Hashtable $CurrentValues)" + Write-Verbose -Message "Target Values: $(Convert-O365DscHashtableToString -Hashtable $PSBoundParameters)" + + $ValuesToCheck = $PSBoundParameters + $ValuesToCheck.Remove('GlobalAdminAccount') | Out-Null + + $TestResult = Test-Office365DSCParameterState -CurrentValues $CurrentValues ` + -Source $($MyInvocation.MyCommand.Source) ` + -DesiredValues $PSBoundParameters ` + -ValuesToCheck $ValuesToCheck.Keys + + Write-Verbose -Message "Test-TargetResource returned $TestResult" + + return $TestResult +} + +function Export-TargetResource +{ + [CmdletBinding()] + [OutputType([System.String])] + param + ( + [Parameter(Mandatory = $true)] + [System.Management.Automation.PSCredential] + $GlobalAdminAccount + ) + $InformationPreference = 'Continue' + #region Telemetry + $data = [System.Collections.Generic.Dictionary[[String], [String]]]::new() + $data.Add("Resource", $MyInvocation.MyCommand.ModuleName) + $data.Add("Method", $MyInvocation.MyCommand) + Add-O365DSCTelemetryEvent -Data $data + #endregion + + try + { + $Policy = Get-AzureADMSGroupLifecyclePolicy -ErrorAction SilentlyContinue + } + catch + { + return "" + } + $content = '' + $organization = "" + $principal = "" # Principal represents the "NetBios" name of the tenant (e.g. the O365DSC part of O365DSC.onmicrosoft.com) + if ($GlobalAdminAccount.UserName.Contains("@")) + { + $organization = $GlobalAdminAccount.UserName.Split("@")[1] + + if ($organization.IndexOf(".") -gt 0) + { + $principal = $organization.Split(".")[0] + } + } + $params = @{ + GlobalAdminAccount = $GlobalAdminAccount + IsSingleInstance = 'Yes' + GroupLifetimeInDays = 1 + ManagedGroupTypes = 'All' + AlternateNotificationEmails = 'empty@contoso.com' + } + $result = Get-TargetResource @params + $result.GlobalAdminAccount = Resolve-Credentials -UserName "globaladmin" + $content += " AADMSGroupLifecyclePolicy " + (New-GUID).ToString() + "`r`n" + $content += " {`r`n" + $partialContent = Get-DSCBlock -Params $result -ModulePath $PSScriptRoot + $partialContent = Convert-DSCStringParamToVariable -DSCBlock $partialContent -ParameterName "GlobalAdminAccount" + + if ($partialContent.ToLower().Contains("@" + $principal.ToLower())) + { + $partialContent = $partialContent -ireplace [regex]::Escape("@" + $principal), "@`$OrganizationName.Split('.')[0])" + } + $content += $partialContent + $content += " }`r`n" + + return $content +} + +Export-ModuleMember -Function *-TargetResource diff --git a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof new file mode 100644 index 0000000000..30b756117d --- /dev/null +++ b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof @@ -0,0 +1,10 @@ +[ClassVersion("1.0.0.0"), FriendlyName("AADGroupsNamingPolicy")] +class MSFT_AADGroupsNamingPolicy : OMI_BaseResource +{ + [Key, Description("Only valid value is 'Yes'."), ValueMap{"Yes"}, Values{"Yes"}] String IsSingleInstance; + [Write, Description("The number of days a group can exist before it needs to be renewed.")] UInt32 GroupLifetimeInDays; + [Write, Description("This parameter allows the admin to select which office 365 groups the policy will apply to. 'None' will create the policy in a disabled state. 'All' will apply the policy to every Office 365 group in the tenant. 'Selected' will allow the admin to choose specific Office 365 groups that the policy will apply to."), ValueMap{"All","None", "Select"}, Values{"All","None", "Select"}] String ManagedGroupTypes[]; + [Write, Description("Notification emails for groups that have no owners will be sent to these email addresses.")] String AlternateNotificationEmails[]; + [Write, Description("Specify if the Azure AD Groups Naming Policy should exist or not."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure; + [Required, Description("Credentials of the Azure Active Directory Admin"), EmbeddedInstance("MSFT_Credential")] String GlobalAdminAccount; +}; diff --git a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/readme.md b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/readme.md new file mode 100644 index 0000000000..f50e44d352 --- /dev/null +++ b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/readme.md @@ -0,0 +1,5 @@ +# AADMSGroupLifecyclePolicy + +## Description + +This resource configures an Azure Active Directory Group Lifecycle Policy (e.g. Expiration). diff --git a/Modules/Office365DSC/Examples/Resources/AADMSGroupLifecyclePolicy/1-ConfigureGroupLifecyclePolicy.ps1 b/Modules/Office365DSC/Examples/Resources/AADMSGroupLifecyclePolicy/1-ConfigureGroupLifecyclePolicy.ps1 new file mode 100644 index 0000000000..f8f1a0a284 --- /dev/null +++ b/Modules/Office365DSC/Examples/Resources/AADMSGroupLifecyclePolicy/1-ConfigureGroupLifecyclePolicy.ps1 @@ -0,0 +1,27 @@ +<# +This example is used to test new resources and showcase the usage of new resources being worked on. +It is not meant to use as a production baseline. +#> + +Configuration Example +{ + param( + [Parameter(Mandatory = $true)] + [PSCredential] + $credsGlobalAdmin + ) + Import-DscResource -ModuleName Office365DSC + + node localhost + { + AADMSGroupLifecyclePolicy GroupLifecyclePolicy + { + AlternateNotificationEmails = @("john.smith@contoso.com"); + Ensure = "Present"; + GlobalAdminAccount = $credsGlobalAdmin; + GroupLifetimeInDays = 99; + IsSingleInstance = "Yes"; + ManagedGroupTypes = "Selected"; + } + } +} diff --git a/Tests/Unit/Office365DSC/Office365DSC.AADGroupsNamingPolicy.Tests.ps1 b/Tests/Unit/Office365DSC/Office365DSC.AADGroupsNamingPolicy.Tests.ps1 index cf6768bd30..f36d21522f 100644 --- a/Tests/Unit/Office365DSC/Office365DSC.AADGroupsNamingPolicy.Tests.ps1 +++ b/Tests/Unit/Office365DSC/Office365DSC.AADGroupsNamingPolicy.Tests.ps1 @@ -120,7 +120,7 @@ Describe -Name $Global:DscHelper.DescribeHeader -Fixture { Assert-MockCalled -CommandName "Get-AzureADDirectorySetting" -Exactly 1 } $Script:calledOnceAlready = $false - It 'Should return true from the Test method' { + It 'Should return false from the Test method' { Test-TargetResource @testParams | Should Be $false } $Script:calledOnceAlready = $false diff --git a/Tests/Unit/Office365DSC/Office365DSC.AADMSGroupLifecyclePolicy.Tests.ps1 b/Tests/Unit/Office365DSC/Office365DSC.AADMSGroupLifecyclePolicy.Tests.ps1 new file mode 100644 index 0000000000..d734f7717e --- /dev/null +++ b/Tests/Unit/Office365DSC/Office365DSC.AADMSGroupLifecyclePolicy.Tests.ps1 @@ -0,0 +1,207 @@ +[CmdletBinding()] +param( + [Parameter()] + [string] + $CmdletModule = (Join-Path -Path $PSScriptRoot ` + -ChildPath "..\Stubs\Office365.psm1" ` + -Resolve) +) +$GenericStubPath = (Join-Path -Path $PSScriptRoot ` + -ChildPath "..\Stubs\Generic.psm1" ` + -Resolve) +Import-Module -Name (Join-Path -Path $PSScriptRoot ` + -ChildPath "..\UnitTestHelper.psm1" ` + -Resolve) + +$Global:DscHelper = New-O365DscUnitTestHelper -StubModule $CmdletModule ` + -DscResource "AADMSGroupLifecyclePolicy" -GenericStubModule $GenericStubPath +Describe -Name $Global:DscHelper.DescribeHeader -Fixture { + InModuleScope -ModuleName $Global:DscHelper.ModuleName -ScriptBlock { + Invoke-Command -ScriptBlock $Global:DscHelper.InitializeScript -NoNewScope + + $secpasswd = ConvertTo-SecureString "test@password1" -AsPlainText -Force + $GlobalAdminAccount = New-Object System.Management.Automation.PSCredential ("tenantadmin", $secpasswd) + + Mock -CommandName Close-SessionsAndReturnError -MockWith { + + } + + Mock -CommandName Test-MSCloudLogin -MockWith { + + } + + Mock -CommandName Get-PSSession -MockWith { + + } + + Mock -CommandName Remove-PSSession -MockWith { + + } + + Mock -CommandName Set-AzureADMSGroupLifecyclePolicy -MockWith { + + } + + Mock -CommandName Remove-AzureADMSGroupLifecyclePolicy -MockWith { + + } + + Mock -CommandName New-AzureADMSGroupLifecyclePolicy -MockWith { + + } + + # Test contexts + Context -Name "The Policy should exist but it DOES NOT" -Fixture { + $testParams = @{ + AlternateNotificationEmails = @("john.smith@contoso.com"); + Ensure = "Present"; + GlobalAdminAccount = $GlobalAdminAccount; + GroupLifetimeInDays = 99; + IsSingleInstance = "Yes"; + ManagedGroupTypes = "Selected"; + } + + Mock -CommandName Get-AzureADMSGroupLifecyclePolicy -MockWith { + return $null + } + + It "Should return Values from the Get method" { + (Get-TargetResource @testParams).Ensure | Should be 'Absent' + Assert-MockCalled -CommandName "Get-AzureADMSGroupLifecyclePolicy" -Exactly 1 + } + + It 'Should return false from the Test method' { + Test-TargetResource @testParams | Should Be $false + } + $Script:calledOnceAlready = $false + It 'Should Create the Policy from the Set method' { + Set-TargetResource @testParams + Assert-MockCalled -CommandName "New-AzureADMSGroupLifecyclePolicy" -Exactly 1 + Assert-MockCalled -CommandName "Set-AzureADMSGroupLifecyclePolicy" -Exactly 0 + Assert-MockCalled -CommandName "Remove-AzureADMSGroupLifecyclePolicy" -Exactly 0 + } + } + + Context -Name "The Policy exists but it SHOULD NOT" -Fixture { + $testParams = @{ + AlternateNotificationEmails = @("john.smith@contoso.com", 'bob.houle@contoso.com'); + Ensure = "Absent"; + GlobalAdminAccount = $GlobalAdminAccount; + GroupLifetimeInDays = 99; + IsSingleInstance = "Yes"; + ManagedGroupTypes = "Selected"; + } + + Mock -CommandName Get-AzureADMSGroupLifecyclePolicy -MockWith { + return @{ + AlternateNotificationEmails = @("john.smith@contoso.com", 'bob.houle@contoso.com'); + GroupLifetimeInDays = 99; + ManagedGroupTypes = "Selected"; + Id = '12345-12345-12345-12345-12345' + } + } + + It "Should return Values from the Get method" { + (Get-TargetResource @testParams).Ensure | Should be 'Present' + Assert-MockCalled -CommandName "Get-AzureADMSGroupLifecyclePolicy" -Exactly 1 + } + + It 'Should return false from the Test method' { + Test-TargetResource @testParams | Should Be $false + } + + It 'Should Remove the Policy from the Set method' { + Set-TargetResource @testParams + Assert-MockCalled -CommandName "New-AzureADMSGroupLifecyclePolicy" -Exactly 0 + Assert-MockCalled -CommandName "Set-AzureADMSGroupLifecyclePolicy" -Exactly 0 + Assert-MockCalled -CommandName "Remove-AzureADMSGroupLifecyclePolicy" -Exactly 1 + } + } + + Context -Name "The Policy Exists and Values are already in the desired state" -Fixture { + $testParams = @{ + AlternateNotificationEmails = @("john.smith@contoso.com", 'bob.houle@contoso.com'); + Ensure = "Present"; + GlobalAdminAccount = $GlobalAdminAccount; + GroupLifetimeInDays = 99; + IsSingleInstance = "Yes"; + ManagedGroupTypes = "Selected"; + } + + Mock -CommandName Get-AzureADMSGroupLifecyclePolicy -MockWith { + return @{ + AlternateNotificationEmails = @("john.smith@contoso.com", 'bob.houle@contoso.com'); + GroupLifetimeInDays = 99; + ManagedGroupTypes = "Selected"; + Id = '12345-12345-12345-12345-12345' + } + } + + It "Should return Values from the Get method" { + (Get-TargetResource @testParams).Ensure | Should be 'Present' + Assert-MockCalled -CommandName "Get-AzureADMSGroupLifecyclePolicy" -Exactly 1 + } + + It 'Should return true from the Test method' { + Test-TargetResource @testParams | Should Be $true + } + } + + Context -Name "Values are NOT in the desired state" -Fixture { + $testParams = @{ + AlternateNotificationEmails = @("john.smith@contoso.com", 'bob.houle@contoso.com'); + Ensure = "Present"; + GlobalAdminAccount = $GlobalAdminAccount; + GroupLifetimeInDays = 77; #Drift + IsSingleInstance = "Yes"; + ManagedGroupTypes = "Selected"; + } + + Mock -CommandName Get-AzureADMSGroupLifecyclePolicy -MockWith { + return @{ + AlternateNotificationEmails = @("john.smith@contoso.com", 'bob.houle@contoso.com'); + GroupLifetimeInDays = 99; + ManagedGroupTypes = "Selected"; + Id = '12345-12345-12345-12345-12345' + } + } + + It "Should return Values from the Get method" { + (Get-TargetResource @testParams).Ensure | Should be 'Present' + Assert-MockCalled -CommandName "Get-AzureADMSGroupLifecyclePolicy" -Exactly 1 + } + + It 'Should return false from the Test method' { + Test-TargetResource @testParams | Should Be $false + } + + It 'Should Update the Policy from the Set method' { + Set-TargetResource @testParams + Assert-MockCalled -CommandName "New-AzureADMSGroupLifecyclePolicy" -Exactly 0 + Assert-MockCalled -CommandName "Set-AzureADMSGroupLifecyclePolicy" -Exactly 1 + Assert-MockCalled -CommandName "Remove-AzureADMSGroupLifecyclePolicy" -Exactly 0 + } + } + + Context -Name "ReverseDSC Tests" -Fixture { + $testParams = @{ + GlobalAdminAccount = $GlobalAdminAccount + } + + Mock -CommandName Get-AzureADMSGroupLifecyclePolicy -MockWith { + return @{ + AlternateNotificationEmails = @("john.smith@contoso.com", 'bob.houle@contoso.com'); + GroupLifetimeInDays = 99; + ManagedGroupTypes = "Selected"; + Id = '12345-12345-12345-12345-12345' + } + } + + It "Should Reverse Engineer resource from the Export method" { + Export-TargetResource @testParams + } + } + } +} + +Invoke-Command -ScriptBlock $Global:DscHelper.CleanupScript -NoNewScope diff --git a/Tests/Unit/Stubs/Generic.psm1 b/Tests/Unit/Stubs/Generic.psm1 index 0d8dfa42fd..58d2611ca0 100644 --- a/Tests/Unit/Stubs/Generic.psm1 +++ b/Tests/Unit/Stubs/Generic.psm1 @@ -58,6 +58,29 @@ function Set-AzureADDirectorySetting $DirectorySetting ) } + +function Set-AzureADMSGroupLifecyclePolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${Id}, + + [Parameter(Mandatory = $true)] + [System.UInt32] + $GroupLifetimeInDays, + + [Parameter(Mandatory = $true)] + [System.String] + [ValidateSet('All', 'Selected', 'None')] + $ManagedGroupTypes, + + [Parameter(Mandatory = $true)] + [System.String[]] + $AlternateNotificationEmails + ) +} function Get-PSSession { [CmdletBinding()] diff --git a/Tests/Unit/Stubs/Office365.psm1 b/Tests/Unit/Stubs/Office365.psm1 index 1cb70a7a4a..70db4ceebd 100644 --- a/Tests/Unit/Stubs/Office365.psm1 +++ b/Tests/Unit/Stubs/Office365.psm1 @@ -1,23 +1,15 @@ #region AzureAD -function Get-AzureADApplicationProxyConnectorGroupMembers +function Add-AzureADAdministrativeUnitMember { [CmdletBinding()] param( [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [string] - ${Id}, - - [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] - [System.Nullable[bool]] - ${All}, - - [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] - [System.Nullable[int]] - ${Top}, + ${ObjectId}, - [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [string] - ${Filter}) + ${RefObjectId}) } function Add-AzureADApplicationOwner @@ -32,6 +24,19 @@ param( [string] ${RefObjectId}) +} +function Add-AzureADApplicationPolicy +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${RefObjectId}) + } function Add-AzureADDeviceRegisteredOwner { @@ -97,6 +102,32 @@ param( [string] ${RefObjectId}) +} +function Add-AzureADMSApplicationOwner +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${RefObjectId}) + +} +function Add-AzureADMSFeatureRolloutPolicyDirectoryObject +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${RefObjectId}) + } function Add-AzureADMSLifecyclePolicyGroup { @@ -107,6 +138,45 @@ function Add-AzureADMSLifecyclePolicyGroup ${Id} ) } +function Add-AzureADMSPrivilegedResource +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ProviderId} + ) +} +function Add-AzureADMSServicePrincipalDelegatedPermissionClassification +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ServicePrincipalId} + ) +} +function Add-AzureADScopedRoleMembership +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ObjectId}, + + [Parameter()] + [System.String] + ${AdministrativeUnitObjectId}, + + [Parameter()] + [System.String] + ${RoleObjectId}, + + [Parameter()] + [Microsoft.Open.AzureAD.Model.RoleMemberInfo] + ${RoleMemberInfo} + ) +} function Add-AzureADServicePrincipalOwner { [CmdletBinding()] @@ -119,6 +189,32 @@ param( [string] ${RefObjectId}) +} +function Add-AzureADServicePrincipalPolicy +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${RefObjectId}) + +} +function Close-AzureADMSPrivilegedRoleAssignmentRequest +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ProviderId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + } function Confirm-AzureADDomain { @@ -126,7 +222,11 @@ function Confirm-AzureADDomain param( [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [string] - ${Name}) + ${Name}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Microsoft.Open.AzureAD.Model.CrossCloudVerificationCodeBody] + ${CrossCloudVerificationCode}) } function Connect-AzureAD @@ -195,6 +295,36 @@ function Enable-AzureADDirectoryRole ${RoleTemplateId} ) } +function Get-AzureADAdministrativeUnit +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[bool]] + ${All}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADAdministrativeUnitMember +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}) + +} function Get-AzureADApplication { [CmdletBinding(DefaultParameterSetName='GetQuery')] @@ -284,6 +414,15 @@ param( [string] ${ObjectId}) +} +function Get-AzureADApplicationPolicy +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + } function Get-AzureADApplicationProxyApplication { @@ -353,7 +492,7 @@ param( ${Filter}) } -function Get-AzureADApplicationProxyConnectorGroupMember +function Get-AzureADApplicationProxyConnectorGroupMembers { [CmdletBinding()] param( @@ -399,6 +538,70 @@ param( [System.Nullable[int]] ${Top}) +} +function Get-AzureADApplicationSignInDetailedSummary +{ + [CmdletBinding()] +param( + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADApplicationSignInSummary +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Days}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADAuditDirectoryLogs +{ + [CmdletBinding()] +param( + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[bool]] + ${All}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADAuditSignInLogs +{ + [CmdletBinding()] +param( + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[bool]] + ${All}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + } function Get-AzureADContact { @@ -617,11 +820,7 @@ function Get-AzureADDirectoryRoleMember param( [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [string] - ${ObjectId}, - - [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] - [string] - ${Filter}) + ${ObjectId}) } function Get-AzureADDirectoryRoleTemplate @@ -629,6 +828,32 @@ function Get-AzureADDirectoryRoleTemplate [CmdletBinding()] param() +} +function Get-AzureADDirectorySetting +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[bool]] + ${All}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}) + +} +function Get-AzureADDirectorySettingTemplate +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + } function Get-AzureADDomain { @@ -675,6 +900,27 @@ function Get-AzureADExtensionProperty ${IsSyncedFromOnPremises} ) } +function Get-AzureADExternalDomainFederation +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ExternalDomainName}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[bool]] + ${All}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} function Get-AzureADGroup { [CmdletBinding(DefaultParameterSetName='GetQuery')] @@ -751,16 +997,7 @@ param( ${Top}) } -function Get-AzureADMSDeletedDirectoryObject -{ - [CmdletBinding()] -param( - [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] - [string] - ${Id}) - -} -function Get-AzureADMSDeletedGroup +function Get-AzureADMSApplication { [CmdletBinding(DefaultParameterSetName='GetQuery')] param( @@ -770,7 +1007,7 @@ param( [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [string] - ${Id}, + ${ObjectId}, [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [System.Nullable[bool]] @@ -785,7 +1022,60 @@ param( ${Filter}) } -function Get-AzureADMSGroup +function Get-AzureADMSApplicationExtensionProperty +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}) + +} +function Get-AzureADMSApplicationOwner +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[bool]] + ${All}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}) + +} +function Get-AzureADMSApplicationTemplate +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + +} +function Get-AzureADMSAuthorizationPolicy +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + +} +function Get-AzureADMSDeletedDirectoryObject +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + +} +function Get-AzureADMSDeletedGroup { [CmdletBinding(DefaultParameterSetName='GetQuery')] param( @@ -809,6 +1099,53 @@ param( [string] ${Filter}) +} +function Get-AzureADMSFeatureRolloutPolicy +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetVague', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${SearchString}, + + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADMSGroup +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetVague', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${SearchString}, + + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[bool]] + ${All}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Parameter(ParameterSetName='GetById', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Select}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + } function Get-AzureADMSGroupLifecyclePolicy { @@ -818,6 +1155,15 @@ param( [string] ${Id}) +} +function Get-AzureADMSIdentityProvider +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + } function Get-AzureADMSLifecyclePolicyGroup { @@ -827,6 +1173,221 @@ param( [string] ${Id}) +} +function Get-AzureADMSPasswordSingleSignOnCredential +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Microsoft.Open.MSGraph.Model.PasswordSSOObjectId] + ${PasswordSSOObjectId}) + +} +function Get-AzureADMSPermissionGrantPolicy +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + +} +function Get-AzureADMSPrivilegedResource +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ProviderId}, + + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADMSPrivilegedRoleAssignment +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ProviderId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ResourceId}, + + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADMSPrivilegedRoleAssignmentRequest +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ProviderId}, + + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADMSPrivilegedRoleDefinition +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ProviderId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ResourceId}, + + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADMSPrivilegedRoleSetting +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ProviderId}, + + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADMSRoleAssignment +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetVague', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${SearchString}, + + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[bool]] + ${All}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADMSRoleDefinition +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetVague', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${SearchString}, + + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[bool]] + ${All}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADMSServicePrincipalDelegatedPermissionClassification +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ServicePrincipalId}, + + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADMSTrustFrameworkPolicy +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ParameterSetName='GetById', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${OutputFilePath}) + } function Get-AzureADOAuth2PermissionGrant { @@ -854,6 +1415,100 @@ function Get-AzureADObjectByObjectId ${Types} ) } +function Get-AzureADObjectSetting +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${TargetType}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${TargetObjectId}, + + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[bool]] + ${All}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}) + +} +function Get-AzureADPolicy +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[bool]] + ${All}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}) + +} +function Get-AzureADPolicyAppliedObject +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + +} +function Get-AzureADPrivilegedRole +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Filter}) + +} +function Get-AzureADPrivilegedRoleAssignment +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[bool]] + ${All}, + + [Parameter(ParameterSetName='GetQuery', ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [System.Nullable[int]] + ${Top}) + +} +function Get-AzureADScopedRoleMembership +{ + [CmdletBinding(DefaultParameterSetName='GetQuery')] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ScopedRoleMembershipId}) + +} function Get-AzureADServiceAppRoleAssignedTo { [CmdletBinding(DefaultParameterSetName='GetQuery')] @@ -1015,6 +1670,15 @@ param( [string] ${ObjectId}) +} +function Get-AzureADServicePrincipalPolicy +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + } function Get-AzureADSubscribedSku { @@ -1260,6 +1924,28 @@ param( ${View}) } +function Get-CrossCloudVerificationCode +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Name}) + +} +function New-AzureADAdministrativeUnit +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${Description}, + + [Parameter()] + [System.String] + ${DisplayName} + ) +} function New-AzureADApplication { [CmdletBinding()] @@ -1504,10 +2190,6 @@ param( [System.Nullable[bool]] ${IsTranslateHostHeaderEnabled}, - [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] - [System.Nullable[bool]] - ${IsHttpOnlyCookieEnabled}, - [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [System.Nullable[bool]] ${IsTranslateLinksInBodyEnabled}, @@ -1595,6 +2277,15 @@ function New-AzureADDevice ${SystemLabels} ) } +function New-AzureADDirectorySetting +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Microsoft.Open.MSGraph.Model.DirectorySetting] + ${DirectorySetting}) + +} function New-AzureADDomain { [CmdletBinding()] @@ -1603,6 +2294,10 @@ function New-AzureADDomain [System.Nullable`1[System.Boolean]] ${IsDefault}, + [Parameter()] + [System.Nullable`1[System.Boolean]] + ${IsDefaultForCloudRedirections}, + [Parameter()] [System.String] ${Name}, @@ -1612,6 +2307,19 @@ function New-AzureADDomain ${SupportedServices} ) } +function New-AzureADExternalDomainFederation +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ExternalDomainName}, + + [Parameter()] + [Microsoft.Open.AzureAD.Model.DomainFederationSettings] + ${FederationSettings} + ) +} function New-AzureADGroup { [CmdletBinding()] @@ -1658,37 +2366,186 @@ function New-AzureADGroupAppRoleAssignment ${ResourceId} ) } -function New-AzureADMSGroup +function New-AzureADMSApplication { [CmdletBinding()] param( + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.AddIn]] + ${AddIns}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.ApiApplication] + ${Api}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.AppRole]] + ${AppRoles}, + [Parameter()] [System.String] - ${Description}, + ${GroupMembershipClaims}, + + [Parameter()] + [System.Nullable`1[System.Boolean]] + ${IsDeviceOnlyAuthSupported}, + + [Parameter()] + [System.Nullable`1[System.Boolean]] + ${IsFallbackPublicClient}, + + [Parameter()] + [System.Collections.Generic.List`1[System.String]] + ${IdentifierUris}, [Parameter()] [System.String] ${DisplayName}, [Parameter()] - [System.Nullable`1[System.Boolean]] - ${MailEnabled}, + [Microsoft.Open.MSGraph.Model.InformationalUrl] + ${InformationalUrl}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.KeyCredential]] + ${KeyCredentials}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.OptionalClaims] + ${OptionalClaims}, + + [Parameter()] + [System.Collections.Generic.List`1[System.String]] + ${OrgRestrictions}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.ParentalControlSettings] + ${ParentalControlSettings}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.PasswordCredential]] + ${PasswordCredentials}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.PreAuthorizedApplication]] + ${PreAuthorizedApplications}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.PublicClientApplication] + ${PublicClient}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.RequiredResourceAccess]] + ${RequiredResourceAccess}, [Parameter()] [System.String] - ${MailNickname}, + ${SignInAudience}, [Parameter()] - [System.Nullable`1[System.Boolean]] - ${SecurityEnabled}, + [System.Collections.Generic.List`1[System.String]] + ${Tags}, + + [Parameter()] + [System.String] + ${TokenEncryptionKeyId}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.WebApplication] + ${Web} + ) +} +function New-AzureADMSApplicationExtensionProperty +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ObjectId}, + + [Parameter()] + [System.String] + ${Name}, + + [Parameter()] + [System.String] + ${DataType}, [Parameter()] [System.Collections.Generic.List`1[System.String]] - ${GroupTypes}, + ${TargetObjects} + ) +} +function New-AzureADMSApplicationKey +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ObjectId}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.KeyCredential] + ${KeyCredential}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.PasswordCredential] + ${PasswordCredential}, + + [Parameter()] + [System.String] + ${Proof} + ) +} +function New-AzureADMSApplicationPassword +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ObjectId}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.PasswordCredential] + ${PasswordCredential} + ) +} +function New-AzureADMSFeatureRolloutPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Nullable`1[Microsoft.Open.MSGraph.Model.MsFeatureRolloutPolicy+FeatureEnum]] + ${Feature}, + + [Parameter()] + [System.String] + ${DisplayName}, [Parameter()] [System.String] - ${Visibility} + ${Description}, + + [Parameter()] + [System.Nullable`1[System.Boolean]] + ${IsEnabled}, + + [Parameter()] + [System.Nullable`1[System.Boolean]] + ${IsAppliedToOrganization}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.MsDirectoryObject]] + ${AppliesTo} + ) +} +function New-AzureADMSGroup +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${LabelId} ) } function New-AzureADMSGroupLifecyclePolicy @@ -1708,6 +2565,27 @@ function New-AzureADMSGroupLifecyclePolicy ${AlternateNotificationEmails} ) } +function New-AzureADMSIdentityProvider +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${Type}, + + [Parameter()] + [System.String] + ${Name}, + + [Parameter()] + [System.String] + ${ClientId}, + + [Parameter()] + [System.String] + ${ClientSecret} + ) +} function New-AzureADMSInvitation { [CmdletBinding()] @@ -1728,13 +2606,203 @@ function New-AzureADMSInvitation [System.String] ${InviteRedirectUrl}, + [Parameter()] + [Microsoft.Open.MSGraph.Model.User] + ${InvitedUser}, + [Parameter()] [Microsoft.Open.MSGraph.Model.InvitedUserMessageInfo] ${InvitedUserMessageInfo}, [Parameter()] [System.String] - ${InvitedUserType} + ${InvitedUserType}, + + [Parameter()] + [System.Nullable`1[System.Boolean]] + ${ResetRedemption} + ) +} +function New-AzureADMSPasswordSingleSignOnCredential +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Microsoft.Open.MSGraph.Model.PasswordSSOCredentials] + ${PasswordSSOCredential}) + +} +function New-AzureADMSPermissionGrantPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${Description}, + + [Parameter()] + [System.String] + ${DisplayName}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.PermissionGrantConditionSet]] + ${Excludes}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.PermissionGrantConditionSet]] + ${Includes}, + + [Parameter()] + [System.String] + ${Id} + ) +} +function New-AzureADMSRoleAssignment +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${RoleDefinitionId}, + + [Parameter()] + [System.String] + ${PrincipalId}, + + [Parameter()] + [System.String] + ${ResourceScope} + ) +} +function New-AzureADMSRoleDefinition +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${Description}, + + [Parameter()] + [System.String] + ${DisplayName}, + + [Parameter()] + [System.Collections.Generic.List`1[System.String]] + ${ResourceScopes}, + + [Parameter()] + [System.Nullable`1[System.Boolean]] + ${IsEnabled}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.RolePermission]] + ${RolePermissions}, + + [Parameter()] + [System.String] + ${TemplateId}, + + [Parameter()] + [System.String] + ${Version} + ) +} +function New-AzureADMSTrustFrameworkPolicy +{ + [CmdletBinding(DefaultParameterSetName='Content')] +param( + [Parameter(ParameterSetName='File', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${InputFilePath}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Parameter(ParameterSetName='Content')] + [Parameter(ParameterSetName='File')] + [string] + ${OutputFilePath}, + + [Parameter(ParameterSetName='Content', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Content}) + +} +function New-AzureADObjectSetting +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${TargetType}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${TargetObjectId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Microsoft.Open.MSGraph.Model.DirectorySetting] + ${DirectorySetting}) + +} +function New-AzureADPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${AlternativeIdentifier}, + + [Parameter()] + [System.Collections.Generic.List`1[System.String]] + ${Definition}, + + [Parameter()] + [System.String] + ${DisplayName}, + + [Parameter()] + [System.Nullable`1[System.Boolean]] + ${IsOrganizationDefault}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.KeyCredential]] + ${KeyCredentials}, + + [Parameter()] + [System.String] + ${Type} + ) +} +function New-AzureADPrivilegedRoleAssignment +{ + [CmdletBinding()] + param( + [Parameter()] + [System.Nullable`1[System.DateTime]] + ${ExpirationDateTime}, + + [Parameter()] + [System.String] + ${Id}, + + [Parameter()] + [System.Nullable`1[System.Boolean]] + ${IsElevated}, + + [Parameter()] + [System.String] + ${ResultMessage}, + + [Parameter()] + [System.String] + ${RoleId}, + + [Parameter()] + [System.String] + ${UserId} ) } function New-AzureADServiceAppRoleAssignment @@ -1914,6 +2982,10 @@ function New-AzureADUser [System.String] ${City}, + [Parameter()] + [System.String] + ${CompanyName}, + [Parameter()] [System.String] ${ConsentProvidedForMinor}, @@ -2052,6 +3124,37 @@ function New-AzureADUserAppRoleAssignment ${ResourceId} ) } +function Open-AzureADMSPrivilegedRoleAssignmentRequest +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ProviderId} + ) +} +function Remove-AzureADAdministrativeUnit +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}) + +} +function Remove-AzureADAdministrativeUnitMember +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${MemberId}) + +} function Remove-AzureADApplication { [CmdletBinding()] @@ -2112,6 +3215,19 @@ param( [string] ${KeyId}) +} +function Remove-AzureADApplicationPolicy +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${PolicyId}) + } function Remove-AzureADApplicationProxyApplication { @@ -2218,6 +3334,15 @@ param( [string] ${MemberId}) +} +function Remove-AzureADDirectorySetting +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + } function Remove-AzureADDomain { @@ -2227,6 +3352,15 @@ param( [string] ${Name}) +} +function Remove-AzureADExternalDomainFederation +{ + [CmdletBinding()] +param( + [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ExternalDomainName}) + } function Remove-AzureADGroup { @@ -2276,6 +3410,71 @@ param( ${OwnerId}) } +function Remove-AzureADMSApplication +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}) + +} +function Remove-AzureADMSApplicationExtensionProperty +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ExtensionPropertyId}) + +} +function Remove-AzureADMSApplicationKey +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ObjectId}, + + [Parameter()] + [System.String] + ${KeyId}, + + [Parameter()] + [System.String] + ${Proof} + ) +} +function Remove-AzureADMSApplicationOwner +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${OwnerId}) + +} +function Remove-AzureADMSApplicationPassword +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ObjectId}, + + [Parameter()] + [System.String] + ${KeyId} + ) +} function Remove-AzureADMSDeletedDirectoryObject { [CmdletBinding()] @@ -2284,6 +3483,28 @@ param( [string] ${Id}) +} +function Remove-AzureADMSFeatureRolloutPolicy +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + +} +function Remove-AzureADMSFeatureRolloutPolicyDirectoryObject +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}) + } function Remove-AzureADMSGroup { @@ -2302,6 +3523,15 @@ param( [string] ${Id}) +} +function Remove-AzureADMSIdentityProvider +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + } function Remove-AzureADMSLifecyclePolicyGroup { @@ -2312,6 +3542,68 @@ function Remove-AzureADMSLifecyclePolicyGroup ${Id} ) } +function Remove-AzureADMSPasswordSingleSignOnCredential +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Microsoft.Open.MSGraph.Model.PasswordSSOObjectId] + ${PasswordSSOObjectId}) + +} +function Remove-AzureADMSPermissionGrantPolicy +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + +} +function Remove-AzureADMSRoleAssignment +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + +} +function Remove-AzureADMSRoleDefinition +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + +} +function Remove-AzureADMSServicePrincipalDelegatedPermissionClassification +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ServicePrincipalId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + +} +function Remove-AzureADMSTrustFrameworkPolicy +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + +} function Remove-AzureADOAuth2PermissionGrant { [CmdletBinding()] @@ -2320,6 +3612,45 @@ param( [string] ${ObjectId}) +} +function Remove-AzureADObjectSetting +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${TargetType}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${TargetObjectId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + +} +function Remove-AzureADPolicy +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}) + +} +function Remove-AzureADScopedRoleMembership +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ScopedRoleMembershipId}) + } function Remove-AzureADServiceAppRoleAssignment { @@ -2381,6 +3712,19 @@ param( [string] ${KeyId}) +} +function Remove-AzureADServicePrincipalPolicy +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${PolicyId}) + } function Remove-AzureADTrustedCertificateAuthority { @@ -2443,11 +3787,11 @@ param( function Reset-AzureADMSLifeCycleGroup { [CmdletBinding()] -param( - [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] - [string] - ${Id}) - + param( + [Parameter()] + [System.String] + ${GroupId} + ) } function Restore-AzureADDeletedApplication { @@ -2466,7 +3810,7 @@ function Restore-AzureADMSDeletedDirectoryObject { [CmdletBinding()] param( - [Parameter(ParameterSetName='GetById', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [string] ${Id}) @@ -2538,6 +3882,23 @@ param( ${GroupIdsForMembershipCheck}) } +function Set-AzureADAdministrativeUnit +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ObjectId}, + + [Parameter()] + [System.String] + ${Description}, + + [Parameter()] + [System.String] + ${DisplayName} + ) +} function Set-AzureADApplication { [CmdletBinding()] @@ -2731,10 +4092,6 @@ param( [System.Nullable[bool]] ${IsTranslateHostHeaderEnabled}, - [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] - [System.Nullable[bool]] - ${IsHttpOnlyCookieEnabled}, - [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] [System.Nullable[bool]] ${IsTranslateLinksInBodyEnabled}, @@ -2894,6 +4251,19 @@ function Set-AzureADDevice ${SystemLabels} ) } +function Set-AzureADDirectorySetting +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Microsoft.Open.MSGraph.Model.DirectorySetting] + ${DirectorySetting}) + +} function Set-AzureADDomain { [CmdletBinding()] @@ -2932,7 +4302,113 @@ function Set-AzureADGroup ${SecurityEnabled} ) } -function Set-AzureADMSGroup +function Set-AzureADMSApplication +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ObjectId}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.AddIn]] + ${AddIns}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.ApiApplication] + ${Api}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.AppRole]] + ${AppRoles}, + + [Parameter()] + [System.String] + ${GroupMembershipClaims}, + + [Parameter()] + [System.Nullable`1[System.Boolean]] + ${IsDeviceOnlyAuthSupported}, + + [Parameter()] + [System.Nullable`1[System.Boolean]] + ${IsFallbackPublicClient}, + + [Parameter()] + [System.Collections.Generic.List`1[System.String]] + ${IdentifierUris}, + + [Parameter()] + [System.String] + ${DisplayName}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.InformationalUrl] + ${InformationalUrl}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.KeyCredential]] + ${KeyCredentials}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.OptionalClaims] + ${OptionalClaims}, + + [Parameter()] + [System.Collections.Generic.List`1[System.String]] + ${OrgRestrictions}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.ParentalControlSettings] + ${ParentalControlSettings}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.PasswordCredential]] + ${PasswordCredentials}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.PreAuthorizedApplication]] + ${PreAuthorizedApplications}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.PublicClientApplication] + ${PublicClient}, + + [Parameter()] + [System.Collections.Generic.List`1[Microsoft.Open.MSGraph.Model.RequiredResourceAccess]] + ${RequiredResourceAccess}, + + [Parameter()] + [System.String] + ${SignInAudience}, + + [Parameter()] + [System.Collections.Generic.List`1[System.String]] + ${Tags}, + + [Parameter()] + [System.String] + ${TokenEncryptionKeyId}, + + [Parameter()] + [Microsoft.Open.MSGraph.Model.WebApplication] + ${Web} + ) +} +function Set-AzureADMSApplicationLogo +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [byte[]] + ${Content}) + +} +function Set-AzureADMSAuthorizationPolicy { [CmdletBinding()] param( @@ -2941,6 +4417,28 @@ function Set-AzureADMSGroup ${Id} ) } +function Set-AzureADMSFeatureRolloutPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${Id} + ) +} +function Set-AzureADMSGroup +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${Id}, + + [Parameter()] + [System.String] + ${LabelId} + ) +} function Set-AzureADMSGroupLifecyclePolicy { [CmdletBinding()] @@ -2950,6 +4448,127 @@ function Set-AzureADMSGroupLifecyclePolicy ${Id} ) } +function Set-AzureADMSIdentityProvider +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${Id} + ) +} +function Set-AzureADMSPasswordSingleSignOnCredential +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${ObjectId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Microsoft.Open.MSGraph.Model.PasswordSSOCredentials] + ${PasswordSSOCredential}) + +} +function Set-AzureADMSPermissionGrantPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${Id} + ) +} +function Set-AzureADMSPrivilegedRoleAssignmentRequest +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ProviderId}, + + [Parameter()] + [System.String] + ${Id} + ) +} +function Set-AzureADMSPrivilegedRoleSetting +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${ProviderId}, + + [Parameter()] + [System.String] + ${Id} + ) +} +function Set-AzureADMSRoleDefinition +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${Id} + ) +} +function Set-AzureADMSTrustFrameworkPolicy +{ + [CmdletBinding(DefaultParameterSetName='Content')] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Parameter(ParameterSetName='Content')] + [Parameter(ParameterSetName='File')] + [string] + ${Id}, + + [Parameter(ParameterSetName='File', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${InputFilePath}, + + [Parameter(ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Parameter(ParameterSetName='Content')] + [Parameter(ParameterSetName='File')] + [string] + ${OutputFilePath}, + + [Parameter(ParameterSetName='Content', Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Content}) + +} +function Set-AzureADObjectSetting +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${TargetType}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${TargetObjectId}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [string] + ${Id}, + + [Parameter(Mandatory=$true, ValueFromPipeline=$true, ValueFromPipelineByPropertyName=$true)] + [Microsoft.Open.MSGraph.Model.DirectorySetting] + ${DirectorySetting}) + +} +function Set-AzureADPolicy +{ + [CmdletBinding()] + param( + [Parameter()] + [System.String] + ${Id} + ) +} function Set-AzureADServicePrincipal { [CmdletBinding()] @@ -3081,6 +4700,10 @@ function Set-AzureADUser [System.String] ${City}, + [Parameter()] + [System.String] + ${CompanyName}, + [Parameter()] [System.String] ${ConsentProvidedForMinor}, @@ -9137,6 +10760,9 @@ function Get-CalendarDiagnosticObjects { param( + [System.Object] + ${ShouldDecodeEnums}, + [Alias('wa')] [System.Object] ${WarningAction}, @@ -9144,6 +10770,9 @@ param( [System.Object] ${Identity}, + [System.Object] + ${ShouldFetchAttendeeCollection}, + [Alias('ev')] [System.Object] ${ErrorVariable}, @@ -9159,9 +10788,6 @@ param( [System.Object] ${Subject}, - [System.Object] - ${EndDate}, - [Alias('wv')] [System.Object] ${WarningVariable}, @@ -9202,6 +10828,10 @@ param( [System.Object] ${MeetingId}, + [Alias('ob')] + [System.Object] + ${OutBuffer}, + [System.Object] ${ItemClass}, @@ -9212,9 +10842,8 @@ param( [System.Object] ${ConfigurationName}, - [Alias('ob')] [System.Object] - ${OutBuffer}, + ${EndDate}, [Alias('iv')] [System.Object] @@ -12378,7 +14007,88 @@ param( ${Debug}, [System.Object] - ${EndDate}, + ${EndDate}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [System.Object] + ${DlpCompliancePolicy}, + + [System.Object] + ${PageSize}, + + [System.Object] + ${AggregateBy}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${EventType}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [System.Object] + ${DlpComplianceRule}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [System.Object] + ${StartDate}, + + [System.Object] + ${SummarizeBy}, + + [switch] + ${AsJob}) + +} +function Get-DlpIncidentDetailReport +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [System.Object] + ${Action}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [System.Object] + ${Source}, + + [System.Object] + ${Page}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('db')] + [switch] + ${Debug}, + + [System.Object] + ${Actor}, [Alias('pv')] [System.Object] @@ -12390,13 +14100,13 @@ param( [System.Object] ${PageSize}, - [System.Object] - ${AggregateBy}, - [Alias('ev')] [System.Object] ${ErrorVariable}, + [System.Object] + ${EndDate}, + [System.Object] ${EventType}, @@ -12418,96 +14128,70 @@ param( [System.Object] ${StartDate}, + [Alias('iv')] [System.Object] - ${SummarizeBy}, + ${InformationVariable}, [switch] ${AsJob}) } -function Get-DlpIncidentDetailReport +function Get-DlpKeywordDictionary { param( - [Alias('ea')] + [Alias('wv')] [System.Object] - ${ErrorAction}, + ${WarningVariable}, + [Alias('ov')] [System.Object] - ${Action}, + ${OutVariable}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, [Alias('vb')] [switch] ${Verbose}, - [System.Object] - ${Source}, - - [System.Object] - ${Page}, - [Alias('infa')] [System.Object] ${InformationAction}, - [Alias('wv')] - [System.Object] - ${WarningVariable}, - [Alias('db')] [switch] ${Debug}, [System.Object] - ${Actor}, - - [Alias('pv')] - [System.Object] - ${PipelineVariable}, - - [System.Object] - ${DlpCompliancePolicy}, + ${Name}, + [Alias('ob')] [System.Object] - ${PageSize}, + ${OutBuffer}, [Alias('ev')] [System.Object] ${ErrorVariable}, + [Alias('pv')] [System.Object] - ${EndDate}, - - [System.Object] - ${EventType}, - - [Alias('ob')] - [System.Object] - ${OutBuffer}, + ${PipelineVariable}, + [Alias('ea')] [System.Object] - ${DlpComplianceRule}, + ${ErrorAction}, [Alias('wa')] [System.Object] ${WarningAction}, - [Alias('ov')] - [System.Object] - ${OutVariable}, - - [System.Object] - ${StartDate}, - - [Alias('iv')] - [System.Object] - ${InformationVariable}, - [switch] ${AsJob}) } -function Get-DlpKeywordDictionary +function Get-DlpPolicy { param( @@ -12515,9 +14199,9 @@ param( [System.Object] ${WarningVariable}, - [Alias('ov')] + [Alias('ob')] [System.Object] - ${OutVariable}, + ${OutBuffer}, [Alias('iv')] [System.Object] @@ -12535,12 +14219,12 @@ param( [switch] ${Debug}, + [Alias('ov')] [System.Object] - ${Name}, + ${OutVariable}, - [Alias('ob')] [System.Object] - ${OutBuffer}, + ${Identity}, [Alias('ev')] [System.Object] @@ -12562,7 +14246,7 @@ param( ${AsJob}) } -function Get-DlpPolicy +function Get-DlpPolicyTemplate { param( @@ -12617,7 +14301,7 @@ param( ${AsJob}) } -function Get-DlpPolicyTemplate +function Get-DlpSensitiveInformationTypeConfig { param( @@ -16827,7 +18511,7 @@ param( ${Page}, [System.Object] - ${ProbeTag}, + ${DataSource}, [Alias('vb')] [switch] @@ -16837,12 +18521,16 @@ param( [System.Object] ${WarningAction}, + [Alias('wv')] + [System.Object] + ${WarningVariable}, + [Alias('db')] [switch] ${Debug}, [System.Object] - ${MessageTraceId}, + ${EndDate}, [Alias('ov')] [System.Object] @@ -16855,15 +18543,11 @@ param( [System.Object] ${PageSize}, - [Alias('ob')] - [System.Object] - ${OutBuffer}, - [System.Object] - ${SenderAddress}, + ${ProbeTag}, [System.Object] - ${EndDate}, + ${MessageTraceId}, [System.Object] ${Domain}, @@ -16881,15 +18565,18 @@ param( [System.Object] ${RecipientAddress}, + [Alias('ob')] + [System.Object] + ${OutBuffer}, + [System.Object] ${MessageId}, [System.Object] ${StartDate}, - [Alias('wv')] [System.Object] - ${WarningVariable}, + ${SenderAddress}, [Alias('iv')] [System.Object] @@ -19822,6 +21509,9 @@ param( [System.Object] ${OutVariable}, + [switch] + ${DiagnosticOnly}, + [Alias('iv')] [System.Object] ${InformationVariable}, @@ -21225,6 +22915,58 @@ param( [switch] ${AsJob}) +} +function Get-PolicyConfig +{ + +param( + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [switch] + ${AsJob}) + } function Get-PolicyTipConfig { @@ -34946,6 +36688,9 @@ param( [System.Object] ${ExceptIfAnyOfRecipientAddressMatchesPatterns}, + [System.Object] + ${RecipientAddressType}, + [System.Object] ${ExceptIfContentCharacterSetContainsWords}, @@ -44240,6 +45985,9 @@ param( [System.Object] ${RequestInPolicy}, + [System.Object] + ${AutoRSVPConfiguration}, + [switch] ${IgnoreDefaultScope}, @@ -44492,6 +46240,9 @@ param( [switch] ${WhatIf}, + [System.Object] + ${MacOutlookEnabled}, + [System.Object] ${PopSuppressReadReceipt}, @@ -55495,6 +57246,9 @@ param( [System.Object] ${ExceptIfAnyOfRecipientAddressMatchesPatterns}, + [System.Object] + ${RecipientAddressType}, + [System.Object] ${ExceptIfContentCharacterSetContainsWords}, @@ -57919,6 +59673,9 @@ param( [System.Object] ${InformationAction}, + [switch] + ${DataGovernance}, + [Alias('wv')] [System.Object] ${WarningVariable}, @@ -60816,6 +62573,10 @@ param( [string] ${ClientSideComponentProperties}, + [Parameter(HelpMessage='The Client Side Host Properties of the application customizer. Specify values as a json string : "{''preAllocatedApplicationCustomizerTopHeight'': ''50'', ''preAllocatedApplicationCustomizerBottomHeight'': ''50''}"')] + [string] + ${ClientSideHostProperties}, + [Parameter(HelpMessage='This parameter allows you to optionally apply the cmdlet action to a subweb within the current web. In most situations this parameter is not required and you can connect to the subweb using Connect-PnPOnline instead. Specify the GUID, server relative url (i.e. /sites/team1) or web instance of the web to apply the command to. Omit this parameter to use the current web.')] [SharePointPnP.PowerShell.Commands.Base.PipeBinds.WebPipeBind] ${Web}, @@ -60853,6 +62614,10 @@ param( [switch] ${Publish}, + [Parameter(HelpMessage='Type of layout used for the header')] + [OfficeDevPnP.Core.Pages.ClientSidePageHeaderLayoutType] + ${HeaderLayoutType}, + [Parameter(HelpMessage='Sets the message for publishing the page.')] [Obsolete('This parameter will be ignored')] [string] @@ -61136,6 +62901,10 @@ param( [string] ${ClientSideComponentProperties}, + [Parameter(ParameterSetName='Client Side Component Id', HelpMessage='The Client Side Host Properties of the custom action. Specify values as a json string : "{''preAllocatedApplicationCustomizerTopHeight'': ''50'', ''preAllocatedApplicationCustomizerBottomHeight'': ''50''}"')] + [string] + ${ClientSideHostProperties}, + [Parameter(HelpMessage='This parameter allows you to optionally apply the cmdlet action to a subweb within the current web. In most situations this parameter is not required and you can connect to the subweb using Connect-PnPOnline instead. Specify the GUID, server relative url (i.e. /sites/team1) or web instance of the web to apply the command to. Omit this parameter to use the current web.')] [SharePointPnP.PowerShell.Commands.Base.PipeBinds.WebPipeBind] ${Web}, @@ -61294,10 +63063,6 @@ function Add-PnPField [System.String] ${ClientSideComponentProperties}, - [Parameter()] - [Microsoft.SharePoint.Client.AddFieldOptions] - ${FieldOptions}, - [Parameter()] [SharePointPnP.PowerShell.Commands.Base.PipeBinds.WebPipeBind] ${Web}, @@ -62350,6 +64115,10 @@ param( [switch] ${Paged}, + [Parameter(HelpMessage='A valid XML fragment containing one or more Aggregations')] + [string] + ${Aggregations}, + [Parameter(HelpMessage='This parameter allows you to optionally apply the cmdlet action to a subweb within the current web. In most situations this parameter is not required and you can connect to the subweb using Connect-PnPOnline instead. Specify the GUID, server relative url (i.e. /sites/team1) or web instance of the web to apply the command to. Omit this parameter to use the current web.')] [SharePointPnP.PowerShell.Commands.Base.PipeBinds.WebPipeBind] ${Web}, @@ -62779,6 +64548,15 @@ param( [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] ${Connection}) +} +function Clear-PnPTenantAppCatalogUrl +{ + [CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')] +param( + [Parameter(HelpMessage='Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.')] + [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] + ${Connection}) + } function Clear-PnPTenantRecycleBinItem { @@ -63051,6 +64829,7 @@ param( [Parameter(ParameterSetName='App-Only with Azure Active Directory using certificate as PEM strings', HelpMessage='The Azure environment to use for authentication, the defaults to ''Production'' which is the main Azure environment.')] [Parameter(ParameterSetName='App-Only with Azure Active Directory using certificate from certificate store by thumbprint', HelpMessage='The Azure environment to use for authentication, the defaults to ''Production'' which is the main Azure environment.')] [Parameter(ParameterSetName='App-Only with Azure Active Directory using X502 certificates', HelpMessage='The Azure environment to use for authentication, the defaults to ''Production'' which is the main Azure environment.')] + [Parameter(ParameterSetName='Token', HelpMessage='The Azure environment to use for authentication, the defaults to ''Production'' which is the main Azure environment.')] [OfficeDevPnP.Core.AzureEnvironment] ${AzureEnvironment}, @@ -63307,6 +65086,10 @@ param( [switch] ${TargetPageFolderOverridesDefaultFolder}, + [Parameter(HelpMessage='Remove empty sections and columns after transformation of the page')] + [switch] + ${RemoveEmptySectionsAndColumns}, + [Parameter(HelpMessage='Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.')] [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] ${TargetConnection}, @@ -63319,6 +65102,14 @@ param( [string] ${UserMappingFile}, + [Parameter(HelpMessage='Specifies a taxonomy term mapping file')] + [string] + ${TermMappingFile}, + + [Parameter(HelpMessage='Disables term mapping during transformation')] + [switch] + ${SkipTermStoreMapping}, + [Parameter(HelpMessage='Specifies a LDAP connection string e.g. LDAP://OU=Users,DC=Contoso,DC=local')] [string] ${LDAPConnectionString}, @@ -63520,9 +65311,9 @@ function Enable-PnPCommSite { [CmdletBinding()] param( - [Parameter(HelpMessage='Specifies the full URL of the new site collection. It must be in a valid managed path in the company''s site. For example, for company contoso, valid managed paths are https://contoso.sharepoint.com/sites and https://contoso.sharepoint.com/teams.')] + [Parameter(Position=0, ValueFromPipeline=$true, HelpMessage='The id (guid) of the design package to apply: 96c933ac-3698-44c7-9f4a-5fd17d71af9e (Topic = default), 6142d2a0-63a5-4ba0-aede-d9fefca2c767 (Showcase) or f6cc5403-0d63-442e-96c0-285923709ffc (Blank)')] [string] - ${SiteUrl}, + ${DesignPackageId}, [Parameter(HelpMessage='Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.')] [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] @@ -64252,6 +66043,10 @@ param( [switch] ${Force}, + [Parameter(ParameterSetName='Return as file object', HelpMessage='Retrieve the file contents as a file object.')] + [switch] + ${AsFileObject}, + [Parameter(HelpMessage='This parameter allows you to optionally apply the cmdlet action to a subweb within the current web. In most situations this parameter is not required and you can connect to the subweb using Connect-PnPOnline instead. Specify the GUID, server relative url (i.e. /sites/team1) or web instance of the web to apply the command to. Omit this parameter to use the current web.')] [SharePointPnP.PowerShell.Commands.Base.PipeBinds.WebPipeBind] ${Web}, @@ -64602,6 +66397,23 @@ param( [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] ${Connection}) +} +function Get-PnPManagementApiAccessToken +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, HelpMessage='The Tenant ID to connect to the Office 365 Management API')] + [string] + ${TenantId}, + + [Parameter(Mandatory=$true, HelpMessage='The App\Client ID of the app which gives you access to the Office 365 Management API')] + [string] + ${ClientId}, + + [Parameter(Mandatory=$true, HelpMessage='The Client Secret of the app which gives you access to the Office 365 Management API')] + [string] + ${ClientSecret}) + } function Get-PnPMasterPage { @@ -65152,6 +66964,60 @@ param( [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] ${Connection}) +} +function Get-PnPSiteScriptFromList +{ + [CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, HelpMessage='Specifies the URL of the list to generate a Site Script from')] + [string] + ${Url}, + + [Parameter(HelpMessage='Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.')] + [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] + ${Connection}) + +} +function Get-PnPSiteScriptFromWeb +{ + [CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory=$true, ValueFromPipeline=$true, HelpMessage='Specifies the URL of the site to generate a Site Script from')] + [string] + ${Url}, + + [Parameter(HelpMessage='Allows specifying one or more site relative URLs of lists that should be included into the Site Script, i.e. "Shared Documents","List\MyList"')] + [string[]] + ${Lists}, + + [Parameter(ParameterSetName='All components', HelpMessage='If specified will include all supported components into the Site Script')] + [switch] + ${IncludeAll}, + + [Parameter(ParameterSetName='Specific components', HelpMessage='If specified will include the branding of the site into the Site Script')] + [switch] + ${IncludeBranding}, + + [Parameter(ParameterSetName='Specific components', HelpMessage='If specified will include navigation links into the Site Script')] + [switch] + ${IncludeLinksToExportedItems}, + + [Parameter(ParameterSetName='Specific components', HelpMessage='If specified will include the regional settings into the Site Script')] + [switch] + ${IncludeRegionalSettings}, + + [Parameter(ParameterSetName='Specific components', HelpMessage='If specified will include the external sharing configuration into the Site Script')] + [switch] + ${IncludeSiteExternalSharingCapability}, + + [Parameter(ParameterSetName='Specific components', HelpMessage='If specified will include the branding of the site into the Site Script')] + [switch] + ${IncludeTheme}, + + [Parameter(HelpMessage='Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.')] + [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] + ${Connection}) + } function Get-PnPSiteSearchQueryResults { @@ -65556,6 +67422,24 @@ param( [string] ${Match}) +} +function Get-PnPUnifiedAuditLog +{ + [CmdletBinding()] +param( + [Parameter(HelpMessage='Content type of logs to be retrieved, should be one of the following: AzureActiveDirectory, Exchange, SharePoint, General, DLP.')] + [Parameter(ParameterSetName='Logs by date', HelpMessage='Content type of logs to be retreived, should be one of the following: AzureActiveDirectory, Exchange, SharePoint, General, DLP.')] + [SharePointPnP.PowerShell.Commands.Enums.AuditContentType] + ${ContentType}, + + [Parameter(ParameterSetName='Logs by date', HelpMessage='Start time of logs to be retrieved. Start time and end time must both be specified (or both omitted) and must be less than or equal to 24 hours apart, with the start time prior to end time and start time no more than 7 days in the past.')] + [datetime] + ${StartTime}, + + [Parameter(ParameterSetName='Logs by date', HelpMessage='End time of logs to be retrieved. Start time and end time must both be specified (or both omitted) and must be less than or equal to 24 hours apart.')] + [datetime] + ${EndTime}) + } function Get-PnPUnifiedGroup { @@ -65875,7 +67759,8 @@ param( [string[]] ${Principals}, - [Parameter(Mandatory=$true, HelpMessage='Provide Join to give permissions to associate a site with this Hub Site or use None to revoke the permissions for the user(s) specified with the Principals argument')] + [Parameter(HelpMessage='Provide Join to give permissions to associate a site with this Hub Site or use None to revoke the permissions for the user(s) specified with the Principals argument')] + [Obsolete('Use Revoke-PnPHubSiteRights to revoke rights and Grant-PnPHubSiteRights without the -Rights parameter to grant rights')] [Microsoft.Online.SharePoint.TenantAdministration.SPOHubSiteUserRights] ${Rights}, @@ -67037,6 +68922,31 @@ param( [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] ${Connection}) +} +function New-PnPTermLabel +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, Position=0, ValueFromPipeline=$true, HelpMessage='The term to add the localized label to')] + [SharePointPnP.PowerShell.Commands.Base.PipeBinds.TaxonomyItemPipeBind[Microsoft.SharePoint.Client.Taxonomy.Term]] + ${Term}, + + [Parameter(Mandatory=$true, HelpMessage='The localized name of the term')] + [string] + ${Name}, + + [Parameter(Mandatory=$true, HelpMessage='The locale id to use for the localized term')] + [int] + ${Lcid}, + + [Parameter(HelpMessage='Makes this new label the default label')] + [switch] + ${IsDefault}, + + [Parameter(HelpMessage='Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.')] + [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] + ${Connection}) + } function New-PnPTermSet { @@ -68640,6 +70550,24 @@ param( [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] ${Connection}) +} +function Revoke-PnPHubSiteRights +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, Position=0, ValueFromPipeline=$true, HelpMessage='The Hub Site to revoke the permissions on to associate another site with this Hub Site')] + [Alias('HubSite')] + [SharePointPnP.PowerShell.Commands.Base.PipeBinds.HubSitePipeBind] + ${Identity}, + + [Parameter(Mandatory=$true, HelpMessage='One or more usernames that will be revoked the permission to associate a site with this Hub Site.')] + [string[]] + ${Principals}, + + [Parameter(HelpMessage='Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.')] + [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] + ${Connection}) + } function Revoke-PnPSiteDesignRights { @@ -69970,10 +71898,14 @@ function Set-PnPRequestAccessEmails { [CmdletBinding()] param( - [Parameter(Mandatory=$true, HelpMessage='Email address(es) to set the RequestAccessEmails to')] + [Parameter(HelpMessage='Email address to send the access requests to')] [string[]] ${Emails}, + [Parameter(HelpMessage='Enables or disables access to be requested')] + [switch] + ${Disabled}, + [Parameter(HelpMessage='This parameter allows you to optionally apply the cmdlet action to a subweb within the current web. In most situations this parameter is not required and you can connect to the subweb using Connect-PnPOnline instead. Specify the GUID, server relative url (i.e. /sites/team1) or web instance of the web to apply the command to. Omit this parameter to use the current web.')] [SharePointPnP.PowerShell.Commands.Base.PipeBinds.WebPipeBind] ${Web}, @@ -70056,7 +71988,7 @@ param( [System.Nullable[switch]] ${DisableFlows}, - [Parameter(ParameterSetName='Set Properties', HelpMessage='Sets the logo if the site is modern team site. If you want to set the logo for a classic site, use Set-PnPWeb -SiteLogoUrl')] + [Parameter(ParameterSetName='Set Properties', HelpMessage='Sets the logo of the site if it concerns a modern team site. Provide a full path to a local image file on your disk which you want to use as the site logo. The logo will be uploaded automatically to SharePoint. If you want to set the logo for a classic site, use Set-PnPWeb -SiteLogoUrl.')] [string] ${LogoFilePath}, @@ -70739,6 +72671,19 @@ Accepts a value of true (enabled) to hide the Download button or false (disabled [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] ${Connection}) +} +function Set-PnPTenantAppCatalogUrl +{ + [CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory=$true, HelpMessage='The url of the site to set as the tenant scoped app catalog')] + [string] + ${Url}, + + [Parameter(HelpMessage='Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.')] + [SharePointPnP.PowerShell.Commands.Base.SPOnlineConnection] + ${Connection}) + } function Set-PnPTenantCdnEnabled { @@ -71047,6 +72992,10 @@ param( [string[]] ${Fields}, + [Parameter(HelpMessage='A valid XML fragment containing one or more Aggregations')] + [string] + ${Aggregations}, + [Parameter(HelpMessage='This parameter allows you to optionally apply the cmdlet action to a subweb within the current web. In most situations this parameter is not required and you can connect to the subweb using Connect-PnPOnline instead. Specify the GUID, server relative url (i.e. /sites/team1) or web instance of the web to apply the command to. Omit this parameter to use the current web.')] [SharePointPnP.PowerShell.Commands.Base.PipeBinds.WebPipeBind] ${Web}, @@ -71694,7 +73643,23 @@ param( [Parameter(Position=3)] [securestring] - ${Password}) + ${Password}, + + [Parameter(Position=4)] + [string] + ${TenantID}, + + [Parameter(Position=5)] + [string] + ${CertificateThumbprint}, + + [Parameter(Position=6)] + [string] + ${ClientSecret}, + + [Parameter(Position=7)] + [string] + ${ApplicationId}) } function Clear-AdminPowerAppApisToBypassConsent @@ -71784,6 +73749,19 @@ param( [string] ${ApiVersion}) +} +function Get-AdminDeletedPowerAppsList +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, Position=0, ValueFromPipelineByPropertyName=$true)] + [string] + ${EnvironmentName}, + + [Parameter(Position=1)] + [string] + ${ApiVersion}) + } function Get-AdminDlpPolicy { @@ -72150,6 +74128,19 @@ param( [string] ${ApiVersion}) +} +function Get-AdminPowerAppLicenses +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, Position=0)] + [string] + ${OutputFilePath}, + + [Parameter(Position=1)] + [string] + ${ApiVersion}) + } function Get-AdminPowerAppRoleAssignment { @@ -72207,6 +74198,23 @@ param( [string] ${ApiVersion}) +} +function Get-AdminRecoverDeletedPowerApp +{ + [CmdletBinding()] +param( + [Parameter(Mandatory=$true, Position=0, ValueFromPipelineByPropertyName=$true)] + [string] + ${AppName}, + + [Parameter(Mandatory=$true, Position=1, ValueFromPipelineByPropertyName=$true)] + [string] + ${EnvironmentName}, + + [Parameter(Position=2)] + [string] + ${ApiVersion}) + } function Get-AllowedConsentPlans { @@ -72216,6 +74224,12 @@ param( [string] ${ApiVersion}) +} +function Get-DlpPolicy +{ + +param() + } function Get-JwtToken { @@ -72415,6 +74429,12 @@ param( [string] ${ApiVersion}) +} +function New-DlpPolicy +{ + +param() + } function Recover-AdminPowerAppEnvironment { @@ -72727,6 +74747,12 @@ param( [string] ${ApiVersion}) +} +function Remove-DlpPolicy +{ + +param() + } function Remove-LegacyCDSDatabase { @@ -73106,6 +75132,12 @@ param( [string] ${ApiVersion}) +} +function Set-DlpPolicy +{ + +param() + } function Set-TenantSettings { @@ -74496,152 +76528,14 @@ param( ${Debug}, [System.Object] - ${Case}, - - [switch] - ${Purge}, - - [Alias('ob')] - [System.Object] - ${OutBuffer}, - - [Alias('ev')] - [System.Object] - ${ErrorVariable}, - - [System.Object] - ${Identity}, - - [switch] - ${IncludeCredential}, - - [switch] - ${Details}, - - [Alias('wa')] - [System.Object] - ${WarningAction}, - - [switch] - ${Export}, - - [switch] - ${Preview}, - - [System.Object] - ${ResultSize}, - - [Alias('iv')] - [System.Object] - ${InformationVariable}, - - [switch] - ${AsJob}) - -} -function Get-ComplianceSecurityFilter -{ - -param( - [Alias('ea')] - [System.Object] - ${ErrorAction}, - - [System.Object] - ${Action}, - - [Alias('vb')] - [switch] - ${Verbose}, - - [Alias('ov')] - [System.Object] - ${OutVariable}, - - [Alias('infa')] - [System.Object] - ${InformationAction}, - - [Alias('wv')] - [System.Object] - ${WarningVariable}, - - [Alias('db')] - [switch] - ${Debug}, - - [Alias('pv')] - [System.Object] - ${PipelineVariable}, - - [Alias('cf')] - [switch] - ${Confirm}, - - [System.Object] - ${User}, - - [Alias('ev')] - [System.Object] - ${ErrorVariable}, - - [Alias('ob')] - [System.Object] - ${OutBuffer}, - - [Alias('wa')] - [System.Object] - ${WarningAction}, - - [System.Object] - ${FilterName}, - - [Alias('wi')] - [switch] - ${WhatIf}, - - [Alias('iv')] - [System.Object] - ${InformationVariable}, - - [switch] - ${AsJob}) - -} -function Get-ComplianceTag -{ - -param( - [Alias('ea')] - [System.Object] - ${ErrorAction}, - - [Alias('vb')] - [switch] - ${Verbose}, - - [Alias('ov')] - [System.Object] - ${OutVariable}, - - [Alias('infa')] - [System.Object] - ${InformationAction}, - - [Alias('wv')] - [System.Object] - ${WarningVariable}, - - [Alias('db')] - [switch] - ${Debug}, - - [Alias('pv')] - [System.Object] - ${PipelineVariable}, + ${Case}, [switch] - ${IncludingLabelState}, + ${Purge}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, [Alias('ev')] [System.Object] @@ -74650,6 +76544,79 @@ param( [System.Object] ${Identity}, + [switch] + ${IncludeCredential}, + + [switch] + ${Details}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [switch] + ${Export}, + + [switch] + ${Preview}, + + [System.Object] + ${ResultSize}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Get-ComplianceSecurityFilter +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [System.Object] + ${Action}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [System.Object] + ${User}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + [Alias('ob')] [System.Object] ${OutBuffer}, @@ -74658,6 +76625,13 @@ param( [System.Object] ${WarningAction}, + [System.Object] + ${FilterName}, + + [Alias('wi')] + [switch] + ${WhatIf}, + [Alias('iv')] [System.Object] ${InformationVariable}, @@ -74666,7 +76640,7 @@ param( ${AsJob}) } -function Get-ComplianceTagStorage +function Get-ComplianceTag { param( @@ -74698,6 +76672,9 @@ param( [System.Object] ${PipelineVariable}, + [switch] + ${IncludingLabelState}, + [Alias('ev')] [System.Object] ${ErrorVariable}, @@ -74713,13 +76690,65 @@ param( [System.Object] ${WarningAction}, + [Alias('iv')] [System.Object] - ${Organization}, + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Get-ComplianceTagStorage +{ + +param( + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, [Alias('iv')] [System.Object] ${InformationVariable}, + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [System.Object] + ${Identity}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + [switch] ${AsJob}) @@ -75821,6 +77850,61 @@ param( [switch] ${AsJob}) +} +function Get-DlpEdmSchema +{ + +param( + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [System.Object] + ${Identity}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [switch] + ${AsJob}) + } function Get-DlpKeywordDictionary { @@ -76210,7 +78294,62 @@ param( ${AsJob}) } -function Get-FilePlanPropertyCategory +function Get-FilePlanPropertyCategory +{ + +param( + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [System.Object] + ${Identity}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [switch] + ${AsJob}) + +} +function Get-FilePlanPropertyCitation { param( @@ -76265,7 +78404,7 @@ param( ${AsJob}) } -function Get-FilePlanPropertyCitation +function Get-FilePlanPropertyDepartment { param( @@ -76320,7 +78459,7 @@ param( ${AsJob}) } -function Get-FilePlanPropertyDepartment +function Get-FilePlanPropertyReferenceId { param( @@ -76375,7 +78514,7 @@ param( ${AsJob}) } -function Get-FilePlanPropertyReferenceId +function Get-FilePlanPropertyStructure { param( @@ -76407,8 +78546,8 @@ param( [System.Object] ${OutVariable}, - [System.Object] - ${Identity}, + [switch] + ${IncludeAdditionalInfo}, [Alias('ev')] [System.Object] @@ -76430,7 +78569,7 @@ param( ${AsJob}) } -function Get-FilePlanPropertyStructure +function Get-FilePlanPropertySubCategory { param( @@ -76462,8 +78601,8 @@ param( [System.Object] ${OutVariable}, - [switch] - ${IncludeAdditionalInfo}, + [System.Object] + ${Identity}, [Alias('ev')] [System.Object] @@ -76485,62 +78624,129 @@ param( ${AsJob}) } -function Get-FilePlanPropertySubCategory +function Get-Group { param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [System.Object] + ${SortBy}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + [Alias('wv')] [System.Object] ${WarningVariable}, + [Alias('db')] + [switch] + ${Debug}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + [Alias('ob')] [System.Object] ${OutBuffer}, + [System.Object] + ${RecipientTypeDetails}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [System.Object] + ${ResultSize}, + [Alias('iv')] [System.Object] ${InformationVariable}, + [switch] + ${AsJob}) + +} +function Get-HoldCompliancePolicy +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + [Alias('vb')] [switch] ${Verbose}, + [Alias('ov')] + [System.Object] + ${OutVariable}, + [Alias('infa')] [System.Object] ${InformationAction}, + [Alias('wv')] + [System.Object] + ${WarningVariable}, + [Alias('db')] [switch] ${Debug}, - [Alias('ov')] - [System.Object] - ${OutVariable}, - + [Alias('pv')] [System.Object] - ${Identity}, + ${PipelineVariable}, [Alias('ev')] [System.Object] ${ErrorVariable}, - [Alias('pv')] [System.Object] - ${PipelineVariable}, + ${Identity}, - [Alias('ea')] + [Alias('ob')] [System.Object] - ${ErrorAction}, + ${OutBuffer}, [Alias('wa')] [System.Object] ${WarningAction}, + [switch] + ${DistributionDetail}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + [switch] ${AsJob}) } -function Get-Group +function Get-HoldComplianceRule { param( @@ -76552,9 +78758,6 @@ param( [switch] ${Verbose}, - [System.Object] - ${SortBy}, - [Alias('ov')] [System.Object] ${OutVariable}, @@ -76586,15 +78789,12 @@ param( [System.Object] ${OutBuffer}, - [System.Object] - ${RecipientTypeDetails}, - [Alias('wa')] [System.Object] ${WarningAction}, [System.Object] - ${ResultSize}, + ${Policy}, [Alias('iv')] [System.Object] @@ -76604,7 +78804,7 @@ param( ${AsJob}) } -function Get-HoldCompliancePolicy +function Get-InformationBarrierPoliciesApplicationStatus { param( @@ -76647,13 +78847,13 @@ param( [System.Object] ${OutBuffer}, + [switch] + ${All}, + [Alias('wa')] [System.Object] ${WarningAction}, - [switch] - ${DistributionDetail}, - [Alias('iv')] [System.Object] ${InformationVariable}, @@ -76662,7 +78862,7 @@ param( ${AsJob}) } -function Get-HoldComplianceRule +function Get-InformationBarrierPolicy { param( @@ -76670,6 +78870,10 @@ param( [System.Object] ${ErrorAction}, + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + [Alias('vb')] [switch] ${Verbose}, @@ -76690,6 +78894,59 @@ param( [switch] ${Debug}, + [System.Object] + ${ExoPolicyId}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Get-InformationBarrierRecipientStatus +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [System.Object] + ${Identity2}, + + [Alias('db')] + [switch] + ${Debug}, + [Alias('pv')] [System.Object] ${PipelineVariable}, @@ -76709,8 +78966,9 @@ param( [System.Object] ${WarningAction}, + [Alias('wv')] [System.Object] - ${Policy}, + ${WarningVariable}, [Alias('iv')] [System.Object] @@ -76805,7 +79063,92 @@ param( ${AsJob}) } -function Get-InformationBarrierReportSummary +function Get-InformationBarrierReportSummary +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [System.Object] + ${Action}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [System.Object] + ${Source}, + + [System.Object] + ${Page}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('db')] + [switch] + ${Debug}, + + [System.Object] + ${EndDate}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [System.Object] + ${PageSize}, + + [System.Object] + ${AggregateBy}, + + [System.Object] + ${TargetUsers}, + + [System.Object] + ${InformationBarrierPolicy}, + + [System.Object] + ${EventType}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [System.Object] + ${InitiatingUser}, + + [System.Object] + ${StartDate}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Get-InsiderRiskPolicy { param( @@ -76813,22 +79156,13 @@ param( [System.Object] ${ErrorAction}, - [System.Object] - ${Action}, - [Alias('vb')] [switch] ${Verbose}, + [Alias('ov')] [System.Object] - ${Source}, - - [System.Object] - ${Page}, - - [Alias('ob')] - [System.Object] - ${OutBuffer}, + ${OutVariable}, [Alias('infa')] [System.Object] @@ -76842,45 +79176,27 @@ param( [switch] ${Debug}, - [System.Object] - ${EndDate}, - [Alias('pv')] [System.Object] ${PipelineVariable}, - [System.Object] - ${PageSize}, - - [System.Object] - ${AggregateBy}, - - [System.Object] - ${TargetUsers}, - - [System.Object] - ${InformationBarrierPolicy}, - - [System.Object] - ${EventType}, - [Alias('ev')] [System.Object] ${ErrorVariable}, - [Alias('wa')] [System.Object] - ${WarningAction}, + ${Identity}, - [Alias('ov')] + [Alias('ob')] [System.Object] - ${OutVariable}, + ${OutBuffer}, + [Alias('wa')] [System.Object] - ${InitiatingUser}, + ${WarningAction}, - [System.Object] - ${StartDate}, + [switch] + ${DistributionDetail}, [Alias('iv')] [System.Object] @@ -77057,6 +79373,131 @@ param( [switch] ${AsJob}) +} +function Get-LongTermAuditItems +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [System.Object] + ${Workload}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('db')] + [switch] + ${Debug}, + + [System.Object] + ${EndDate}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${LtaAddress}, + + [System.Object] + ${PageOffset}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [System.Object] + ${StartDate}, + + [System.Object] + ${LabelId}, + + [switch] + ${AsJob}) + +} +function Get-LongTermAuditStats +{ + +param( + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${LtaAddress}, + + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [switch] + ${AsJob}) + } function Get-MailFilterListReport { @@ -80719,9 +83160,6 @@ param( [System.Object] ${ErrorVariable}, - [System.Object] - ${EndpointDlpLocationException}, - [Alias('infa')] [System.Object] ${InformationAction}, @@ -80747,9 +83185,8 @@ param( [System.Object] ${ErrorAction}, - [Alias('vb')] - [switch] - ${Verbose}, + [System.Object] + ${SharePointLocationException}, [System.Object] ${ExchangeLocation}, @@ -80763,13 +83200,14 @@ param( [System.Object] ${TeamsLocationException}, - [System.Object] - ${EndpointDlpLocation}, - [Alias('ov')] [System.Object] ${OutVariable}, + [Alias('vb')] + [switch] + ${Verbose}, + [Alias('cf')] [switch] ${Confirm}, @@ -80777,10 +83215,6 @@ param( [System.Object] ${OneDriveLocation}, - [Alias('iv')] - [System.Object] - ${InformationVariable}, - [System.Object] ${ExchangeSenderMemberOf}, @@ -80802,8 +83236,9 @@ param( [System.Object] ${OutBuffer}, + [Alias('iv')] [System.Object] - ${SharePointLocationException}, + ${InformationVariable}, [System.Object] ${TeamsLocation}, @@ -80826,6 +83261,9 @@ param( [System.Object] ${ExceptIfRecipientDomainIs}, + [System.Object] + ${ExceptIfContentContainsSensitiveInformation}, + [System.Object] ${ExceptIfDocumentNameMatchesWords}, @@ -80886,10 +83324,6 @@ param( [System.Object] ${ContentExtensionMatchesWords}, - [Alias('iv')] - [System.Object] - ${InformationVariable}, - [Alias('ov')] [System.Object] ${OutVariable}, @@ -80903,8 +83337,9 @@ param( [System.Object] ${AnyOfRecipientAddressContainsWords}, - [System.Object] - ${ExceptIfContentContainsSensitiveInformation}, + [Alias('db')] + [switch] + ${Debug}, [System.Object] ${ExceptIfFromAddressMatchesPatterns}, @@ -80933,9 +83368,9 @@ param( [System.Object] ${AccessScope}, - [Alias('db')] - [switch] - ${Debug}, + [Alias('iv')] + [System.Object] + ${InformationVariable}, [System.Object] ${RemoveHeader}, @@ -80968,9 +83403,6 @@ param( [System.Object] ${ExceptIfSentTo}, - [System.Object] - ${EndpointDlpRestrictions}, - [System.Object] ${Policy}, @@ -81060,6 +83492,69 @@ param( [switch] ${AsJob}) +} +function New-DlpEdmSchema +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [System.Object] + ${FileData}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + } function New-DlpFingerprint { @@ -81889,30 +84384,222 @@ param( ${AsJob}) } -function New-Label +function New-InformationBarrierPolicy { param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [System.Object] + ${Name}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('db')] + [switch] + ${Debug}, + + [System.Object] + ${SegmentsAllowed}, + + [System.Object] + ${AssignedSegment}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [System.Object] + ${SegmentAllowedFilter}, + [System.Object] ${Comment}, + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [System.Object] + ${State}, + + [System.Object] + ${SegmentsBlocked}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function New-InsiderRiskPolicy +{ + +param( + [System.Object] + ${HistoricTimeSpan}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [System.Object] + ${SensitivityLabels}, + + [System.Object] + ${Enabled}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [System.Object] + ${Name}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('db')] + [switch] + ${Debug}, + + [System.Object] + ${ExchangeLocation}, + + [System.Object] + ${PostTerminationActivity}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [System.Object] + ${Comment}, + + [System.Object] + ${TeamsSites}, + + [System.Object] + ${InsiderRiskScenario}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [System.Object] + ${DlpPolicy}, + + [System.Object] + ${FutureTerminationWindow}, + [Alias('pv')] [System.Object] ${PipelineVariable}, [System.Object] - ${LocaleSettings}, + ${Indicators}, + + [Alias('wi')] + [switch] + ${WhatIf}, [System.Object] - ${ParentId}, + ${SharepointSites}, [System.Object] - ${DisplayName}, + ${TenantSetting}, [Alias('ob')] [System.Object] ${OutBuffer}, + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [System.Object] + ${DlpSensitiveTypes}, + + [System.Object] + ${InScopeTimeSpan}, + + [System.Object] + ${SchemaVersion}, + + [System.Object] + ${PastTerminationWindow}, + + [switch] + ${AsJob}) + +} +function New-Label +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [System.Object] + ${LocaleSettings}, + + [System.Object] + ${ParentId}, + + [System.Object] + ${DisplayName}, + [Alias('vb')] [switch] ${Verbose}, @@ -81924,6 +84611,10 @@ param( [System.Object] ${WarningVariable}, + [Alias('cf')] + [switch] + ${Confirm}, + [Alias('db')] [switch] ${Debug}, @@ -81942,19 +84633,19 @@ param( [System.Object] ${LabelActions}, - [Alias('ev')] + [Alias('ob')] [System.Object] - ${ErrorVariable}, + ${OutBuffer}, [System.Object] - ${Tooltip}, + ${Comment}, [System.Object] ${Identity}, - [Alias('ea')] + [Alias('ev')] [System.Object] - ${ErrorAction}, + ${ErrorVariable}, [Alias('wa')] [System.Object] @@ -81966,9 +84657,11 @@ param( [System.Object] ${Settings}, - [Alias('cf')] - [switch] - ${Confirm}, + [System.Object] + ${Tooltip}, + + [System.Object] + ${Conditions}, [System.Object] ${MigrationId}, @@ -82204,6 +84897,9 @@ param( [System.Object] ${ErrorVariable}, + [System.Object] + ${NotificationCulture}, + [Alias('infa')] [System.Object] ${InformationAction}, @@ -82254,7 +84950,7 @@ param( ${InformationVariable}, [System.Object] - ${Disabled}, + ${LogicalOperationName}, [System.Object] ${NotifyUserSuppressionExpiryDate}, @@ -82273,7 +84969,7 @@ param( ${ThreatType}, [System.Object] - ${NotificationCulture}, + ${Disabled}, [Alias('pv')] [System.Object] @@ -82425,6 +85121,10 @@ param( [System.Object] ${RetentionDuration}, + [Alias('iv')] + [System.Object] + ${InformationVariable}, + [Alias('vb')] [switch] ${Verbose}, @@ -82478,9 +85178,8 @@ param( [switch] ${WhatIf}, - [Alias('wv')] [System.Object] - ${WarningVariable}, + ${MachineLearningModelIDs}, [Alias('ev')] [System.Object] @@ -82502,9 +85201,9 @@ param( [System.Object] ${RetentionDurationDisplayHint}, - [Alias('iv')] + [Alias('wv')] [System.Object] - ${InformationVariable}, + ${WarningVariable}, [switch] ${AsJob}) @@ -83189,7 +85888,205 @@ param( ${AsJob}) } -function Remove-AuditConfigurationPolicy +function Remove-AuditConfigurationPolicy +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [System.Object] + ${DomainController}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Remove-AuditConfigurationRule +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [System.Object] + ${DomainController}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Remove-CaseHoldPolicy +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [switch] + ${ForceDeletion}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Remove-CaseHoldRule { param( @@ -83240,8 +86137,8 @@ param( [System.Object] ${WarningAction}, - [System.Object] - ${DomainController}, + [switch] + ${ForceDeletion}, [Alias('wi')] [switch] @@ -83255,7 +86152,7 @@ param( ${AsJob}) } -function Remove-AuditConfigurationRule +function Remove-ComplianceCase { param( @@ -83321,7 +86218,7 @@ param( ${AsJob}) } -function Remove-CaseHoldPolicy +function Remove-ComplianceCaseMember { param( @@ -83349,6 +86246,9 @@ param( [switch] ${Debug}, + [System.Object] + ${Case}, + [Alias('pv')] [System.Object] ${PipelineVariable}, @@ -83361,9 +86261,6 @@ param( [System.Object] ${ErrorVariable}, - [System.Object] - ${Identity}, - [Alias('ob')] [System.Object] ${OutBuffer}, @@ -83372,8 +86269,8 @@ param( [System.Object] ${WarningAction}, - [switch] - ${ForceDeletion}, + [System.Object] + ${Member}, [Alias('wi')] [switch] @@ -83387,7 +86284,7 @@ param( ${AsJob}) } -function Remove-CaseHoldRule +function Remove-ComplianceRetentionEvent { param( @@ -83430,6 +86327,9 @@ param( [System.Object] ${Identity}, + [switch] + ${PreviewOnly}, + [Alias('ob')] [System.Object] ${OutBuffer}, @@ -83453,7 +86353,7 @@ param( ${AsJob}) } -function Remove-ComplianceCase +function Remove-ComplianceRetentionEventType { param( @@ -83504,8 +86404,8 @@ param( [System.Object] ${WarningAction}, - [System.Object] - ${DomainController}, + [switch] + ${ForceDeletion}, [Alias('wi')] [switch] @@ -83519,7 +86419,7 @@ param( ${AsJob}) } -function Remove-ComplianceCaseMember +function Remove-ComplianceSearch { param( @@ -83527,9 +86427,9 @@ param( [System.Object] ${ErrorAction}, - [Alias('vb')] - [switch] - ${Verbose}, + [Alias('pv')] + [System.Object] + ${PipelineVariable}, [Alias('ov')] [System.Object] @@ -83543,17 +86443,14 @@ param( [System.Object] ${WarningVariable}, + [Alias('vb')] + [switch] + ${Verbose}, + [Alias('db')] [switch] ${Debug}, - [System.Object] - ${Case}, - - [Alias('pv')] - [System.Object] - ${PipelineVariable}, - [Alias('cf')] [switch] ${Confirm}, @@ -83562,6 +86459,9 @@ param( [System.Object] ${ErrorVariable}, + [System.Object] + ${Identity}, + [Alias('ob')] [System.Object] ${OutBuffer}, @@ -83570,9 +86470,6 @@ param( [System.Object] ${WarningAction}, - [System.Object] - ${Member}, - [Alias('wi')] [switch] ${WhatIf}, @@ -83585,7 +86482,7 @@ param( ${AsJob}) } -function Remove-ComplianceRetentionEvent +function Remove-ComplianceSearchAction { param( @@ -83593,9 +86490,9 @@ param( [System.Object] ${ErrorAction}, - [Alias('vb')] - [switch] - ${Verbose}, + [Alias('pv')] + [System.Object] + ${PipelineVariable}, [Alias('ov')] [System.Object] @@ -83609,14 +86506,14 @@ param( [System.Object] ${WarningVariable}, + [Alias('vb')] + [switch] + ${Verbose}, + [Alias('db')] [switch] ${Debug}, - [Alias('pv')] - [System.Object] - ${PipelineVariable}, - [Alias('cf')] [switch] ${Confirm}, @@ -83628,9 +86525,6 @@ param( [System.Object] ${Identity}, - [switch] - ${PreviewOnly}, - [Alias('ob')] [System.Object] ${OutBuffer}, @@ -83639,9 +86533,6 @@ param( [System.Object] ${WarningAction}, - [switch] - ${ForceDeletion}, - [Alias('wi')] [switch] ${WhatIf}, @@ -83654,7 +86545,7 @@ param( ${AsJob}) } -function Remove-ComplianceRetentionEventType +function Remove-ComplianceSecurityFilter { param( @@ -83662,9 +86553,9 @@ param( [System.Object] ${ErrorAction}, - [Alias('vb')] - [switch] - ${Verbose}, + [Alias('pv')] + [System.Object] + ${PipelineVariable}, [Alias('ov')] [System.Object] @@ -83678,14 +86569,14 @@ param( [System.Object] ${WarningVariable}, + [Alias('vb')] + [switch] + ${Verbose}, + [Alias('db')] [switch] ${Debug}, - [Alias('pv')] - [System.Object] - ${PipelineVariable}, - [Alias('cf')] [switch] ${Confirm}, @@ -83694,9 +86585,6 @@ param( [System.Object] ${ErrorVariable}, - [System.Object] - ${Identity}, - [Alias('ob')] [System.Object] ${OutBuffer}, @@ -83705,8 +86593,8 @@ param( [System.Object] ${WarningAction}, - [switch] - ${ForceDeletion}, + [System.Object] + ${FilterName}, [Alias('wi')] [switch] @@ -83720,7 +86608,7 @@ param( ${AsJob}) } -function Remove-ComplianceSearch +function Remove-ComplianceTag { param( @@ -83728,9 +86616,9 @@ param( [System.Object] ${ErrorAction}, - [Alias('pv')] - [System.Object] - ${PipelineVariable}, + [Alias('vb')] + [switch] + ${Verbose}, [Alias('ov')] [System.Object] @@ -83744,14 +86632,14 @@ param( [System.Object] ${WarningVariable}, - [Alias('vb')] - [switch] - ${Verbose}, - [Alias('db')] [switch] ${Debug}, + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + [Alias('cf')] [switch] ${Confirm}, @@ -83771,6 +86659,9 @@ param( [System.Object] ${WarningAction}, + [switch] + ${ForceDeletion}, + [Alias('wi')] [switch] ${WhatIf}, @@ -83783,7 +86674,7 @@ param( ${AsJob}) } -function Remove-ComplianceSearchAction +function Remove-DeviceConditionalAccessPolicy { param( @@ -83846,7 +86737,7 @@ param( ${AsJob}) } -function Remove-ComplianceSecurityFilter +function Remove-DeviceConditionalAccessRule { param( @@ -83886,6 +86777,9 @@ param( [System.Object] ${ErrorVariable}, + [System.Object] + ${Identity}, + [Alias('ob')] [System.Object] ${OutBuffer}, @@ -83894,9 +86788,6 @@ param( [System.Object] ${WarningAction}, - [System.Object] - ${FilterName}, - [Alias('wi')] [switch] ${WhatIf}, @@ -83909,7 +86800,7 @@ param( ${AsJob}) } -function Remove-ComplianceTag +function Remove-DeviceConfigurationPolicy { param( @@ -83917,9 +86808,9 @@ param( [System.Object] ${ErrorAction}, - [Alias('vb')] - [switch] - ${Verbose}, + [Alias('pv')] + [System.Object] + ${PipelineVariable}, [Alias('ov')] [System.Object] @@ -83933,14 +86824,14 @@ param( [System.Object] ${WarningVariable}, + [Alias('vb')] + [switch] + ${Verbose}, + [Alias('db')] [switch] ${Debug}, - [Alias('pv')] - [System.Object] - ${PipelineVariable}, - [Alias('cf')] [switch] ${Confirm}, @@ -83960,9 +86851,6 @@ param( [System.Object] ${WarningAction}, - [switch] - ${ForceDeletion}, - [Alias('wi')] [switch] ${WhatIf}, @@ -83975,7 +86863,7 @@ param( ${AsJob}) } -function Remove-DeviceConditionalAccessPolicy +function Remove-DeviceConfigurationRule { param( @@ -84038,7 +86926,7 @@ param( ${AsJob}) } -function Remove-DeviceConditionalAccessRule +function Remove-DeviceTenantPolicy { param( @@ -84101,7 +86989,7 @@ param( ${AsJob}) } -function Remove-DeviceConfigurationPolicy +function Remove-DeviceTenantRule { param( @@ -84164,7 +87052,7 @@ param( ${AsJob}) } -function Remove-DeviceConfigurationRule +function Remove-DlpCompliancePolicy { param( @@ -84227,7 +87115,7 @@ param( ${AsJob}) } -function Remove-DeviceTenantPolicy +function Remove-DlpComplianceRule { param( @@ -84290,7 +87178,7 @@ param( ${AsJob}) } -function Remove-DeviceTenantRule +function Remove-DlpEdmSchema { param( @@ -84353,7 +87241,7 @@ param( ${AsJob}) } -function Remove-DlpCompliancePolicy +function Remove-DlpKeywordDictionary { param( @@ -84416,7 +87304,7 @@ param( ${AsJob}) } -function Remove-DlpComplianceRule +function Remove-DlpSensitiveInformationType { param( @@ -84479,7 +87367,7 @@ param( ${AsJob}) } -function Remove-DlpKeywordDictionary +function Remove-DlpSensitiveInformationTypeRulePackage { param( @@ -84542,7 +87430,7 @@ param( ${AsJob}) } -function Remove-DlpSensitiveInformationType +function Remove-eDiscoveryCaseAdmin { param( @@ -84578,12 +87466,12 @@ param( [switch] ${Confirm}, - [Alias('ev')] [System.Object] - ${ErrorVariable}, + ${User}, + [Alias('ev')] [System.Object] - ${Identity}, + ${ErrorVariable}, [Alias('ob')] [System.Object] @@ -84605,7 +87493,7 @@ param( ${AsJob}) } -function Remove-DlpSensitiveInformationTypeRulePackage +function Remove-FilePlanPropertyAuthority { param( @@ -84613,9 +87501,9 @@ param( [System.Object] ${ErrorAction}, - [Alias('pv')] - [System.Object] - ${PipelineVariable}, + [Alias('vb')] + [switch] + ${Verbose}, [Alias('ov')] [System.Object] @@ -84629,14 +87517,14 @@ param( [System.Object] ${WarningVariable}, - [Alias('vb')] - [switch] - ${Verbose}, - [Alias('db')] [switch] ${Debug}, + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + [Alias('cf')] [switch] ${Confirm}, @@ -84656,6 +87544,9 @@ param( [System.Object] ${WarningAction}, + [switch] + ${ForceDeletion}, + [Alias('wi')] [switch] ${WhatIf}, @@ -84668,7 +87559,7 @@ param( ${AsJob}) } -function Remove-eDiscoveryCaseAdmin +function Remove-FilePlanPropertyCategory { param( @@ -84676,9 +87567,9 @@ param( [System.Object] ${ErrorAction}, - [Alias('pv')] - [System.Object] - ${PipelineVariable}, + [Alias('vb')] + [switch] + ${Verbose}, [Alias('ov')] [System.Object] @@ -84692,25 +87583,25 @@ param( [System.Object] ${WarningVariable}, - [Alias('vb')] - [switch] - ${Verbose}, - [Alias('db')] [switch] ${Debug}, + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + [Alias('cf')] [switch] ${Confirm}, - [System.Object] - ${User}, - [Alias('ev')] [System.Object] ${ErrorVariable}, + [System.Object] + ${Identity}, + [Alias('ob')] [System.Object] ${OutBuffer}, @@ -84719,6 +87610,9 @@ param( [System.Object] ${WarningAction}, + [switch] + ${ForceDeletion}, + [Alias('wi')] [switch] ${WhatIf}, @@ -84731,7 +87625,7 @@ param( ${AsJob}) } -function Remove-FilePlanPropertyAuthority +function Remove-FilePlanPropertyCitation { param( @@ -84797,7 +87691,7 @@ param( ${AsJob}) } -function Remove-FilePlanPropertyCategory +function Remove-FilePlanPropertyDepartment { param( @@ -84863,7 +87757,7 @@ param( ${AsJob}) } -function Remove-FilePlanPropertyCitation +function Remove-FilePlanPropertyReferenceId { param( @@ -84929,7 +87823,7 @@ param( ${AsJob}) } -function Remove-FilePlanPropertyDepartment +function Remove-FilePlanPropertySubCategory { param( @@ -84995,7 +87889,7 @@ param( ${AsJob}) } -function Remove-FilePlanPropertyReferenceId +function Remove-HoldCompliancePolicy { param( @@ -85061,7 +87955,7 @@ param( ${AsJob}) } -function Remove-FilePlanPropertySubCategory +function Remove-HoldComplianceRule { param( @@ -85127,7 +88021,7 @@ param( ${AsJob}) } -function Remove-HoldCompliancePolicy +function Remove-InformationBarrierPolicy { param( @@ -85135,9 +88029,9 @@ param( [System.Object] ${ErrorAction}, - [Alias('vb')] - [switch] - ${Verbose}, + [Alias('pv')] + [System.Object] + ${PipelineVariable}, [Alias('ov')] [System.Object] @@ -85151,14 +88045,14 @@ param( [System.Object] ${WarningVariable}, + [Alias('vb')] + [switch] + ${Verbose}, + [Alias('db')] [switch] ${Debug}, - [Alias('pv')] - [System.Object] - ${PipelineVariable}, - [Alias('cf')] [switch] ${Confirm}, @@ -85178,9 +88072,6 @@ param( [System.Object] ${WarningAction}, - [switch] - ${ForceDeletion}, - [Alias('wi')] [switch] ${WhatIf}, @@ -85193,7 +88084,7 @@ param( ${AsJob}) } -function Remove-HoldComplianceRule +function Remove-InsiderRiskPolicy { param( @@ -87931,9 +90822,6 @@ param( [System.Object] ${Identity}, - [System.Object] - ${RemoveEndpointDlpLocation}, - [System.Object] ${RemoveOneDriveLocationException}, @@ -87983,9 +90871,6 @@ param( [switch] ${RetryDistribution}, - [System.Object] - ${AddEndpointDlpLocation}, - [Alias('infa')] [System.Object] ${InformationAction}, @@ -88000,9 +90885,6 @@ param( [System.Object] ${AddTeamsLocationException}, - [System.Object] - ${AddEndpointDlpLocationException}, - [Alias('cf')] [switch] ${Confirm}, @@ -88051,9 +90933,6 @@ param( [System.Object] ${Mode}, - [System.Object] - ${RemoveEndpointDlpLocationException}, - [switch] ${AsJob}) @@ -88267,9 +91146,6 @@ param( [System.Object] ${ExceptIfContentExtensionMatchesWords}, - [System.Object] - ${EndpointDlpRestrictions}, - [System.Object] ${FromAddressContainsWords}, @@ -88300,6 +91176,69 @@ param( [switch] ${AsJob}) +} +function Set-DlpEdmSchema +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [System.Object] + ${FileData}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + } function Set-DlpKeywordDictionary { @@ -88709,7 +91648,211 @@ param( ${AsJob}) } -function Set-FilePlanPropertyCitation +function Set-FilePlanPropertyCitation +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [System.Object] + ${DisplayName}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [System.Object] + ${CitationUrl}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + + [System.Object] + ${CitationJurisdiction}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Set-FilePlanPropertyDepartment +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [System.Object] + ${DisplayName}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Set-FilePlanPropertyReferenceId +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [System.Object] + ${DisplayName}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Set-FilePlanPropertySubCategory { param( @@ -88732,9 +91875,6 @@ param( [System.Object] ${WarningVariable}, - [System.Object] - ${CitationUrl}, - [Alias('db')] [switch] ${Debug}, @@ -88747,10 +91887,6 @@ param( [switch] ${Confirm}, - [Alias('ob')] - [System.Object] - ${OutBuffer}, - [Alias('ev')] [System.Object] ${ErrorVariable}, @@ -88758,8 +91894,9 @@ param( [System.Object] ${Identity}, + [Alias('ob')] [System.Object] - ${CitationJurisdiction}, + ${OutBuffer}, [Alias('wa')] [System.Object] @@ -88781,7 +91918,7 @@ param( ${AsJob}) } -function Set-FilePlanPropertyDepartment +function Set-HoldCompliancePolicy { param( @@ -88789,17 +91926,28 @@ param( [System.Object] ${ErrorAction}, + [System.Object] + ${RemoveExchangeLocation}, + [Alias('vb')] [switch] ${Verbose}, + [Alias('ov')] [System.Object] - ${DisplayName}, + ${OutVariable}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, [Alias('infa')] [System.Object] ${InformationAction}, + [System.Object] + ${RemoveSharePointLocation}, + [Alias('wv')] [System.Object] ${WarningVariable}, @@ -88808,37 +91956,53 @@ param( [switch] ${Debug}, + [System.Object] + ${AddExchangeLocation}, + [Alias('pv')] [System.Object] ${PipelineVariable}, - [Alias('cf')] + [System.Object] + ${AddSharePointLocation}, + [switch] - ${Confirm}, + ${RetryDistribution}, - [Alias('ev')] [System.Object] - ${ErrorVariable}, + ${RemovePublicFolderLocation}, + + [System.Object] + ${Comment}, [System.Object] ${Identity}, - [Alias('ob')] + [Alias('ev')] [System.Object] - ${OutBuffer}, + ${ErrorVariable}, - [Alias('wa')] [System.Object] - ${WarningAction}, + ${AddPublicFolderLocation}, - [Alias('ov')] + [Alias('wa')] [System.Object] - ${OutVariable}, + ${WarningAction}, [Alias('wi')] [switch] ${WhatIf}, + [System.Object] + ${Enabled}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [switch] + ${Force}, + [Alias('iv')] [System.Object] ${InformationVariable}, @@ -88847,7 +92011,7 @@ param( ${AsJob}) } -function Set-FilePlanPropertyReferenceId +function Set-HoldComplianceRule { param( @@ -88855,16 +92019,26 @@ param( [System.Object] ${ErrorAction}, + [System.Object] + ${ContentDateFrom}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + [Alias('vb')] [switch] ${Verbose}, [System.Object] - ${DisplayName}, + ${HoldContent}, - [Alias('infa')] [System.Object] - ${InformationAction}, + ${Disabled}, [Alias('wv')] [System.Object] @@ -88878,28 +92052,36 @@ param( [System.Object] ${PipelineVariable}, + [Alias('infa')] + [System.Object] + ${InformationAction}, + [Alias('cf')] [switch] ${Confirm}, - [Alias('ev')] [System.Object] - ${ErrorVariable}, + ${Comment}, + + [System.Object] + ${ContentMatchQuery}, [System.Object] ${Identity}, - [Alias('ob')] + [Alias('ev')] [System.Object] - ${OutBuffer}, + ${ErrorVariable}, [Alias('wa')] [System.Object] ${WarningAction}, - [Alias('ov')] [System.Object] - ${OutVariable}, + ${ContentDateTo}, + + [System.Object] + ${HoldDurationDisplayHint}, [Alias('wi')] [switch] @@ -88913,7 +92095,7 @@ param( ${AsJob}) } -function Set-FilePlanPropertySubCategory +function Set-InformationBarrierPolicy { param( @@ -88921,12 +92103,17 @@ param( [System.Object] ${ErrorAction}, + [Alias('iv')] + [System.Object] + ${InformationVariable}, + [Alias('vb')] [switch] ${Verbose}, + [Alias('ov')] [System.Object] - ${DisplayName}, + ${OutVariable}, [Alias('infa')] [System.Object] @@ -88940,13 +92127,11 @@ param( [switch] ${Debug}, - [Alias('pv')] [System.Object] - ${PipelineVariable}, + ${SegmentsAllowed}, - [Alias('cf')] - [switch] - ${Confirm}, + [System.Object] + ${SegmentAllowedFilter}, [Alias('ev')] [System.Object] @@ -88959,198 +92144,139 @@ param( [System.Object] ${OutBuffer}, + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + [Alias('wa')] [System.Object] ${WarningAction}, - [Alias('ov')] [System.Object] - ${OutVariable}, + ${State}, - [Alias('wi')] - [switch] - ${WhatIf}, + [System.Object] + ${SegmentsBlocked}, - [Alias('iv')] [System.Object] - ${InformationVariable}, + ${Comment}, [switch] ${AsJob}) } -function Set-HoldCompliancePolicy +function Set-InsiderRiskPolicy { param( - [Alias('ea')] [System.Object] - ${ErrorAction}, + ${HistoricTimeSpan}, + [Alias('wa')] [System.Object] - ${RemoveExchangeLocation}, + ${WarningAction}, - [Alias('vb')] - [switch] - ${Verbose}, + [System.Object] + ${SensitivityLabels}, - [Alias('ov')] [System.Object] - ${OutVariable}, + ${Identity}, - [Alias('ob')] [System.Object] - ${OutBuffer}, + ${Enabled}, [Alias('infa')] [System.Object] ${InformationAction}, - [System.Object] - ${RemoveSharePointLocation}, - - [Alias('wv')] - [System.Object] - ${WarningVariable}, - [Alias('db')] [switch] ${Debug}, - [System.Object] - ${AddExchangeLocation}, - [Alias('pv')] [System.Object] ${PipelineVariable}, [System.Object] - ${AddSharePointLocation}, - - [switch] - ${RetryDistribution}, + ${PostTerminationActivity}, + [Alias('wv')] [System.Object] - ${RemovePublicFolderLocation}, + ${WarningVariable}, + [Alias('ea')] [System.Object] - ${Comment}, + ${ErrorAction}, - [System.Object] - ${Identity}, + [Alias('vb')] + [switch] + ${Verbose}, - [Alias('ev')] [System.Object] - ${ErrorVariable}, + ${Comment}, [System.Object] - ${AddPublicFolderLocation}, + ${TeamsSites}, - [Alias('wa')] + [Alias('ov')] [System.Object] - ${WarningAction}, + ${OutVariable}, - [Alias('wi')] - [switch] - ${WhatIf}, + [System.Object] + ${DlpPolicy}, [System.Object] - ${Enabled}, + ${FutureTerminationWindow}, [Alias('cf')] [switch] ${Confirm}, - [switch] - ${Force}, + [System.Object] + ${RemoveExchangeLocation}, [Alias('iv')] [System.Object] ${InformationVariable}, - [switch] - ${AsJob}) - -} -function Set-HoldComplianceRule -{ - -param( - [Alias('ea')] - [System.Object] - ${ErrorAction}, - - [System.Object] - ${ContentDateFrom}, - - [Alias('ov')] - [System.Object] - ${OutVariable}, - - [Alias('ob')] - [System.Object] - ${OutBuffer}, - - [Alias('vb')] - [switch] - ${Verbose}, - - [System.Object] - ${HoldContent}, - [System.Object] - ${Disabled}, + ${AddExchangeLocation}, - [Alias('wv')] [System.Object] - ${WarningVariable}, + ${Indicators}, - [Alias('db')] [switch] - ${Debug}, - - [Alias('pv')] - [System.Object] - ${PipelineVariable}, - - [Alias('infa')] - [System.Object] - ${InformationAction}, + ${RetryDistribution}, - [Alias('cf')] + [Alias('wi')] [switch] - ${Confirm}, + ${WhatIf}, [System.Object] - ${Comment}, + ${SharepointSites}, [System.Object] - ${ContentMatchQuery}, + ${TenantSetting}, + [Alias('ob')] [System.Object] - ${Identity}, + ${OutBuffer}, [Alias('ev')] [System.Object] ${ErrorVariable}, - [Alias('wa')] [System.Object] - ${WarningAction}, + ${DlpSensitiveTypes}, [System.Object] - ${ContentDateTo}, + ${InScopeTimeSpan}, [System.Object] - ${HoldDurationDisplayHint}, - - [Alias('wi')] - [switch] - ${WhatIf}, + ${SchemaVersion}, - [Alias('iv')] [System.Object] - ${InformationVariable}, + ${PastTerminationWindow}, [switch] ${AsJob}) @@ -89495,10 +92621,6 @@ param( [System.Object] ${ErrorAction}, - [Alias('iv')] - [System.Object] - ${InformationVariable}, - [System.Object] ${ProcessingLimitExceededSeverity}, @@ -89517,6 +92639,9 @@ param( [System.Object] ${InformationAction}, + [System.Object] + ${EnableLabelCoauth}, + [Alias('wv')] [System.Object] ${WarningVariable}, @@ -89544,14 +92669,14 @@ param( ${ErrorVariable}, [System.Object] - ${DocumentIsUnsupportedSeverity}, + ${EndpointDlpGlobalSettingsPsws}, [Alias('wa')] [System.Object] ${WarningAction}, [System.Object] - ${EndpointDlpGlobalSettings}, + ${DocumentIsUnsupportedSeverity}, [Alias('cf')] [switch] @@ -89567,8 +92692,9 @@ param( [switch] ${WhatIf}, + [Alias('iv')] [System.Object] - ${EndpointDlpGlobalSettingsPsws}, + ${InformationVariable}, [switch] ${AsJob}) @@ -90521,10 +93647,136 @@ param( [switch] ${AsJob}) +} +function Start-InformationBarrierPoliciesApplication +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + } function Stop-ComplianceSearch { +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Stop-InformationBarrierPoliciesApplication +{ + param( [Alias('ea')] [System.Object] @@ -90648,6 +93900,69 @@ param( [switch] ${AsJob}) +} +function Test-InformationBarrierPolicy +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + } function Update-ComplianceCaseMember { @@ -102469,7 +105784,71 @@ param( ${AsJob}) } -function Get-CsTeamsMeetingConfiguration +function Get-CsTeamsMeetingConfiguration +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [switch] + ${LocalStore}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + + [System.Object] + ${Tenant}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [System.Object] + ${Filter}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Get-CsTeamsMeetingPolicy { param( @@ -102533,7 +105912,7 @@ param( ${AsJob}) } -function Get-CsTeamsMeetingPolicy +function Get-CsTeamsMessagingPolicy { param( @@ -102597,7 +105976,7 @@ param( ${AsJob}) } -function Get-CsTeamsMessagingPolicy +function Get-CsTeamsMigrationConfiguration { param( @@ -102661,7 +106040,7 @@ param( ${AsJob}) } -function Get-CsTeamsMigrationConfiguration +function Get-CsTeamsNotificationAndFeedsPolicy { param( @@ -102725,7 +106104,7 @@ param( ${AsJob}) } -function Get-CsTeamsNotificationAndFeedsPolicy +function Get-CsTeamsPinnedApp { param( @@ -102789,7 +106168,7 @@ param( ${AsJob}) } -function Get-CsTeamsPinnedApp +function Get-CsTeamsTargetingPolicy { param( @@ -112440,6 +115819,9 @@ param( [switch] ${Verbose}, + [System.Object] + ${AppPresetList}, + [Alias('ov')] [System.Object] ${OutVariable}, @@ -112517,6 +115899,9 @@ param( [System.Object] ${WarningAction}, + [System.Object] + ${AllowWebPSTNCalling}, + [System.Object] ${Description}, @@ -112526,9 +115911,9 @@ param( [switch] ${InMemory}, - [Alias('cf')] - [switch] - ${Confirm}, + [Alias('pv')] + [System.Object] + ${PipelineVariable}, [Alias('infa')] [System.Object] @@ -112560,11 +115945,15 @@ param( ${Verbose}, [System.Object] - ${MusicOnHoldEnabledType}, + ${SafeTransferEnabled}, [System.Object] ${BusyOnBusyEnabledType}, + [Alias('cf')] + [switch] + ${Confirm}, + [System.Object] ${AllowVoicemail}, @@ -112572,9 +115961,8 @@ param( [System.Object] ${OutVariable}, - [Alias('pv')] [System.Object] - ${PipelineVariable}, + ${MusicOnHoldEnabledType}, [System.Object] ${PreventTollBypass}, @@ -112806,6 +116194,10 @@ param( [System.Object] ${InformationAction}, + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + [System.Object] ${RequiredDuringCall}, @@ -112831,9 +116223,8 @@ param( [System.Object] ${OutBuffer}, - [Alias('ev')] [System.Object] - ${ErrorVariable}, + ${ComplianceRecordingPairedApplications}, [System.Object] ${Identity}, @@ -112868,6 +116259,61 @@ param( [switch] ${AsJob}) +} +function New-CsTeamsComplianceRecordingPairedApplication +{ + +param( + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [System.Object] + ${Id}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [switch] + ${AsJob}) + } function New-CsTeamsComplianceRecordingPolicy { @@ -113438,10 +116884,16 @@ function New-CsTeamsMeetingPolicy { param( + [System.Object] + ${IPAudioMode}, + [Alias('wa')] [System.Object] ${WarningAction}, + [System.Object] + ${IPVideoMode}, + [System.Object] ${Description}, @@ -113462,7 +116914,7 @@ param( ${AllowIPAudio}, [System.Object] - ${AllowPSTNUsersToBypassLobby}, + ${AllowSharedNotes}, [Alias('ev')] [System.Object] @@ -113491,6 +116943,9 @@ param( [System.Object] ${WarningVariable}, + [System.Object] + ${AllowOrganizersToOverrideLobbySettings}, + [System.Object] ${Tenant}, @@ -113501,21 +116956,27 @@ param( [System.Object] ${AllowExternalParticipantGiveRequestControl}, + [Alias('ob')] + [System.Object] + ${OutBuffer}, + [System.Object] ${MediaBitRateKb}, [System.Object] ${AllowAnonymousUsersToStartMeeting}, - [Alias('ob')] [System.Object] - ${OutBuffer}, + ${AllowPSTNUsersToBypassLobby}, + + [System.Object] + ${PreferredMeetingProviderForIslandsMode}, [System.Object] ${AllowTranscription}, [System.Object] - ${AllowOrganizersToOverrideLobbySettings}, + ${AllowChannelMeetingScheduling}, [Alias('ov')] [System.Object] @@ -113561,12 +117022,6 @@ param( [switch] ${WhatIf}, - [System.Object] - ${AllowChannelMeetingScheduling}, - - [System.Object] - ${AllowSharedNotes}, - [System.Object] ${AllowCloudRecording}, @@ -116835,9 +120290,148 @@ param( [switch] ${Confirm}, - [System.Object] - ${TelephoneNumber}, - + [System.Object] + ${TelephoneNumber}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Tenant}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [Alias('DC')] + [System.Object] + ${DomainController}, + + [switch] + ${Force}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Remove-CsOnlineVoicemailPolicy +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + + [System.Object] + ${Tenant}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [switch] + ${Force}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [switch] + ${AsJob}) + +} +function Remove-CsOnlineVoiceRoute +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('cf')] + [switch] + ${Confirm}, + [Alias('ob')] [System.Object] ${OutBuffer}, @@ -116846,6 +120440,9 @@ param( [System.Object] ${ErrorVariable}, + [System.Object] + ${Identity}, + [System.Object] ${Tenant}, @@ -116853,10 +120450,6 @@ param( [System.Object] ${WarningAction}, - [Alias('DC')] - [System.Object] - ${DomainController}, - [switch] ${Force}, @@ -116868,7 +120461,7 @@ param( ${AsJob}) } -function Remove-CsOnlineVoicemailPolicy +function Remove-CsOnlineVoiceRoutingPolicy { param( @@ -116937,7 +120530,7 @@ param( ${AsJob}) } -function Remove-CsOnlineVoiceRoute +function Remove-CsOrganizationalAutoAttendant { param( @@ -116969,6 +120562,9 @@ param( [switch] ${Debug}, + [System.Object] + ${PrimaryUri}, + [Alias('pv')] [System.Object] ${PipelineVariable}, @@ -116985,9 +120581,6 @@ param( [System.Object] ${ErrorVariable}, - [System.Object] - ${Identity}, - [System.Object] ${Tenant}, @@ -116995,74 +120588,12 @@ param( [System.Object] ${WarningAction}, - [switch] - ${Force}, - - [Alias('iv')] - [System.Object] - ${InformationVariable}, - - [switch] - ${AsJob}) - -} -function Remove-CsOnlineVoiceRoutingPolicy -{ - -param( - [Alias('ea')] - [System.Object] - ${ErrorAction}, - - [Alias('vb')] - [switch] - ${Verbose}, - - [Alias('ov')] - [System.Object] - ${OutVariable}, - - [Alias('wi')] - [switch] - ${WhatIf}, - - [Alias('infa')] - [System.Object] - ${InformationAction}, - - [Alias('wv')] - [System.Object] - ${WarningVariable}, - - [Alias('db')] - [switch] - ${Debug}, - - [Alias('pv')] - [System.Object] - ${PipelineVariable}, - - [Alias('cf')] - [switch] - ${Confirm}, - - [Alias('ob')] - [System.Object] - ${OutBuffer}, - - [Alias('ev')] - [System.Object] - ${ErrorVariable}, - - [System.Object] - ${Identity}, - + [Alias('DC')] [System.Object] - ${Tenant}, + ${DomainController}, - [Alias('wa')] [System.Object] - ${WarningAction}, + ${ApplicationId}, [switch] ${Force}, @@ -117075,7 +120606,7 @@ param( ${AsJob}) } -function Remove-CsOrganizationalAutoAttendant +function Remove-CsTeamsAppPermissionPolicy { param( @@ -117107,9 +120638,6 @@ param( [switch] ${Debug}, - [System.Object] - ${PrimaryUri}, - [Alias('pv')] [System.Object] ${PipelineVariable}, @@ -117126,6 +120654,9 @@ param( [System.Object] ${ErrorVariable}, + [System.Object] + ${Identity}, + [System.Object] ${Tenant}, @@ -117133,13 +120664,6 @@ param( [System.Object] ${WarningAction}, - [Alias('DC')] - [System.Object] - ${DomainController}, - - [System.Object] - ${ApplicationId}, - [switch] ${Force}, @@ -117151,7 +120675,7 @@ param( ${AsJob}) } -function Remove-CsTeamsAppPermissionPolicy +function Remove-CsTeamsAppSetupPolicy { param( @@ -117220,7 +120744,7 @@ param( ${AsJob}) } -function Remove-CsTeamsAppSetupPolicy +function Remove-CsTeamsCallingPolicy { param( @@ -117289,7 +120813,7 @@ param( ${AsJob}) } -function Remove-CsTeamsCallingPolicy +function Remove-CsTeamsCallParkPolicy { param( @@ -117358,7 +120882,7 @@ param( ${AsJob}) } -function Remove-CsTeamsCallParkPolicy +function Remove-CsTeamsChannelsPolicy { param( @@ -117427,7 +120951,7 @@ param( ${AsJob}) } -function Remove-CsTeamsChannelsPolicy +function Remove-CsTeamsComplianceRecordingApplication { param( @@ -117496,7 +121020,7 @@ param( ${AsJob}) } -function Remove-CsTeamsComplianceRecordingApplication +function Remove-CsTeamsComplianceRecordingPolicy { param( @@ -117565,7 +121089,7 @@ param( ${AsJob}) } -function Remove-CsTeamsComplianceRecordingPolicy +function Remove-CsTeamsEmergencyCallingPolicy { param( @@ -117634,7 +121158,7 @@ param( ${AsJob}) } -function Remove-CsTeamsEmergencyCallingPolicy +function Remove-CsTeamsEmergencyCallRoutingPolicy { param( @@ -117703,7 +121227,7 @@ param( ${AsJob}) } -function Remove-CsTeamsEmergencyCallRoutingPolicy +function Remove-CsTeamsFeedbackPolicy { param( @@ -117772,7 +121296,7 @@ param( ${AsJob}) } -function Remove-CsTeamsFeedbackPolicy +function Remove-CsTeamsIPPhonePolicy { param( @@ -117841,7 +121365,7 @@ param( ${AsJob}) } -function Remove-CsTeamsIPPhonePolicy +function Remove-CsTeamsMeetingBroadcastPolicy { param( @@ -117910,7 +121434,7 @@ param( ${AsJob}) } -function Remove-CsTeamsMeetingBroadcastPolicy +function Remove-CsTeamsMeetingPolicy { param( @@ -117979,7 +121503,7 @@ param( ${AsJob}) } -function Remove-CsTeamsMeetingPolicy +function Remove-CsTeamsMessagingPolicy { param( @@ -118048,7 +121572,7 @@ param( ${AsJob}) } -function Remove-CsTeamsMessagingPolicy +function Remove-CsTeamsNotificationAndFeedsPolicy { param( @@ -118117,7 +121641,7 @@ param( ${AsJob}) } -function Remove-CsTeamsNotificationAndFeedsPolicy +function Remove-CsTeamsPinnedApp { param( @@ -118186,7 +121710,7 @@ param( ${AsJob}) } -function Remove-CsTeamsPinnedApp +function Remove-CsTeamsTargetingPolicy { param( @@ -124833,6 +128357,9 @@ param( [switch] ${Verbose}, + [System.Object] + ${AppPresetList}, + [Alias('ov')] [System.Object] ${OutVariable}, @@ -124906,6 +128433,9 @@ param( [System.Object] ${WarningAction}, + [System.Object] + ${AllowWebPSTNCalling}, + [System.Object] ${Description}, @@ -124915,9 +128445,9 @@ param( [System.Object] ${PreventTollBypass}, - [Alias('cf')] - [switch] - ${Confirm}, + [Alias('pv')] + [System.Object] + ${PipelineVariable}, [System.Object] ${Instance}, @@ -124952,11 +128482,15 @@ param( ${Verbose}, [System.Object] - ${MusicOnHoldEnabledType}, + ${SafeTransferEnabled}, [System.Object] ${BusyOnBusyEnabledType}, + [Alias('cf')] + [switch] + ${Confirm}, + [System.Object] ${AllowVoicemail}, @@ -124964,9 +128498,8 @@ param( [System.Object] ${OutVariable}, - [Alias('pv')] [System.Object] - ${PipelineVariable}, + ${MusicOnHoldEnabledType}, [System.Object] ${AllowCallForwardingToUser}, @@ -125306,6 +128839,10 @@ param( [System.Object] ${InformationAction}, + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + [System.Object] ${RequiredDuringCall}, @@ -125332,9 +128869,8 @@ param( [System.Object] ${OutBuffer}, - [Alias('ev')] [System.Object] - ${ErrorVariable}, + ${ComplianceRecordingPairedApplications}, [System.Object] ${Identity}, @@ -126414,10 +129950,16 @@ function Set-CsTeamsMeetingPolicy { param( + [System.Object] + ${IPAudioMode}, + [Alias('wa')] [System.Object] ${WarningAction}, + [System.Object] + ${IPVideoMode}, + [System.Object] ${Description}, @@ -126438,7 +129980,7 @@ param( ${AllowIPAudio}, [System.Object] - ${AllowPSTNUsersToBypassLobby}, + ${AllowSharedNotes}, [Alias('ev')] [System.Object] @@ -126467,6 +130009,9 @@ param( [System.Object] ${WarningVariable}, + [System.Object] + ${AllowOrganizersToOverrideLobbySettings}, + [System.Object] ${Tenant}, @@ -126477,21 +130022,27 @@ param( [System.Object] ${AllowExternalParticipantGiveRequestControl}, + [Alias('ob')] + [System.Object] + ${OutBuffer}, + [System.Object] ${MediaBitRateKb}, [System.Object] ${AllowAnonymousUsersToStartMeeting}, - [Alias('ob')] [System.Object] - ${OutBuffer}, + ${AllowPSTNUsersToBypassLobby}, + + [System.Object] + ${PreferredMeetingProviderForIslandsMode}, [System.Object] ${AllowTranscription}, [System.Object] - ${AllowOrganizersToOverrideLobbySettings}, + ${AllowChannelMeetingScheduling}, [Alias('ov')] [System.Object] @@ -126537,12 +130088,6 @@ param( [switch] ${WhatIf}, - [System.Object] - ${AllowChannelMeetingScheduling}, - - [System.Object] - ${AllowSharedNotes}, - [System.Object] ${AllowCloudRecording}, @@ -126913,6 +130458,93 @@ param( [switch] ${AsJob}) +} +function Set-CsTeamsTargetingPolicy +{ + +param( + [Alias('ea')] + [System.Object] + ${ErrorAction}, + + [Alias('iv')] + [System.Object] + ${InformationVariable}, + + [System.Object] + ${Description}, + + [Alias('vb')] + [switch] + ${Verbose}, + + [Alias('ov')] + [System.Object] + ${OutVariable}, + + [System.Object] + ${SuggestedPresetTags}, + + [Alias('infa')] + [System.Object] + ${InformationAction}, + + [Alias('wv')] + [System.Object] + ${WarningVariable}, + + [System.Object] + ${CustomTagsMode}, + + [Alias('db')] + [switch] + ${Debug}, + + [Alias('pv')] + [System.Object] + ${PipelineVariable}, + + [Alias('cf')] + [switch] + ${Confirm}, + + [Alias('ob')] + [System.Object] + ${OutBuffer}, + + [Alias('ev')] + [System.Object] + ${ErrorVariable}, + + [System.Object] + ${Identity}, + + [System.Object] + ${TeamOwnersEditWhoCanManageTagsMode}, + + [System.Object] + ${Tenant}, + + [Alias('wa')] + [System.Object] + ${WarningAction}, + + [System.Object] + ${ManageTagsPermissionMode}, + + [Alias('wi')] + [switch] + ${WhatIf}, + + [switch] + ${Force}, + + [System.Object] + ${Instance}, + + [switch] + ${AsJob}) + } function Set-CsTeamsTranslationRule { From 61e35fb245bc062cf5b660624d8b897d38bcac8e Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Tue, 7 Apr 2020 17:04:00 -0400 Subject: [PATCH 2/5] Update MSFT_AADMSGroupLifecyclePolicy.schema.mof --- .../MSFT_AADMSGroupLifecyclePolicy.schema.mof | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof index 30b756117d..61ba18c2a2 100644 --- a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof +++ b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof @@ -1,5 +1,5 @@ -[ClassVersion("1.0.0.0"), FriendlyName("AADGroupsNamingPolicy")] -class MSFT_AADGroupsNamingPolicy : OMI_BaseResource +[ClassVersion("1.0.0.0"), FriendlyName("AADMSGroupLifecyclePolicy")] +class MSFT_AADMSGroupLifecyclePolicy : OMI_BaseResource { [Key, Description("Only valid value is 'Yes'."), ValueMap{"Yes"}, Values{"Yes"}] String IsSingleInstance; [Write, Description("The number of days a group can exist before it needs to be renewed.")] UInt32 GroupLifetimeInDays; From 74b53711f189d8704c13214e550e9bbe26db6bf9 Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Wed, 8 Apr 2020 07:08:58 -0400 Subject: [PATCH 3/5] Update MSFT_AADMSGroupLifecyclePolicy.schema.mof --- .../MSFT_AADMSGroupLifecyclePolicy.schema.mof | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof index 61ba18c2a2..03d4d9a657 100644 --- a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof +++ b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof @@ -2,9 +2,9 @@ class MSFT_AADMSGroupLifecyclePolicy : OMI_BaseResource { [Key, Description("Only valid value is 'Yes'."), ValueMap{"Yes"}, Values{"Yes"}] String IsSingleInstance; - [Write, Description("The number of days a group can exist before it needs to be renewed.")] UInt32 GroupLifetimeInDays; - [Write, Description("This parameter allows the admin to select which office 365 groups the policy will apply to. 'None' will create the policy in a disabled state. 'All' will apply the policy to every Office 365 group in the tenant. 'Selected' will allow the admin to choose specific Office 365 groups that the policy will apply to."), ValueMap{"All","None", "Select"}, Values{"All","None", "Select"}] String ManagedGroupTypes[]; - [Write, Description("Notification emails for groups that have no owners will be sent to these email addresses.")] String AlternateNotificationEmails[]; + [Required, Description("The number of days a group can exist before it needs to be renewed.")] UInt32 GroupLifetimeInDays; + [Required, Description("This parameter allows the admin to select which office 365 groups the policy will apply to. 'None' will create the policy in a disabled state. 'All' will apply the policy to every Office 365 group in the tenant. 'Selected' will allow the admin to choose specific Office 365 groups that the policy will apply to."), ValueMap{"All","None", "Select"}, Values{"All","None", "Select"}] String ManagedGroupTypes; + [Required, Description("Notification emails for groups that have no owners will be sent to these email addresses.")] String AlternateNotificationEmails[]; [Write, Description("Specify if the Azure AD Groups Naming Policy should exist or not."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure; [Required, Description("Credentials of the Azure Active Directory Admin"), EmbeddedInstance("MSFT_Credential")] String GlobalAdminAccount; }; From 58eab82f2dc6eb99075211368f2ca2fbd840d67f Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Wed, 8 Apr 2020 07:50:17 -0400 Subject: [PATCH 4/5] Fixes --- .../MSFT_AADMSGroupLifecyclePolicy.psm1 | 4 ++-- .../MSFT_AADMSGroupLifecyclePolicy.schema.mof | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.psm1 b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.psm1 index 8549a070cc..8e37cc0ef8 100644 --- a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.psm1 +++ b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.psm1 @@ -140,7 +140,7 @@ function Set-TargetResource $creationParams.Remove("Ensure") $emails = "" - foreach($email in $creationParams.AlternateNotificationEmails) + foreach ($email in $creationParams.AlternateNotificationEmails) { $emails += $email + ";" } @@ -159,7 +159,7 @@ function Set-TargetResource $updateParams.Remove("Ensure") $emails = "" - foreach($email in $updateParams.AlternateNotificationEmails) + foreach ($email in $updateParams.AlternateNotificationEmails) { $emails += $email + ";" } diff --git a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof index 03d4d9a657..98e69d5046 100644 --- a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof +++ b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof @@ -3,7 +3,7 @@ class MSFT_AADMSGroupLifecyclePolicy : OMI_BaseResource { [Key, Description("Only valid value is 'Yes'."), ValueMap{"Yes"}, Values{"Yes"}] String IsSingleInstance; [Required, Description("The number of days a group can exist before it needs to be renewed.")] UInt32 GroupLifetimeInDays; - [Required, Description("This parameter allows the admin to select which office 365 groups the policy will apply to. 'None' will create the policy in a disabled state. 'All' will apply the policy to every Office 365 group in the tenant. 'Selected' will allow the admin to choose specific Office 365 groups that the policy will apply to."), ValueMap{"All","None", "Select"}, Values{"All","None", "Select"}] String ManagedGroupTypes; + [Required, Description("This parameter allows the admin to select which office 365 groups the policy will apply to. 'None' will create the policy in a disabled state. 'All' will apply the policy to every Office 365 group in the tenant. 'Selected' will allow the admin to choose specific Office 365 groups that the policy will apply to."), ValueMap{"All","None", "Selected"}, Values{"All","None", "Selected"}] String ManagedGroupTypes; [Required, Description("Notification emails for groups that have no owners will be sent to these email addresses.")] String AlternateNotificationEmails[]; [Write, Description("Specify if the Azure AD Groups Naming Policy should exist or not."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure; [Required, Description("Credentials of the Azure Active Directory Admin"), EmbeddedInstance("MSFT_Credential")] String GlobalAdminAccount; From 59bb047ff285fd8dda367af68b034b01410a9b78 Mon Sep 17 00:00:00 2001 From: Nik Charlebois Date: Wed, 8 Apr 2020 11:46:34 -0400 Subject: [PATCH 5/5] Fixes --- .../MSFT_AADMSGroupLifecyclePolicy.psm1 | 12 ++---------- .../MSFT_AADMSGroupLifecyclePolicy.schema.mof | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.psm1 b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.psm1 index 8e37cc0ef8..b61a871372 100644 --- a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.psm1 +++ b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.psm1 @@ -144,10 +144,7 @@ function Set-TargetResource { $emails += $email + ";" } - if ($emails.EndsWith(';')) - { - $emails = $emails.SubString(0, $emails.Length-1) - } + $emails = $emails.TrimEnd(';') $creationParams.AlternateNotificationEmails = $emails New-AzureADMSGroupLifecyclePolicy @creationParams } @@ -163,10 +160,7 @@ function Set-TargetResource { $emails += $email + ";" } - if ($emails.EndsWith(';')) - { - $emails = $emails.SubString(0, $emails.Length-1) - } + $emails = $emails.TrimEnd(';') $updateParams.AlternateNotificationEmails = $emails $updateParams.Add("Id", (Get-AzureADMSGroupLifecyclePolicy).Id) @@ -217,8 +211,6 @@ function Test-TargetResource Write-Verbose -Message "Testing configuration of AzureAD Groups Lifecycle Policy" $CurrentValues = Get-TargetResource @PSBoundParameters - - Write-Verbose -Message "Current Values: $(Convert-O365DscHashtableToString -Hashtable $CurrentValues)" Write-Verbose -Message "Target Values: $(Convert-O365DscHashtableToString -Hashtable $PSBoundParameters)" $ValuesToCheck = $PSBoundParameters diff --git a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof index 98e69d5046..0c82591bd9 100644 --- a/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof +++ b/Modules/Office365DSC/DSCResources/MSFT_AADMSGroupLifecyclePolicy/MSFT_AADMSGroupLifecyclePolicy.schema.mof @@ -5,6 +5,6 @@ class MSFT_AADMSGroupLifecyclePolicy : OMI_BaseResource [Required, Description("The number of days a group can exist before it needs to be renewed.")] UInt32 GroupLifetimeInDays; [Required, Description("This parameter allows the admin to select which office 365 groups the policy will apply to. 'None' will create the policy in a disabled state. 'All' will apply the policy to every Office 365 group in the tenant. 'Selected' will allow the admin to choose specific Office 365 groups that the policy will apply to."), ValueMap{"All","None", "Selected"}, Values{"All","None", "Selected"}] String ManagedGroupTypes; [Required, Description("Notification emails for groups that have no owners will be sent to these email addresses.")] String AlternateNotificationEmails[]; - [Write, Description("Specify if the Azure AD Groups Naming Policy should exist or not."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure; + [Write, Description("Specify if the Azure AD Groups Lifecycle Policy should exist or not."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure; [Required, Description("Credentials of the Azure Active Directory Admin"), EmbeddedInstance("MSFT_Credential")] String GlobalAdminAccount; };