Skip to content

Commit

Permalink
Merge pull request #4285 from microsoft/Dev
Browse files Browse the repository at this point in the history
Release 1.24.131.2
  • Loading branch information
NikCharlebois authored Feb 2, 2024
2 parents 12f990e + fcc28fe commit 996750c
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change log for Microsoft365DSC

# 1.24.131.2

* TeamsMeetingPolicy
* Fixed issue with missing ManagedIdentity parameter in Test signature.
* TeamsUpdateManagementPolicy
* Fixed issue with missing ManagedIdentity parameter in Set signature.

# 1.24.131.1

* EXOAvailabilityAddressSpace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,11 @@ function Get-TargetResource

[Parameter()]
[System.String]
$CertificateThumbprint
$CertificateThumbprint,

[Parameter()]
[Switch]
$ManagedIdentity
)

Write-Verbose -Message "Getting the Teams Meeting Policy $($Identity)"
Expand Down Expand Up @@ -396,6 +400,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
Expand Down Expand Up @@ -706,7 +711,11 @@ function Set-TargetResource

[Parameter()]
[System.String]
$CertificateThumbprint
$CertificateThumbprint,

[Parameter()]
[Switch]
$ManagedIdentity
)

Write-Verbose -Message 'Setting Teams Meeting Policy'
Expand Down Expand Up @@ -734,6 +743,7 @@ function Set-TargetResource
$SetParameters.Remove('ApplicationId') | Out-Null
$SetParameters.Remove('TenantId') | Out-Null
$SetParameters.Remove('CertificateThumbprint') | Out-Null
$SetParameters.Remove('ManagedIdentity') | Out-Null
$SetParameters.Remove('Verbose') | Out-Null # Needs to be implicitly removed for the cmdlet to work

if ($Ensure -eq 'Present' -and $CurrentValues.Ensure -eq 'Absent')
Expand Down Expand Up @@ -1074,7 +1084,11 @@ function Test-TargetResource

[Parameter()]
[System.String]
$CertificateThumbprint
$CertificateThumbprint,

[Parameter()]
[Switch]
$ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
Expand Down Expand Up @@ -1134,7 +1148,11 @@ function Export-TargetResource

[Parameter()]
[System.String]
$CertificateThumbprint
$CertificateThumbprint,

[Parameter()]
[Switch]
$ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
Expand Down Expand Up @@ -1166,6 +1184,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ function Set-TargetResource

[Parameter()]
[System.String]
$CertificateThumbprint
$CertificateThumbprint,

[Parameter()]
[Switch]
$ManagedIdentity
)

#Ensure the proper dependencies are installed in the current environment.
Expand Down
8 changes: 6 additions & 2 deletions Modules/Microsoft365DSC/Microsoft365DSC.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 2024-02-01
# Generated on: 2024-02-02

@{

# Script module or binary module file associated with this manifest.
# RootModule = ''

# Version number of this module.
ModuleVersion = '1.24.131.1'
ModuleVersion = '1.24.131.2'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -161,6 +161,10 @@
* TeamsEmergencyCallRoutingPolicy
* Fix deletion of resource
FIXES [#4261](https://github.com/microsoft/Microsoft365DSC/issues/4261)
* TeamsMeetingPolicy
* Fixed issue with missing ManagedIdentity parameter in Test signature.
* TeamsUpdateManagementPolicy
* Fixed issue with missing ManagedIdentity parameter in Set signature.
* TEAMS
* Added support for ManagedIdentity Authentication across Teams resources.
* DEPENDENCIES
Expand Down

0 comments on commit 996750c

Please sign in to comment.