diff --git a/CHANGELOG.md b/CHANGELOG.md
index eaae721e60..f9fd1eea6d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,10 @@
* TeamsEmergencyCallRoutingPolicy
* Fix deletion of resource
FIXES [#4261](https://github.com/microsoft/Microsoft365DSC/issues/4261)
+* TEAMS
+ * Added support for ManagedIdentity Authentication across Teams resources.
+* DEPENDENCIES
+ * Updated MSCloudLoginAssistant dependencies to version 1.1.9.
# 1.24.124.1
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppPermissionPolicy/MSFT_TeamsAppPermissionPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppPermissionPolicy/MSFT_TeamsAppPermissionPolicy.psm1
index 2b1116f93a..2d827e4c6b 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppPermissionPolicy/MSFT_TeamsAppPermissionPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppPermissionPolicy/MSFT_TeamsAppPermissionPolicy.psm1
@@ -55,7 +55,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -116,6 +120,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -187,7 +192,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -327,7 +336,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -441,7 +454,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppPermissionPolicy/MSFT_TeamsAppPermissionPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppPermissionPolicy/MSFT_TeamsAppPermissionPolicy.schema.mof
index 14e44cfc7a..ca2196ca1b 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppPermissionPolicy/MSFT_TeamsAppPermissionPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppPermissionPolicy/MSFT_TeamsAppPermissionPolicy.schema.mof
@@ -14,4 +14,5 @@ class MSFT_TeamsAppPermissionPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppSetupPolicy/MSFT_TeamsAppSetupPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppSetupPolicy/MSFT_TeamsAppSetupPolicy.psm1
index 7d4a44b0b7..6e99c8ba52 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppSetupPolicy/MSFT_TeamsAppSetupPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppSetupPolicy/MSFT_TeamsAppSetupPolicy.psm1
@@ -55,7 +55,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -98,6 +102,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -169,7 +174,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -327,7 +336,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -437,7 +450,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppSetupPolicy/MSFT_TeamsAppSetupPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppSetupPolicy/MSFT_TeamsAppSetupPolicy.schema.mof
index 0360966308..a3b04dd714 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppSetupPolicy/MSFT_TeamsAppSetupPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAppSetupPolicy/MSFT_TeamsAppSetupPolicy.schema.mof
@@ -14,4 +14,5 @@ class MSFT_TeamsAppSetupPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAudioConferencingPolicy/MSFT_TeamsAudioConferencingPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAudioConferencingPolicy/MSFT_TeamsAudioConferencingPolicy.psm1
index 28dd0906ff..43a53564cd 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAudioConferencingPolicy/MSFT_TeamsAudioConferencingPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAudioConferencingPolicy/MSFT_TeamsAudioConferencingPolicy.psm1
@@ -35,7 +35,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -73,6 +77,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -124,7 +129,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -235,7 +244,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -360,7 +373,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAudioConferencingPolicy/MSFT_TeamsAudioConferencingPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAudioConferencingPolicy/MSFT_TeamsAudioConferencingPolicy.schema.mof
index b589cf0147..869ee0e48d 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAudioConferencingPolicy/MSFT_TeamsAudioConferencingPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsAudioConferencingPolicy/MSFT_TeamsAudioConferencingPolicy.schema.mof
@@ -9,4 +9,5 @@ class MSFT_TeamsAudioConferencingPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallHoldPolicy/MSFT_TeamsCallHoldPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallHoldPolicy/MSFT_TeamsCallHoldPolicy.psm1
index 8a4ccd202d..1df4ef83b1 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallHoldPolicy/MSFT_TeamsCallHoldPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallHoldPolicy/MSFT_TeamsCallHoldPolicy.psm1
@@ -35,7 +35,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -73,6 +77,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -124,7 +129,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -235,7 +244,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -360,7 +373,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallHoldPolicy/MSFT_TeamsCallHoldPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallHoldPolicy/MSFT_TeamsCallHoldPolicy.schema.mof
index a39de434c6..8777ca8288 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallHoldPolicy/MSFT_TeamsCallHoldPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallHoldPolicy/MSFT_TeamsCallHoldPolicy.schema.mof
@@ -9,4 +9,5 @@ class MSFT_TeamsCallHoldPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallParkPolicy/MSFT_TeamsCallParkPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallParkPolicy/MSFT_TeamsCallParkPolicy.psm1
index aaba733498..1106286ec6 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallParkPolicy/MSFT_TeamsCallParkPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallParkPolicy/MSFT_TeamsCallParkPolicy.psm1
@@ -47,7 +47,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -88,6 +92,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -151,7 +156,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -274,7 +283,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -293,8 +306,8 @@ function Test-TargetResource
$CurrentValues = Get-TargetResource @PSBoundParameters
$ValuesToCheck = ([Hashtable]$PSBoundParameters).Clone()
- $ValuesToCheck.Remove('Identity') | Out-Null
+ $ValuesToCheck.Remove('Identity') | Out-Null
if ($CurrentValues.Ensure -eq 'Absent')
{
Write-Verbose -Message "Test-TargetResource returned $false"
@@ -399,7 +412,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallParkPolicy/MSFT_TeamsCallParkPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallParkPolicy/MSFT_TeamsCallParkPolicy.schema.mof
index 40b026991c..b76bf0c497 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallParkPolicy/MSFT_TeamsCallParkPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallParkPolicy/MSFT_TeamsCallParkPolicy.schema.mof
@@ -12,4 +12,5 @@ class MSFT_TeamsCallParkPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallQueue/MSFT_TeamsCallQueue.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallQueue/MSFT_TeamsCallQueue.psm1
index 6c3f10b87a..d3f8b19d33 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallQueue/MSFT_TeamsCallQueue.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallQueue/MSFT_TeamsCallQueue.psm1
@@ -221,7 +221,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting configuration of Teams Call Queue {$Name}"
@@ -308,6 +312,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
}
@@ -545,7 +550,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Setting configuration of Teams Call Queue {$Name}"
@@ -573,6 +582,7 @@ function Set-TargetResource
$opsParameters.Remove('TenantId') | Out-Null
$opsParameters.Remove('CertificateThumbprint') | Out-Null
$opsParameters.Remove('Ensure') | Out-Null
+ $opsParameters.Remove('ManagedIdentity') | Out-Null
if ($currentValues.Ensure -eq 'Absent' -and 'Present' -eq $Ensure )
{
@@ -817,7 +827,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -871,7 +885,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -906,6 +924,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallQueue/MSFT_TeamsCallQueue.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallQueue/MSFT_TeamsCallQueue.schema.mof
index dc9d7419c7..f3e4c87d94 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallQueue/MSFT_TeamsCallQueue.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallQueue/MSFT_TeamsCallQueue.schema.mof
@@ -54,5 +54,6 @@ class MSFT_TeamsCallQueue : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallingPolicy/MSFT_TeamsCallingPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallingPolicy/MSFT_TeamsCallingPolicy.psm1
index f0daee685f..ff3d791bea 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallingPolicy/MSFT_TeamsCallingPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallingPolicy/MSFT_TeamsCallingPolicy.psm1
@@ -115,7 +115,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting the Teams Calling Policy $($Identity)"
@@ -175,6 +179,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -305,7 +310,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting Teams Calling Policy'
@@ -333,6 +342,7 @@ function Set-TargetResource
$SetParameters.Remove('ApplicationId') | Out-Null
$SetParameters.Remove('TenantId') | Out-Null
$SetParameters.Remove('CertificateThumbprint') | Out-Null
+ $SetParameters.Remove('ManagedIdentity') | Out-Null
if ($Ensure -eq 'Present' -and $CurrentValues.Ensure -eq 'Absent')
{
@@ -470,7 +480,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -492,7 +506,6 @@ function Test-TargetResource
Write-Verbose -Message "Target Values: $(Convert-M365DscHashtableToString -Hashtable $PSBoundParameters)"
$ValuesToCheck = $PSBoundParameters
- $ValuesToCheck.Remove('Credential') | Out-Null
$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
@@ -524,7 +537,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -557,6 +574,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallingPolicy/MSFT_TeamsCallingPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallingPolicy/MSFT_TeamsCallingPolicy.schema.mof
index 993a8461ac..3dbbd080f0 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallingPolicy/MSFT_TeamsCallingPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCallingPolicy/MSFT_TeamsCallingPolicy.schema.mof
@@ -27,5 +27,6 @@ class MSFT_TeamsCallingPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannel/MSFT_TeamsChannel.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannel/MSFT_TeamsChannel.psm1
index 99cd1302ee..5a447d7540 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannel/MSFT_TeamsChannel.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannel/MSFT_TeamsChannel.psm1
@@ -46,7 +46,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting configuration of Teams channel $DisplayName"
@@ -117,6 +121,7 @@ function Get-TargetResource
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
Credential = $Credential
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
if ($NewDisplayName)
@@ -184,7 +189,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Setting configuration of Teams channel $DisplayName"
@@ -219,6 +228,7 @@ function Set-TargetResource
$CurrentParameters.Remove('TenantId') | Out-Null
$CurrentParameters.Remove('CertificateThumbprint') | Out-Null
$CurrentParameters.Remove('Ensure') | Out-Null
+ $CurrentParameters.Remove('ManagedIdentity') | Out-Null
if ($CurrentParameters.ContainsKey('GroupId'))
{
$CurrentParameters.GroupId = $team.GroupId
@@ -309,7 +319,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -360,7 +374,11 @@ function Export-TargetResource
[Parameter()]
[System.Management.Automation.PSCredential]
- $Credential
+ $Credential,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -401,6 +419,7 @@ function Export-TargetResource
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
Credential = $Credential
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannel/MSFT_TeamsChannel.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannel/MSFT_TeamsChannel.schema.mof
index 123dde5109..e66d644319 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannel/MSFT_TeamsChannel.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannel/MSFT_TeamsChannel.schema.mof
@@ -11,5 +11,5 @@ class MSFT_TeamsChannel : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelTab/MSFT_TeamsChannelTab.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelTab/MSFT_TeamsChannelTab.psm1
index 34fc8b7715..eaf6a683f7 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelTab/MSFT_TeamsChannelTab.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelTab/MSFT_TeamsChannelTab.psm1
@@ -66,7 +66,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting configuration of Tab $DisplayName"
@@ -184,6 +188,7 @@ function Get-TargetResource
TenantId = $TenantID
CertificateThumbprint = $CertificateThumbprint
Ensure = 'Present'
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -265,7 +270,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Setting configuration of Team $DisplayName"
@@ -293,6 +302,7 @@ function Set-TargetResource
$CurrentParameters.Remove('TenantId') | Out-Null
$CurrentParameters.Remove('CertificateThumbprint') | Out-Null
$CurrentParameters.Remove('Credential') | Out-Null
+ $CurrentParameters.Remove('ManagedIdentity') | Out-Null
Write-Verbose -Message "Retrieving Team Channel {$ChannelName} from Team {$($tab.TeamId)}"
$ChannelInstance = Get-MgBetaTeamChannel -TeamId $tab.TeamId `
@@ -438,7 +448,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -461,9 +475,6 @@ function Test-TargetResource
Write-Verbose -Message "Target Values: $(Convert-M365DscHashtableToString -Hashtable $PSBoundParameters)"
$ValuesToCheck = $PSBoundParameters
- $ValuesToCheck.Remove('TenantId') | Out-Null
- $ValuesToCheck.Remove('ApplicationId') | Out-Null
- $ValuesToCheck.Remove('CertificateThumbprint') | Out-Null
$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
@@ -495,7 +506,11 @@ function Export-TargetResource
[Parameter()]
[System.Management.Automation.PSCredential]
- $Credential
+ $Credential,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftGraph' `
@@ -570,6 +585,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelTab/MSFT_TeamsChannelTab.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelTab/MSFT_TeamsChannelTab.schema.mof
index 75da7fcdb1..62c2b473b9 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelTab/MSFT_TeamsChannelTab.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelTab/MSFT_TeamsChannelTab.schema.mof
@@ -16,5 +16,5 @@ class MSFT_TeamsChannelTab : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelsPolicy/MSFT_TeamsChannelsPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelsPolicy/MSFT_TeamsChannelsPolicy.psm1
index 1f7f9c4404..e78cd1c8ed 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelsPolicy/MSFT_TeamsChannelsPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelsPolicy/MSFT_TeamsChannelsPolicy.psm1
@@ -55,7 +55,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting the Teams Channels Policy $($Identity)"
@@ -103,6 +107,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -173,7 +178,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting Teams Channel Policy'
@@ -201,6 +210,7 @@ function Set-TargetResource
$SetParameters.Remove('ApplicationId') | Out-Null
$SetParameters.Remove('TenantId') | Out-Null
$SetParameters.Remove('CertificateThumbprint') | Out-Null
+ $SetParameters.Remove('ManagedIdentity') | Out-Null
if ($Ensure -eq 'Present' -and $CurrentValues.Ensure -eq 'Absent')
{
@@ -278,7 +288,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -331,7 +345,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -363,6 +381,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelsPolicy/MSFT_TeamsChannelsPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelsPolicy/MSFT_TeamsChannelsPolicy.schema.mof
index 89c46ea0f6..a2584258cc 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelsPolicy/MSFT_TeamsChannelsPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsChannelsPolicy/MSFT_TeamsChannelsPolicy.schema.mof
@@ -14,4 +14,5 @@ class MSFT_TeamsChannelsPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsClientConfiguration/MSFT_TeamsClientConfiguration.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsClientConfiguration/MSFT_TeamsClientConfiguration.psm1
index 000e689dd9..92e120994d 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsClientConfiguration/MSFT_TeamsClientConfiguration.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsClientConfiguration/MSFT_TeamsClientConfiguration.psm1
@@ -81,7 +81,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Getting configuration of Teams Client'
@@ -129,6 +133,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
if ([System.String]::IsNullOrEmpty($RestrictedSenderList))
{
@@ -230,7 +235,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting configuration of Teams Client'
@@ -255,6 +264,7 @@ function Set-TargetResource
$SetParams.Remove('ApplicationId') | Out-Null
$SetParams.Remove('TenantId') | Out-Null
$SetParams.Remove('CertificateThumbprint') | Out-Null
+ $SetParams.Remove('ManagedIdentity') | Out-Null
if ([System.String]::IsNullOrEmpty($RestrictedSenderList))
{
@@ -356,7 +366,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -413,7 +427,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -440,6 +458,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsClientConfiguration/MSFT_TeamsClientConfiguration.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsClientConfiguration/MSFT_TeamsClientConfiguration.schema.mof
index 47a8ebd921..f736444075 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsClientConfiguration/MSFT_TeamsClientConfiguration.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsClientConfiguration/MSFT_TeamsClientConfiguration.schema.mof
@@ -20,5 +20,5 @@ class MSFT_TeamsClientConfiguration : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsComplianceRecordingPolicy/MSFT_TeamsComplianceRecordingPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsComplianceRecordingPolicy/MSFT_TeamsComplianceRecordingPolicy.psm1
index 4a37550baa..3cd4f041a4 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsComplianceRecordingPolicy/MSFT_TeamsComplianceRecordingPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsComplianceRecordingPolicy/MSFT_TeamsComplianceRecordingPolicy.psm1
@@ -47,7 +47,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -97,6 +101,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -160,7 +165,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -283,7 +292,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -408,7 +421,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsComplianceRecordingPolicy/MSFT_TeamsComplianceRecordingPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsComplianceRecordingPolicy/MSFT_TeamsComplianceRecordingPolicy.schema.mof
index 25f29236af..0f32b2c355 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsComplianceRecordingPolicy/MSFT_TeamsComplianceRecordingPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsComplianceRecordingPolicy/MSFT_TeamsComplianceRecordingPolicy.schema.mof
@@ -12,4 +12,5 @@ class MSFT_TeamsComplianceRecordingPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCortanaPolicy/MSFT_TeamsCortanaPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCortanaPolicy/MSFT_TeamsCortanaPolicy.psm1
index 6e61b8db5e..9000814b1a 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCortanaPolicy/MSFT_TeamsCortanaPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCortanaPolicy/MSFT_TeamsCortanaPolicy.psm1
@@ -36,7 +36,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -74,6 +78,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -126,7 +131,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -238,7 +247,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -363,7 +376,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCortanaPolicy/MSFT_TeamsCortanaPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCortanaPolicy/MSFT_TeamsCortanaPolicy.schema.mof
index 09ce6cdd0c..21f463f839 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCortanaPolicy/MSFT_TeamsCortanaPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsCortanaPolicy/MSFT_TeamsCortanaPolicy.schema.mof
@@ -9,4 +9,5 @@ class MSFT_TeamsCortanaPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsDialInConferencingTenantSettings/MSFT_TeamsDialInConferencingTenantSettings.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsDialInConferencingTenantSettings/MSFT_TeamsDialInConferencingTenantSettings.psm1
index bb9a77e5ff..b088d9fa4e 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsDialInConferencingTenantSettings/MSFT_TeamsDialInConferencingTenantSettings.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsDialInConferencingTenantSettings/MSFT_TeamsDialInConferencingTenantSettings.psm1
@@ -60,7 +60,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Getting the Teams Dial In Conferencing Tenant Settings'
@@ -103,6 +107,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -178,7 +183,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting Teams Dial In Conferencing Tenant Settings'
@@ -206,6 +215,7 @@ function Set-TargetResource
$SetParameters.Remove('TenantId') | Out-Null
$SetParameters.Remove('CertificateThumbprint') | Out-Null
$SetParameters.Remove('IsSingleInstance') | Out-Null
+ $SetParameters.Remove('ManagedIdentity') | Out-Null
try
{
@@ -283,7 +293,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -336,7 +350,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -362,6 +380,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsDialInConferencingTenantSettings/MSFT_TeamsDialInConferencingTenantSettings.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsDialInConferencingTenantSettings/MSFT_TeamsDialInConferencingTenantSettings.schema.mof
index c8f30fb43f..1cfaa128bd 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsDialInConferencingTenantSettings/MSFT_TeamsDialInConferencingTenantSettings.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsDialInConferencingTenantSettings/MSFT_TeamsDialInConferencingTenantSettings.schema.mof
@@ -15,4 +15,5 @@ class MSFT_TeamsDialInConferencingTenantSettings : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallRoutingPolicy/MSFT_TeamsEmergencyCallRoutingPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallRoutingPolicy/MSFT_TeamsEmergencyCallRoutingPolicy.psm1
index 6afab26aab..ec13f8ade8 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallRoutingPolicy/MSFT_TeamsEmergencyCallRoutingPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallRoutingPolicy/MSFT_TeamsEmergencyCallRoutingPolicy.psm1
@@ -39,7 +39,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting the Teams Emergency Call Routing Policy $Identity"
@@ -82,6 +86,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
if ($policy.EmergencyNumbers.Count -gt 0)
@@ -143,7 +148,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Setting Teams Emergency Call Routing Policy {$Identity}"
@@ -188,6 +197,7 @@ function Set-TargetResource
$SetParameters.Remove('ApplicationId') | Out-Null
$SetParameters.Remove('TenantId') | Out-Null
$SetParameters.Remove('CertificateThumbprint') | Out-Null
+ $SetParameters.Remove('ManagedIdentity') | Out-Null
if ($PSBoundParameters.ContainsKey('EmergencyNumbers'))
{
@@ -275,7 +285,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -335,7 +349,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -367,6 +385,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$result = Get-TargetResource @params
$result = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallRoutingPolicy/MSFT_TeamsEmergencyCallRoutingPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallRoutingPolicy/MSFT_TeamsEmergencyCallRoutingPolicy.schema.mof
index 0c044f01ed..0a7d6ed6da 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallRoutingPolicy/MSFT_TeamsEmergencyCallRoutingPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallRoutingPolicy/MSFT_TeamsEmergencyCallRoutingPolicy.schema.mof
@@ -17,4 +17,5 @@ class MSFT_TeamsEmergencyCallRoutingPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallingPolicy/MSFT_TeamsEmergencyCallingPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallingPolicy/MSFT_TeamsEmergencyCallingPolicy.psm1
index b047caaebe..b93c36c008 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallingPolicy/MSFT_TeamsEmergencyCallingPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallingPolicy/MSFT_TeamsEmergencyCallingPolicy.psm1
@@ -54,7 +54,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting the Teams Emergency Calling Policy {$Identity}"
@@ -100,6 +104,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
if ([System.String]::IsNullOrEmpty($result.NotificationMode))
@@ -176,7 +181,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Setting Teams Emergency Calling Policy {$Identity}"
@@ -221,6 +230,7 @@ function Set-TargetResource
$SetParameters.Remove('ApplicationId') | Out-Null
$SetParameters.Remove('TenantId') | Out-Null
$SetParameters.Remove('CertificateThumbprint') | Out-Null
+ $SetParameters.Remove('ManagedIdentity') | Out-Null
if ($Ensure -eq 'Present' -and $CurrentValues.Ensure -eq 'Absent')
{
@@ -297,7 +307,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -350,7 +364,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -388,6 +406,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallingPolicy/MSFT_TeamsEmergencyCallingPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallingPolicy/MSFT_TeamsEmergencyCallingPolicy.schema.mof
index 1d5650973f..5b2bdb9364 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallingPolicy/MSFT_TeamsEmergencyCallingPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEmergencyCallingPolicy/MSFT_TeamsEmergencyCallingPolicy.schema.mof
@@ -13,4 +13,5 @@ class MSFT_TeamsEmergencyCallingPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEnhancedEncryptionPolicy/MSFT_TeamsEnhancedEncryptionPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEnhancedEncryptionPolicy/MSFT_TeamsEnhancedEncryptionPolicy.psm1
index 48da559d9d..2fc0ef8df9 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEnhancedEncryptionPolicy/MSFT_TeamsEnhancedEncryptionPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEnhancedEncryptionPolicy/MSFT_TeamsEnhancedEncryptionPolicy.psm1
@@ -39,7 +39,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -78,6 +82,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -133,7 +138,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -248,7 +257,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -373,7 +386,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEnhancedEncryptionPolicy/MSFT_TeamsEnhancedEncryptionPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEnhancedEncryptionPolicy/MSFT_TeamsEnhancedEncryptionPolicy.schema.mof
index 59e3fd96d5..525e169db9 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEnhancedEncryptionPolicy/MSFT_TeamsEnhancedEncryptionPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEnhancedEncryptionPolicy/MSFT_TeamsEnhancedEncryptionPolicy.schema.mof
@@ -10,4 +10,5 @@ class MSFT_TeamsEnhancedEncryptionPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEventsPolicy/MSFT_TeamsEventsPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEventsPolicy/MSFT_TeamsEventsPolicy.psm1
index 8ccbb925c6..c1b05c7b9c 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEventsPolicy/MSFT_TeamsEventsPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEventsPolicy/MSFT_TeamsEventsPolicy.psm1
@@ -79,7 +79,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting the Teams Events Policy {$Identity}"
@@ -130,6 +134,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return $result
@@ -226,7 +231,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Setting Teams Events Policy {$Identity}"
@@ -254,6 +263,7 @@ function Set-TargetResource
$SetParameters.Remove('ApplicationId') | Out-Null
$SetParameters.Remove('TenantId') | Out-Null
$SetParameters.Remove('CertificateThumbprint') | Out-Null
+ $SetParameters.Remove('ManagedIdentity') | Out-Null
if ($Ensure -eq 'Present' -and $CurrentValues.Ensure -eq 'Absent')
{
@@ -353,7 +363,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -407,7 +421,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -445,6 +463,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEventsPolicy/MSFT_TeamsEventsPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEventsPolicy/MSFT_TeamsEventsPolicy.schema.mof
index f8d8aea02d..b1c20537d6 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEventsPolicy/MSFT_TeamsEventsPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsEventsPolicy/MSFT_TeamsEventsPolicy.schema.mof
@@ -18,4 +18,5 @@ class MSFT_TeamsEventsPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFederationConfiguration/MSFT_TeamsFederationConfiguration.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFederationConfiguration/MSFT_TeamsFederationConfiguration.psm1
index 6fe1ae47e6..47d7c7bf01 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFederationConfiguration/MSFT_TeamsFederationConfiguration.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFederationConfiguration/MSFT_TeamsFederationConfiguration.psm1
@@ -59,7 +59,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Getting configuration of Teams Federation'
@@ -124,6 +128,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -198,7 +203,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting configuration of Teams Federation'
@@ -224,6 +233,7 @@ function Set-TargetResource
$SetParams.Remove('TenantId') | Out-Null
$SetParams.Remove('CertificateThumbprint') | Out-Null
$SetParams.Remove('AllowedDomains') | Out-Null
+ $SetParams.Remove('ManagedIdentity') | Out-Null
if ($allowedDomains.Length -gt 0)
{
$SetParams.Add('AllowedDomainsAsAList', $AllowedDomains)
@@ -299,7 +309,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -352,7 +366,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -379,6 +397,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFederationConfiguration/MSFT_TeamsFederationConfiguration.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFederationConfiguration/MSFT_TeamsFederationConfiguration.schema.mof
index 14aaecce2e..f91ae23238 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFederationConfiguration/MSFT_TeamsFederationConfiguration.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFederationConfiguration/MSFT_TeamsFederationConfiguration.schema.mof
@@ -15,4 +15,5 @@ class MSFT_TeamsFederationConfiguration : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFeedbackPolicy/MSFT_TeamsFeedbackPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFeedbackPolicy/MSFT_TeamsFeedbackPolicy.psm1
index e902ca70c9..3bd7721982 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFeedbackPolicy/MSFT_TeamsFeedbackPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFeedbackPolicy/MSFT_TeamsFeedbackPolicy.psm1
@@ -52,7 +52,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -94,6 +98,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -162,7 +167,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -290,7 +299,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -415,7 +428,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFeedbackPolicy/MSFT_TeamsFeedbackPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFeedbackPolicy/MSFT_TeamsFeedbackPolicy.schema.mof
index cc4896cc6c..a0f2a18be9 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFeedbackPolicy/MSFT_TeamsFeedbackPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFeedbackPolicy/MSFT_TeamsFeedbackPolicy.schema.mof
@@ -13,4 +13,5 @@ class MSFT_TeamsFeedbackPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFilesPolicy/MSFT_TeamsFilesPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFilesPolicy/MSFT_TeamsFilesPolicy.psm1
index 62af2c60f4..539e4f4ee5 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFilesPolicy/MSFT_TeamsFilesPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFilesPolicy/MSFT_TeamsFilesPolicy.psm1
@@ -37,7 +37,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -75,6 +79,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -128,7 +133,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -241,7 +250,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -366,7 +379,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFilesPolicy/MSFT_TeamsFilesPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFilesPolicy/MSFT_TeamsFilesPolicy.schema.mof
index 65d59f8b9e..a6916dcf07 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFilesPolicy/MSFT_TeamsFilesPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsFilesPolicy/MSFT_TeamsFilesPolicy.schema.mof
@@ -9,4 +9,5 @@ class MSFT_TeamsFilesPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGroupPolicyAssignment/MSFT_TeamsGroupPolicyAssignment.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGroupPolicyAssignment/MSFT_TeamsGroupPolicyAssignment.psm1
index 3e8ad626f1..7ab2957bbc 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGroupPolicyAssignment/MSFT_TeamsGroupPolicyAssignment.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGroupPolicyAssignment/MSFT_TeamsGroupPolicyAssignment.psm1
@@ -44,7 +44,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' -InboundParameters $PSBoundParameters
@@ -115,6 +119,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -174,7 +179,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -286,7 +295,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -337,7 +350,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$InformationPreference = 'Continue'
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' -InboundParameters $PSBoundParameters
@@ -397,6 +414,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
#$results = Get-TargetResource @getParams
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGroupPolicyAssignment/MSFT_TeamsGroupPolicyAssignment.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGroupPolicyAssignment/MSFT_TeamsGroupPolicyAssignment.schema.mof
index 4ab2928fbc..843fae438a 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGroupPolicyAssignment/MSFT_TeamsGroupPolicyAssignment.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGroupPolicyAssignment/MSFT_TeamsGroupPolicyAssignment.schema.mof
@@ -11,5 +11,5 @@ class MSFT_TeamsGroupPolicyAssignment : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestCallingConfiguration/MSFT_TeamsGuestCallingConfiguration.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestCallingConfiguration/MSFT_TeamsGuestCallingConfiguration.psm1
index d0d0006666..b78bd59890 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestCallingConfiguration/MSFT_TeamsGuestCallingConfiguration.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestCallingConfiguration/MSFT_TeamsGuestCallingConfiguration.psm1
@@ -27,7 +27,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Getting configuration of Teams Guest Calling'
@@ -62,6 +66,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return $result
}
@@ -105,7 +110,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting configuration of Teams Guest Calling'
@@ -131,6 +140,7 @@ function Set-TargetResource
$SetParams.Remove('ApplicationId') | Out-Null
$SetParams.Remove('TenantId') | Out-Null
$SetParams.Remove('CertificateThumbprint') | Out-Null
+ $SetParams.Remove('ManagedIdentity') | Out-Null
if ($AllowPrivateCalling -ne $CurrentValues.AllowPrivateCalling)
{
@@ -167,7 +177,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -220,7 +234,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -247,6 +265,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestCallingConfiguration/MSFT_TeamsGuestCallingConfiguration.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestCallingConfiguration/MSFT_TeamsGuestCallingConfiguration.schema.mof
index 3772c53927..3afdd7aebe 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestCallingConfiguration/MSFT_TeamsGuestCallingConfiguration.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestCallingConfiguration/MSFT_TeamsGuestCallingConfiguration.schema.mof
@@ -7,5 +7,5 @@ class MSFT_TeamsGuestCallingConfiguration : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMeetingConfiguration/MSFT_TeamsGuestMeetingConfiguration.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMeetingConfiguration/MSFT_TeamsGuestMeetingConfiguration.psm1
index 519d9a1aae..60f8ca4e9b 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMeetingConfiguration/MSFT_TeamsGuestMeetingConfiguration.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMeetingConfiguration/MSFT_TeamsGuestMeetingConfiguration.psm1
@@ -41,7 +41,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Getting configuration of Teams Guest Meeting settings'
@@ -79,6 +83,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return $result
}
@@ -136,7 +141,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting configuration of Teams Guest Meeting settings'
@@ -161,6 +170,7 @@ function Set-TargetResource
$SetParams.Remove('ApplicationId') | Out-Null
$SetParams.Remove('TenantId') | Out-Null
$SetParams.Remove('CertificateThumbprint') | Out-Null
+ $SetParams.Remove('ManagedIdentity') | Out-Null
Set-CsTeamsGuestMeetingConfiguration @SetParams
}
@@ -208,7 +218,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -261,7 +275,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -287,6 +305,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMeetingConfiguration/MSFT_TeamsGuestMeetingConfiguration.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMeetingConfiguration/MSFT_TeamsGuestMeetingConfiguration.schema.mof
index e2e12a3836..98510798c3 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMeetingConfiguration/MSFT_TeamsGuestMeetingConfiguration.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMeetingConfiguration/MSFT_TeamsGuestMeetingConfiguration.schema.mof
@@ -10,4 +10,5 @@ class MSFT_TeamsGuestMeetingConfiguration : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMessagingConfiguration/MSFT_TeamsGuestMessagingConfiguration.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMessagingConfiguration/MSFT_TeamsGuestMessagingConfiguration.psm1
index 9127c65f31..a9d87c654f 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMessagingConfiguration/MSFT_TeamsGuestMessagingConfiguration.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMessagingConfiguration/MSFT_TeamsGuestMessagingConfiguration.psm1
@@ -60,7 +60,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Getting configuration of Teams Guest Messaging settings'
@@ -103,6 +107,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -178,7 +183,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting configuration of Teams Guest Messaging settings'
@@ -191,6 +200,7 @@ function Set-TargetResource
$inputValues.Remove('TenantId') | Out-Null
$inputValues.Remove('CertificateThumbprint') | Out-Null
$inputValues.Remove('Identity') | Out-Null
+ $inputValues.Remove('ManagedIdentity') | Out-Null
foreach ($item in $inputValues)
{
if ([System.String]::IsNullOrEmpty($item.Value))
@@ -285,7 +295,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -338,7 +352,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -365,6 +383,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMessagingConfiguration/MSFT_TeamsGuestMessagingConfiguration.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMessagingConfiguration/MSFT_TeamsGuestMessagingConfiguration.schema.mof
index 564f2024b2..68dd36fdaf 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMessagingConfiguration/MSFT_TeamsGuestMessagingConfiguration.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsGuestMessagingConfiguration/MSFT_TeamsGuestMessagingConfiguration.schema.mof
@@ -15,5 +15,5 @@ class MSFT_TeamsGuestMessagingConfiguration : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsIPPhonePolicy/MSFT_TeamsIPPhonePolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsIPPhonePolicy/MSFT_TeamsIPPhonePolicy.psm1
index c2061ace70..9171d265f6 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsIPPhonePolicy/MSFT_TeamsIPPhonePolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsIPPhonePolicy/MSFT_TeamsIPPhonePolicy.psm1
@@ -59,7 +59,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -102,6 +106,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -177,7 +182,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -312,7 +321,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -437,7 +450,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsIPPhonePolicy/MSFT_TeamsIPPhonePolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsIPPhonePolicy/MSFT_TeamsIPPhonePolicy.schema.mof
index e4fe6f5bc7..6293962713 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsIPPhonePolicy/MSFT_TeamsIPPhonePolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsIPPhonePolicy/MSFT_TeamsIPPhonePolicy.schema.mof
@@ -14,4 +14,5 @@ class MSFT_TeamsIPPhonePolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastConfiguration/MSFT_TeamsMeetingBroadcastConfiguration.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastConfiguration/MSFT_TeamsMeetingBroadcastConfiguration.psm1
index ee8427cd77..befd645d38 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastConfiguration/MSFT_TeamsMeetingBroadcastConfiguration.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastConfiguration/MSFT_TeamsMeetingBroadcastConfiguration.psm1
@@ -47,7 +47,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Getting configuration of Teams Meeting Broadcast'
@@ -88,6 +92,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -150,7 +155,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting configuration of Teams Meeting Broadcast'
@@ -175,6 +184,7 @@ function Set-TargetResource
$SetParams.Remove('ApplicationId') | Out-Null
$SetParams.Remove('TenantId') | Out-Null
$SetParams.Remove('CertificateThumbprint') | Out-Null
+ $SetParams.Remove('ManagedIdentity') | Out-Null
Set-CsTeamsMeetingBroadcastConfiguration @SetParams
}
@@ -228,7 +238,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -286,7 +300,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -313,6 +331,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
Add-ConfigurationDataEntry -Node 'NonNodeData' -Key 'SdnApiToken' -Value '**********'`
-Description 'API Token for the Teams SDN Provider for Meeting Broadcast'
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastConfiguration/MSFT_TeamsMeetingBroadcastConfiguration.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastConfiguration/MSFT_TeamsMeetingBroadcastConfiguration.schema.mof
index 52109ae99a..fdb7c10fb0 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastConfiguration/MSFT_TeamsMeetingBroadcastConfiguration.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastConfiguration/MSFT_TeamsMeetingBroadcastConfiguration.schema.mof
@@ -12,5 +12,5 @@ class MSFT_TeamsMeetingBroadcastConfiguration : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastPolicy/MSFT_TeamsMeetingBroadcastPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastPolicy/MSFT_TeamsMeetingBroadcastPolicy.psm1
index 8210eeb73e..442fda7f9c 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastPolicy/MSFT_TeamsMeetingBroadcastPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastPolicy/MSFT_TeamsMeetingBroadcastPolicy.psm1
@@ -45,7 +45,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting configuration of Teams Meeting Broadcast Policy {$Identity}"
@@ -84,6 +88,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
return $nullReturn
@@ -146,7 +151,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Setting configuration of Teams Meeting Broadcast Policy {$Identity}"
@@ -189,6 +198,7 @@ function Set-TargetResource
$SetParams.Remove('TenantId') | Out-Null
$SetParams.Remove('CertificateThumbprint') | Out-Null
$SetParams.Remove('Ensure') | Out-Null
+ $SetParams.Remove('ManagedIdentity') | Out-Null
if ($Ensure -eq 'Present' -and $currentValues.Ensure -eq 'Absent')
{
@@ -251,7 +261,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -304,7 +318,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -336,6 +354,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
Write-Host " |---[$i/$($policies.Length)] $($policy.Identity)" -NoNewline
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastPolicy/MSFT_TeamsMeetingBroadcastPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastPolicy/MSFT_TeamsMeetingBroadcastPolicy.schema.mof
index 5b4583b65d..6b21bfafc8 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastPolicy/MSFT_TeamsMeetingBroadcastPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingBroadcastPolicy/MSFT_TeamsMeetingBroadcastPolicy.schema.mof
@@ -11,5 +11,5 @@ class MSFT_TeamsMeetingBroadcastPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingConfiguration/MSFT_TeamsMeetingConfiguration.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingConfiguration/MSFT_TeamsMeetingConfiguration.psm1
index 20d7c924b9..726f895170 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingConfiguration/MSFT_TeamsMeetingConfiguration.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingConfiguration/MSFT_TeamsMeetingConfiguration.psm1
@@ -78,7 +78,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Getting configuration of Teams Meeting'
@@ -125,6 +129,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -218,7 +223,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting configuration of Teams Meetings'
@@ -243,6 +252,7 @@ function Set-TargetResource
$SetParams.Remove('ApplicationId') | Out-Null
$SetParams.Remove('TenantId') | Out-Null
$SetParams.Remove('CertificateThumbprint') | Out-Null
+ $SetParams.Remove('ManagedIdentity') | Out-Null
Set-CsTeamsMeetingConfiguration @SetParams
}
@@ -327,7 +337,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -380,7 +394,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -407,6 +425,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingConfiguration/MSFT_TeamsMeetingConfiguration.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingConfiguration/MSFT_TeamsMeetingConfiguration.schema.mof
index 8855a61442..96b6f0e085 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingConfiguration/MSFT_TeamsMeetingConfiguration.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingConfiguration/MSFT_TeamsMeetingConfiguration.schema.mof
@@ -19,5 +19,5 @@ class MSFT_TeamsMeetingConfiguration : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingPolicy/MSFT_TeamsMeetingPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingPolicy/MSFT_TeamsMeetingPolicy.schema.mof
index e5d68caeac..508e1f3cba 100644
Binary files a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingPolicy/MSFT_TeamsMeetingPolicy.schema.mof and b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMeetingPolicy/MSFT_TeamsMeetingPolicy.schema.mof differ
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.psm1
index 8f886a2671..6ce43a6417 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.psm1
@@ -131,7 +131,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Getting configuration of Teams Messaging Policy'
@@ -202,6 +206,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
}
@@ -349,7 +354,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting configuration of Teams Messaging Policy'
@@ -377,6 +386,7 @@ function Set-TargetResource
$SetParams.Remove('TenantId') | Out-Null
$SetParams.Remove('CertificateThumbprint') | Out-Null
$SetParams.Remove('Ensure') | Out-Null
+ $SetParams.Remove('ManagedIdentity') | Out-Null
if ($curPolicy.Ensure -eq 'Absent' -and 'Present' -eq $Ensure )
{
@@ -525,7 +535,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -580,7 +594,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -622,6 +640,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.schema.mof
index 0dca96be54..39d3ee98eb 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMessagingPolicy/MSFT_TeamsMessagingPolicy.schema.mof
@@ -32,5 +32,5 @@ class MSFT_TeamsMessagingPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMobilityPolicy/MSFT_TeamsMobilityPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMobilityPolicy/MSFT_TeamsMobilityPolicy.psm1
index 30ff10393e..173998fe7f 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMobilityPolicy/MSFT_TeamsMobilityPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMobilityPolicy/MSFT_TeamsMobilityPolicy.psm1
@@ -46,7 +46,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -86,6 +90,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity
}
return [System.Collections.Hashtable] $results
}
@@ -148,7 +153,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -270,7 +279,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -395,7 +408,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMobilityPolicy/MSFT_TeamsMobilityPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMobilityPolicy/MSFT_TeamsMobilityPolicy.schema.mof
index 30bf8f182c..6882b2a8aa 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMobilityPolicy/MSFT_TeamsMobilityPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsMobilityPolicy/MSFT_TeamsMobilityPolicy.schema.mof
@@ -11,4 +11,5 @@ class MSFT_TeamsMobilityPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsNetworkRoamingPolicy/MSFT_TeamsNetworkRoamingPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsNetworkRoamingPolicy/MSFT_TeamsNetworkRoamingPolicy.psm1
index abe450cad1..1bd6fdb1e2 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsNetworkRoamingPolicy/MSFT_TeamsNetworkRoamingPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsNetworkRoamingPolicy/MSFT_TeamsNetworkRoamingPolicy.psm1
@@ -39,7 +39,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -78,6 +82,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -133,7 +138,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -248,7 +257,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -373,7 +386,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsNetworkRoamingPolicy/MSFT_TeamsNetworkRoamingPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsNetworkRoamingPolicy/MSFT_TeamsNetworkRoamingPolicy.schema.mof
index 9997e9e405..66a0f9b11c 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsNetworkRoamingPolicy/MSFT_TeamsNetworkRoamingPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsNetworkRoamingPolicy/MSFT_TeamsNetworkRoamingPolicy.schema.mof
@@ -10,4 +10,5 @@ class MSFT_TeamsNetworkRoamingPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoiceUser/MSFT_TeamsOnlineVoiceUser.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoiceUser/MSFT_TeamsOnlineVoiceUser.psm1
index 73d5f8a1a2..415e797ad6 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoiceUser/MSFT_TeamsOnlineVoiceUser.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoiceUser/MSFT_TeamsOnlineVoiceUser.psm1
@@ -35,7 +35,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting the Teams Online Voice User $($Identity)"
@@ -91,6 +95,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -141,7 +146,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Setting Teams Online Voice User {$Identity}"
@@ -211,7 +220,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -264,7 +277,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -301,6 +318,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoiceUser/MSFT_TeamsOnlineVoiceUser.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoiceUser/MSFT_TeamsOnlineVoiceUser.schema.mof
index 3f96b62e2a..ea7a87d165 100644
Binary files a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoiceUser/MSFT_TeamsOnlineVoiceUser.schema.mof and b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoiceUser/MSFT_TeamsOnlineVoiceUser.schema.mof differ
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailPolicy/MSFT_TeamsOnlineVoicemailPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailPolicy/MSFT_TeamsOnlineVoicemailPolicy.psm1
index da9b46732c..56c1a832b8 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailPolicy/MSFT_TeamsOnlineVoicemailPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailPolicy/MSFT_TeamsOnlineVoicemailPolicy.psm1
@@ -59,7 +59,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting the Teams Online Voicemail Policy $($Identity)"
@@ -108,6 +112,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -182,7 +187,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting Teams Online Voicemail Policy'
@@ -210,6 +219,7 @@ function Set-TargetResource
$SetParameters.Remove('ApplicationId') | Out-Null
$SetParameters.Remove('TenantId') | Out-Null
$SetParameters.Remove('CertificateThumbprint') | Out-Null
+ $SetParameters.Remove('ManagedIdentity') | Out-Null
# Convert the MaximumRecordingLength back to a timespan object.
$timespan = [TimeSpan]$MaximumRecordingLength
@@ -295,7 +305,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -348,7 +362,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -380,6 +398,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailPolicy/MSFT_TeamsOnlineVoicemailPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailPolicy/MSFT_TeamsOnlineVoicemailPolicy.schema.mof
index 9a009e7cd6..550bbcbf5c 100644
Binary files a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailPolicy/MSFT_TeamsOnlineVoicemailPolicy.schema.mof and b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailPolicy/MSFT_TeamsOnlineVoicemailPolicy.schema.mof differ
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailUserSettings/MSFT_TeamsOnlineVoicemailUserSettings.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailUserSettings/MSFT_TeamsOnlineVoicemailUserSettings.psm1
index 65d4d988f5..d263afaa81 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailUserSettings/MSFT_TeamsOnlineVoicemailUserSettings.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailUserSettings/MSFT_TeamsOnlineVoicemailUserSettings.psm1
@@ -68,7 +68,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting the Teams Online Voicemail User Settings $($Identity)"
@@ -118,6 +122,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -201,7 +206,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting Teams Online Voicemail User Settings'
@@ -229,6 +238,7 @@ function Set-TargetResource
$SetParameters.Remove('ApplicationId') | Out-Null
$SetParameters.Remove('TenantId') | Out-Null
$SetParameters.Remove('CertificateThumbprint') | Out-Null
+ $SetParameters.Remove('ManagedIdentity') | Out-Null
try
{
@@ -314,7 +324,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -367,7 +381,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -403,6 +421,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity
}
$Results = Get-TargetResource @Params
@@ -422,7 +441,7 @@ function Export-TargetResource
Write-Host $Global:M365DSCEmojiGreenCheckMark
$i++
}
- return $dscContent
+ return $dscContent.ToString()
}
catch
{
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailUserSettings/MSFT_TeamsOnlineVoicemailUserSettings.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailUserSettings/MSFT_TeamsOnlineVoicemailUserSettings.schema.mof
index 3322c261c3..e12b1d3414 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailUserSettings/MSFT_TeamsOnlineVoicemailUserSettings.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOnlineVoicemailUserSettings/MSFT_TeamsOnlineVoicemailUserSettings.schema.mof
@@ -17,4 +17,5 @@ class MSFT_TeamsOnlineVoicemailUserSettings : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOrgWideAppSettings/MSFT_TeamsOrgWideAppSettings.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOrgWideAppSettings/MSFT_TeamsOrgWideAppSettings.schema.mof
index 761c82cf5c..9bc8235bd1 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOrgWideAppSettings/MSFT_TeamsOrgWideAppSettings.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsOrgWideAppSettings/MSFT_TeamsOrgWideAppSettings.schema.mof
@@ -4,5 +4,5 @@ class MSFT_TeamsOrgWideAppSettings : OMI_BaseResource
[Key, Description("Specifies the resource is a single instance, the value must be 'Yes'"),ValueMap{"Yes"},Values{"Yes"}] String IsSingleInstance;
[Write, Description("Determines whether or not to allow interaction with custom apps.")] Boolean IsSideloadedAppsInteractionEnabled;
[Write, Description("Credentials of the Teams Admin"), EmbeddedInstance("MSFT_Credential")] string Credential;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsPstnUsage/MSFT_TeamsPstnUsage.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsPstnUsage/MSFT_TeamsPstnUsage.psm1
index 5d20d0bcbd..5459028083 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsPstnUsage/MSFT_TeamsPstnUsage.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsPstnUsage/MSFT_TeamsPstnUsage.psm1
@@ -27,7 +27,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Getting Global PSTN Usage(s)'
@@ -77,6 +81,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -119,7 +124,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting PSTN Usage'
@@ -147,6 +156,7 @@ function Set-TargetResource
$SetParameters.Remove('ApplicationId') | Out-Null
$SetParameters.Remove('TenantId') | Out-Null
$SetParameters.Remove('CertificateThumbprint') | Out-Null
+ $SetParameters.Remove('ManagedIdentity') | Out-Null
if ($Ensure -eq 'Present' -and $CurrentValues.Ensure -eq 'Absent')
{
@@ -189,7 +199,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -242,7 +256,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -282,6 +300,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsPstnUsage/MSFT_TeamsPstnUsage.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsPstnUsage/MSFT_TeamsPstnUsage.schema.mof
index cd64eb15eb..d02a0a1f3c 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsPstnUsage/MSFT_TeamsPstnUsage.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsPstnUsage/MSFT_TeamsPstnUsage.schema.mof
@@ -7,4 +7,5 @@ class MSFT_TeamsPstnUsage : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsShiftsPolicy/MSFT_TeamsShiftsPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsShiftsPolicy/MSFT_TeamsShiftsPolicy.psm1
index bdab72fdf6..ccbc63bbab 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsShiftsPolicy/MSFT_TeamsShiftsPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsShiftsPolicy/MSFT_TeamsShiftsPolicy.psm1
@@ -58,7 +58,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -102,6 +106,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -176,7 +181,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -316,7 +325,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -442,7 +455,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsShiftsPolicy/MSFT_TeamsShiftsPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsShiftsPolicy/MSFT_TeamsShiftsPolicy.schema.mof
index 1216e56a1f..29fe2b1e64 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsShiftsPolicy/MSFT_TeamsShiftsPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsShiftsPolicy/MSFT_TeamsShiftsPolicy.schema.mof
@@ -14,4 +14,5 @@ class MSFT_TeamsShiftsPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.psm1
index 98f85fa961..f100145246 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.psm1
@@ -119,7 +119,11 @@ function Get-TargetResource
[Parameter()]
[System.Management.Automation.PSCredential]
- $Credential
+ $Credential,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting configuration of Team $DisplayName"
@@ -205,6 +209,7 @@ function Get-TargetResource
AllowDeleteChannels = $team.AllowDeleteChannels
ShowInTeamsSearchAndSuggestions = $team.ShowInTeamsSearchAndSuggestions
Ensure = 'Present'
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
if ($ConnectionMode.StartsWith('ServicePrincipal'))
@@ -351,7 +356,11 @@ function Set-TargetResource
[Parameter()]
[System.Management.Automation.PSCredential]
- $Credential
+ $Credential,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Setting configuration of Team $DisplayName"
@@ -374,6 +383,7 @@ function Set-TargetResource
$CurrentParameters = $PSBoundParameters
$CurrentParameters.Remove('Ensure') | Out-Null
+ $CurrentParameters.Remove('ManagedIdentity') | Out-Null
if ($Ensure -eq 'Present' -and ($team.Ensure -eq 'Present'))
{
@@ -596,7 +606,11 @@ function Test-TargetResource
[Parameter()]
[System.Management.Automation.PSCredential]
- $Credential
+ $Credential,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -660,7 +674,11 @@ function Export-TargetResource
[Parameter()]
[System.Management.Automation.PSCredential]
- $Credential
+ $Credential,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' -InboundParameters $PSBoundParameters
@@ -701,6 +719,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.schema.mof
index c2a1fe5950..72270fe13c 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTeam/MSFT_TeamsTeam.schema.mof
@@ -29,5 +29,5 @@ class MSFT_TeamsTeam : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTemplatesPolicy/MSFT_TeamsTemplatesPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTemplatesPolicy/MSFT_TeamsTemplatesPolicy.psm1
index db316f81cc..8ed0268d9e 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTemplatesPolicy/MSFT_TeamsTemplatesPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTemplatesPolicy/MSFT_TeamsTemplatesPolicy.psm1
@@ -35,7 +35,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting the Teams Calling Policy {$Identity}"
@@ -92,6 +96,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -142,7 +147,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -168,6 +177,7 @@ function Set-TargetResource
$SetParameters.Remove('ApplicationId') | Out-Null
$SetParameters.Remove('TenantId') | Out-Null
$SetParameters.Remove('CertificateThumbprint') | Out-Null
+ $SetParameters.Remove('ManagedIdentity') | Out-Null
$hideTemplatesValues = @()
if ($null -ne $HiddenTemplates)
@@ -236,7 +246,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -258,7 +272,6 @@ function Test-TargetResource
Write-Verbose -Message "Target Values: $(Convert-M365DscHashtableToString -Hashtable $PSBoundParameters)"
$ValuesToCheck = $PSBoundParameters
- $ValuesToCheck.Remove('Credential') | Out-Null
$TestResult = Test-M365DSCParameterState -CurrentValues $CurrentValues `
-Source $($MyInvocation.MyCommand.Source) `
@@ -290,7 +303,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -323,6 +340,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTemplatesPolicy/MSFT_TeamsTemplatesPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTemplatesPolicy/MSFT_TeamsTemplatesPolicy.schema.mof
index 044b229f6a..ec095f5563 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTemplatesPolicy/MSFT_TeamsTemplatesPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTemplatesPolicy/MSFT_TeamsTemplatesPolicy.schema.mof
@@ -9,5 +9,5 @@ class MSFT_TeamsTemplatesPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantDialPlan/MSFT_TeamsTenantDialPlan.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantDialPlan/MSFT_TeamsTenantDialPlan.psm1
index 85f29ebd0b..3d7c71a490 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantDialPlan/MSFT_TeamsTenantDialPlan.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantDialPlan/MSFT_TeamsTenantDialPlan.psm1
@@ -50,7 +50,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Getting configuration of Teams Tenant Dial Plan'
@@ -101,6 +105,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
return $result
@@ -168,7 +173,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting configuration of Teams Guest Calling'
@@ -207,11 +216,12 @@ function Set-TargetResource
}
$NewParameters = $PSBoundParameters
- $NewParameters.Remove('Credential')
- $NewParameters.Remove('ApplicationId')
- $NewParameters.Remove('TenantId')
- $NewParameters.Remove('CertificateThumbprint')
- $NewParameters.Remove('Ensure')
+ $NewParameters.Remove('Credential') | Out-Null
+ $NewParameters.Remove('ApplicationId') | Out-Null
+ $NewParameters.Remove('TenantId') | Out-Null
+ $NewParameters.Remove('CertificateThumbprint') | Out-Null
+ $NewParameters.Remove('Ensure') | Out-Null
+ $NewParameters.Remove('ManagedIdentity') | Out-Null
$NewParameters.NormalizationRules = @{Add = $AllRules }
New-CsTenantDialPlan @NewParameters
@@ -220,9 +230,10 @@ function Set-TargetResource
{
Write-Verbose -Message "Tenant Dial Plan {$Identity} already exists. Updating it."
$SetParameters = $PSBoundParameters
- $SetParameters.Remove('Credential')
- $SetParameters.Remove('Ensure')
- $SetParameters.Remove('SimpleName')
+ $SetParameters.Remove('Credential') | Out-Null
+ $SetParameters.Remove('Ensure') | Out-Null
+ $SetParameters.Remove('SimpleName') | Out-Null
+ $SetParameters.Remove('ManagedIdentity') | Out-Null
$desiredRules = @()
foreach ($rule in $NormalizationRules)
@@ -352,7 +363,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -435,7 +450,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -468,6 +487,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$results = Get-TargetResource @params
$results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantDialPlan/MSFT_TeamsTenantDialPlan.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantDialPlan/MSFT_TeamsTenantDialPlan.schema.mof
index c9f4d44fe0..ced75f065d 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantDialPlan/MSFT_TeamsTenantDialPlan.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantDialPlan/MSFT_TeamsTenantDialPlan.schema.mof
@@ -22,5 +22,5 @@ class MSFT_TeamsTenantDialPlan : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkRegion/MSFT_TeamsTenantNetworkRegion.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkRegion/MSFT_TeamsTenantNetworkRegion.psm1
index 582fa43630..5a540e70a8 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkRegion/MSFT_TeamsTenantNetworkRegion.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkRegion/MSFT_TeamsTenantNetworkRegion.psm1
@@ -35,7 +35,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -73,6 +77,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -124,7 +129,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -235,7 +244,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -360,7 +373,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkRegion/MSFT_TeamsTenantNetworkRegion.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkRegion/MSFT_TeamsTenantNetworkRegion.schema.mof
index c7b45b11e3..8bf1381aa4 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkRegion/MSFT_TeamsTenantNetworkRegion.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkRegion/MSFT_TeamsTenantNetworkRegion.schema.mof
@@ -9,4 +9,5 @@ class MSFT_TeamsTenantNetworkRegion : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSite/MSFT_TeamsTenantNetworkSite.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSite/MSFT_TeamsTenantNetworkSite.psm1
index 68c4d63b7b..19ae116587 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSite/MSFT_TeamsTenantNetworkSite.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSite/MSFT_TeamsTenantNetworkSite.psm1
@@ -59,7 +59,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -103,6 +107,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -178,7 +183,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -313,7 +322,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -438,7 +451,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSite/MSFT_TeamsTenantNetworkSite.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSite/MSFT_TeamsTenantNetworkSite.schema.mof
index 78a87dfbe0..9eeffd07f6 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSite/MSFT_TeamsTenantNetworkSite.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSite/MSFT_TeamsTenantNetworkSite.schema.mof
@@ -15,4 +15,5 @@ class MSFT_TeamsTenantNetworkSite : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSubnet/MSFT_TeamsTenantNetworkSubnet.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSubnet/MSFT_TeamsTenantNetworkSubnet.psm1
index e662126d4d..aad8b6b03f 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSubnet/MSFT_TeamsTenantNetworkSubnet.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSubnet/MSFT_TeamsTenantNetworkSubnet.psm1
@@ -39,7 +39,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -78,6 +82,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -133,7 +138,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -248,7 +257,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -374,6 +387,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSubnet/MSFT_TeamsTenantNetworkSubnet.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSubnet/MSFT_TeamsTenantNetworkSubnet.schema.mof
index f685ed8b5e..d44c084553 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSubnet/MSFT_TeamsTenantNetworkSubnet.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantNetworkSubnet/MSFT_TeamsTenantNetworkSubnet.schema.mof
@@ -10,4 +10,5 @@ class MSFT_TeamsTenantNetworkSubnet : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantTrustedIPAddress/MSFT_TeamsTenantTrustedIPAddress.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantTrustedIPAddress/MSFT_TeamsTenantTrustedIPAddress.psm1
index a2782d3c9e..17a6d293e3 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantTrustedIPAddress/MSFT_TeamsTenantTrustedIPAddress.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantTrustedIPAddress/MSFT_TeamsTenantTrustedIPAddress.psm1
@@ -35,7 +35,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Get Teams Tenant Trusted IP Address settings'
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -75,6 +79,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -126,7 +131,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -237,7 +246,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -362,7 +375,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantTrustedIPAddress/MSFT_TeamsTenantTrustedIPAddress.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantTrustedIPAddress/MSFT_TeamsTenantTrustedIPAddress.schema.mof
index c26d6194ce..fd6fca4c41 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantTrustedIPAddress/MSFT_TeamsTenantTrustedIPAddress.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTenantTrustedIPAddress/MSFT_TeamsTenantTrustedIPAddress.schema.mof
@@ -9,4 +9,5 @@ class MSFT_TeamsTenantTrustedIPAddress : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTranslationRule/MSFT_TeamsTranslationRule.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTranslationRule/MSFT_TeamsTranslationRule.psm1
index 68ddebee03..d1766a867f 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTranslationRule/MSFT_TeamsTranslationRule.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTranslationRule/MSFT_TeamsTranslationRule.psm1
@@ -39,7 +39,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -78,6 +82,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -133,7 +138,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -248,7 +257,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -373,7 +386,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTranslationRule/MSFT_TeamsTranslationRule.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTranslationRule/MSFT_TeamsTranslationRule.schema.mof
index f925b3dfdd..d9cd30c532 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTranslationRule/MSFT_TeamsTranslationRule.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsTranslationRule/MSFT_TeamsTranslationRule.schema.mof
@@ -10,4 +10,5 @@ class MSFT_TeamsTranslationRule : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUnassignedNumberTreatment/MSFT_TeamsUnassignedNumberTreatment.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUnassignedNumberTreatment/MSFT_TeamsUnassignedNumberTreatment.psm1
index 2f1287e0b7..80356fbeaf 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUnassignedNumberTreatment/MSFT_TeamsUnassignedNumberTreatment.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUnassignedNumberTreatment/MSFT_TeamsUnassignedNumberTreatment.psm1
@@ -48,7 +48,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -89,6 +93,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -153,7 +158,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -277,7 +286,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -402,7 +415,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUnassignedNumberTreatment/MSFT_TeamsUnassignedNumberTreatment.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUnassignedNumberTreatment/MSFT_TeamsUnassignedNumberTreatment.schema.mof
index 9977bc87f7..4ba32b75ef 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUnassignedNumberTreatment/MSFT_TeamsUnassignedNumberTreatment.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUnassignedNumberTreatment/MSFT_TeamsUnassignedNumberTreatment.schema.mof
@@ -12,4 +12,5 @@ class MSFT_TeamsUnassignedNumberTreatment : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.psm1
index eb6d4351d5..01388d09ad 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.psm1
@@ -62,7 +62,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -109,6 +113,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
if (-not [System.String]::IsNullOrEmpty($policy.UpdateTimeOfDay))
{
@@ -222,6 +227,7 @@ function Set-TargetResource
$newParams.Remove('ApplicationId') | Out-Null
$newParams.Remove('TenantId') | Out-Null
$newParams.Remove('CertificateThumbprint') | Out-Null
+ $newParams.Remove('ManagedIdentity') | Out-Null
New-CsTeamsUpdateManagementPolicy @newParams | Out-Null
}
@@ -234,6 +240,7 @@ function Set-TargetResource
$setParams.Remove('ApplicationId') | Out-Null
$setParams.Remove('TenantId') | Out-Null
$setParams.Remove('CertificateThumbprint') | Out-Null
+ $setParams.Remove('ManagedIdentity') | Out-Null
Set-CsTeamsUpdateManagementPolicy @setParams | Out-Null
}
@@ -309,7 +316,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -361,7 +372,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -399,6 +414,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$result = Get-TargetResource @params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.schema.mof
index 2dc1712905..5efe8f1dbc 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpdateManagementPolicy/MSFT_TeamsUpdateManagementPolicy.schema.mof
@@ -15,4 +15,5 @@ class MSFT_TeamsUpdateManagementPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradeConfiguration/MSFT_TeamsUpgradeConfiguration.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradeConfiguration/MSFT_TeamsUpgradeConfiguration.psm1
index 74d1f38382..bbffb4d12f 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradeConfiguration/MSFT_TeamsUpgradeConfiguration.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradeConfiguration/MSFT_TeamsUpgradeConfiguration.psm1
@@ -32,7 +32,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Checking the Teams Upgrade Configuration'
@@ -66,6 +70,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -115,7 +120,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message 'Setting Teams Upgrade Configuration'
@@ -141,6 +150,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.Add("Identity", "Global")
Write-Verbose -Message "Updating with Values: $(Convert-M365DscHashtableToString -Hashtable $SetParameters)"
Set-CsTeamsUpgradeConfiguration @SetParameters
@@ -180,7 +190,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -233,7 +247,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -260,6 +278,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradeConfiguration/MSFT_TeamsUpgradeConfiguration.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradeConfiguration/MSFT_TeamsUpgradeConfiguration.schema.mof
index 2e856c7a33..eb81e91dbc 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradeConfiguration/MSFT_TeamsUpgradeConfiguration.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradeConfiguration/MSFT_TeamsUpgradeConfiguration.schema.mof
@@ -8,5 +8,5 @@ class MSFT_TeamsUpgradeConfiguration : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradePolicy/MSFT_TeamsUpgradePolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradePolicy/MSFT_TeamsUpgradePolicy.psm1
index 54e2a3962f..b6091dde22 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradePolicy/MSFT_TeamsUpgradePolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradePolicy/MSFT_TeamsUpgradePolicy.psm1
@@ -30,7 +30,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -93,6 +97,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -138,7 +143,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -196,7 +205,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -248,7 +261,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -286,6 +303,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradePolicy/MSFT_TeamsUpgradePolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradePolicy/MSFT_TeamsUpgradePolicy.schema.mof
index 0883a63c50..6ca52b5f5e 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradePolicy/MSFT_TeamsUpgradePolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUpgradePolicy/MSFT_TeamsUpgradePolicy.schema.mof
@@ -8,5 +8,5 @@ class MSFT_TeamsUpgradePolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUser/MSFT_TeamsUser.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUser/MSFT_TeamsUser.psm1
index 1e2ca71be7..4d5400c0b5 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUser/MSFT_TeamsUser.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUser/MSFT_TeamsUser.psm1
@@ -36,7 +36,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting configuration of member $User to Team $TeamName"
@@ -98,6 +102,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -149,7 +154,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Setting configuration of member $User to Team $TeamName"
@@ -180,6 +189,7 @@ function Set-TargetResource
$CurrentParameters.Remove('TenantId') | Out-Null
$CurrentParameters.Remove('CertificateThumbprint') | Out-Null
$CurrentParameters.Remove('Ensure') | Out-Null
+ $CurrentParameters.Remove('ManagedIdentity') | Out-Null
if ($Ensure -eq 'Present')
{
@@ -236,7 +246,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -294,7 +308,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$InformationPreference = 'Continue'
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' -InboundParameters $PSBoundParameters
@@ -349,6 +367,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$results = Get-TargetResource @getParams
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUser/MSFT_TeamsUser.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUser/MSFT_TeamsUser.schema.mof
index c410a721a6..438ae7d3f8 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUser/MSFT_TeamsUser.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUser/MSFT_TeamsUser.schema.mof
@@ -9,5 +9,5 @@ class MSFT_TeamsUser : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUserCallingSettings/MSFT_TeamsUserCallingSettings.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUserCallingSettings/MSFT_TeamsUserCallingSettings.schema.mof
index d4cfae9d7a..86a7b83d7b 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUserCallingSettings/MSFT_TeamsUserCallingSettings.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUserCallingSettings/MSFT_TeamsUserCallingSettings.schema.mof
@@ -15,4 +15,5 @@ class MSFT_TeamsUserCallingSettings : OMI_BaseResource
[Write, Description("The forwarding target. Supported types of values are ObjectId's, SIP addresses and phone numbers. For phone numbers we support the following types of formats: E.164 (+12065551234 or +1206555000;ext=1234) or non-E.164 like 1234.")] String ForwardingTarget;
[Write, Description("Present ensures the policy exists, absent ensures it is removed."), ValueMap{"Present","Absent"}, Values{"Present","Absent"}] String Ensure;
[Required, Description("Credentials of the Teams Global Admin."), EmbeddedInstance("MSFT_Credential")] String Credential;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUserPolicyAssignment/MSFT_TeamsUserPolicyAssignment.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUserPolicyAssignment/MSFT_TeamsUserPolicyAssignment.psm1
index 41cce1ab63..d734e595f5 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUserPolicyAssignment/MSFT_TeamsUserPolicyAssignment.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUserPolicyAssignment/MSFT_TeamsUserPolicyAssignment.psm1
@@ -110,7 +110,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' -InboundParameters $PSBoundParameters
@@ -164,6 +168,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -289,7 +294,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -543,7 +552,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -593,7 +606,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$InformationPreference = 'Continue'
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' -InboundParameters $PSBoundParameters
@@ -638,6 +655,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$results = Get-TargetResource @getParams
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUserPolicyAssignment/MSFT_TeamsUserPolicyAssignment.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUserPolicyAssignment/MSFT_TeamsUserPolicyAssignment.schema.mof
index 16ade2b961..55e494f727 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUserPolicyAssignment/MSFT_TeamsUserPolicyAssignment.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsUserPolicyAssignment/MSFT_TeamsUserPolicyAssignment.schema.mof
@@ -28,5 +28,5 @@ class MSFT_TeamsUserPolicyAssignment : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVdiPolicy/MSFT_TeamsVdiPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVdiPolicy/MSFT_TeamsVdiPolicy.psm1
index 41e02cfed0..1fc10c12d8 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVdiPolicy/MSFT_TeamsVdiPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVdiPolicy/MSFT_TeamsVdiPolicy.psm1
@@ -35,7 +35,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -73,6 +77,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -124,7 +129,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -235,7 +244,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -360,7 +373,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVdiPolicy/MSFT_TeamsVdiPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVdiPolicy/MSFT_TeamsVdiPolicy.schema.mof
index 1b528e8048..5eefcf581c 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVdiPolicy/MSFT_TeamsVdiPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVdiPolicy/MSFT_TeamsVdiPolicy.schema.mof
@@ -9,4 +9,5 @@ class MSFT_TeamsVdiPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoute/MSFT_TeamsVoiceRoute.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoute/MSFT_TeamsVoiceRoute.psm1
index c2699948a8..0e93d5c877 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoute/MSFT_TeamsVoiceRoute.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoute/MSFT_TeamsVoiceRoute.psm1
@@ -47,7 +47,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting the Voice Route {$Identity}"
@@ -74,6 +78,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
try
{
@@ -97,6 +102,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -159,7 +165,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -220,6 +230,7 @@ function Set-TargetResource
$SetParameters.Remove('ApplicationId') | Out-Null
$SetParameters.Remove('TenantId') | Out-Null
$SetParameters.Remove('CertificateThumbprint') | Out-Null
+ $SetParameters.Remove('ManagedIdentity') | Out-Null
if ($Ensure -eq 'Present' -and $CurrentValues.Ensure -eq 'Absent')
{
@@ -291,7 +302,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -344,7 +359,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$InformationPreference = 'Continue'
@@ -379,6 +398,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoute/MSFT_TeamsVoiceRoute.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoute/MSFT_TeamsVoiceRoute.schema.mof
index c0a6c75c3c..29611fefd0 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoute/MSFT_TeamsVoiceRoute.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoute/MSFT_TeamsVoiceRoute.schema.mof
@@ -12,5 +12,5 @@ class MSFT_TeamsVoiceRoute : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoutingPolicy/MSFT_TeamsVoiceRoutingPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoutingPolicy/MSFT_TeamsVoiceRoutingPolicy.psm1
index 47d1e852e3..46d6aee02a 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoutingPolicy/MSFT_TeamsVoiceRoutingPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoutingPolicy/MSFT_TeamsVoiceRoutingPolicy.psm1
@@ -35,7 +35,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
Write-Verbose -Message "Getting the Voice Routing Policy {$Identity}"
@@ -78,6 +82,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
}
catch
@@ -128,7 +133,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
# Validate that the selected PSTN usages exist in the environment
@@ -173,6 +182,7 @@ function Set-TargetResource
$SetParameters.Remove('ApplicationId') | Out-Null
$SetParameters.Remove('TenantId') | Out-Null
$SetParameters.Remove('CertificateThumbprint') | Out-Null
+ $SetParameters.Remove('ManagedIdentity') | Out-Null
if ($Ensure -eq 'Present' -and $CurrentValues.Ensure -eq 'Absent')
{
@@ -232,7 +242,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
Confirm-M365DSCDependencies
@@ -285,7 +299,11 @@ function Export-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
$ConnectionMode = New-M365DSCConnection -Workload 'MicrosoftTeams' `
-InboundParameters $PSBoundParameters
@@ -318,6 +336,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
$Results = Update-M365DSCExportAuthenticationResults -ConnectionMode $ConnectionMode `
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoutingPolicy/MSFT_TeamsVoiceRoutingPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoutingPolicy/MSFT_TeamsVoiceRoutingPolicy.schema.mof
index c99fb79939..d0821a50c5 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoutingPolicy/MSFT_TeamsVoiceRoutingPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsVoiceRoutingPolicy/MSFT_TeamsVoiceRoutingPolicy.schema.mof
@@ -9,5 +9,5 @@ class MSFT_TeamsVoiceRoutingPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
-
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsWorkloadPolicy/MSFT_TeamsWorkloadPolicy.psm1 b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsWorkloadPolicy/MSFT_TeamsWorkloadPolicy.psm1
index d205cf93fd..a19d66bff3 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsWorkloadPolicy/MSFT_TeamsWorkloadPolicy.psm1
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsWorkloadPolicy/MSFT_TeamsWorkloadPolicy.psm1
@@ -55,7 +55,11 @@ function Get-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -98,6 +102,7 @@ function Get-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
return [System.Collections.Hashtable] $results
}
@@ -169,7 +174,11 @@ function Set-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
New-M365DSCConnection -Workload 'MicrosoftTeams' `
@@ -300,7 +309,11 @@ function Test-TargetResource
[Parameter()]
[System.String]
- $CertificateThumbprint
+ $CertificateThumbprint,
+
+ [Parameter()]
+ [Switch]
+ $ManagedIdentity
)
#Ensure the proper dependencies are installed in the current environment.
@@ -425,7 +438,7 @@ function Export-TargetResource
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
-
+ ManagedIdentity = $ManagedIdentity.IsPresent
}
$Results = Get-TargetResource @Params
diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsWorkloadPolicy/MSFT_TeamsWorkloadPolicy.schema.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsWorkloadPolicy/MSFT_TeamsWorkloadPolicy.schema.mof
index 935bc2e71f..147d08cdcf 100644
--- a/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsWorkloadPolicy/MSFT_TeamsWorkloadPolicy.schema.mof
+++ b/Modules/Microsoft365DSC/DSCResources/MSFT_TeamsWorkloadPolicy/MSFT_TeamsWorkloadPolicy.schema.mof
@@ -14,4 +14,5 @@ class MSFT_TeamsWorkloadPolicy : OMI_BaseResource
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
[Write, Description("Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication.")] String CertificateThumbprint;
+ [Write, Description("Managed ID being used for authentication.")] Boolean ManagedIdentity;
};
diff --git a/Modules/Microsoft365DSC/Dependencies/Manifest.psd1 b/Modules/Microsoft365DSC/Dependencies/Manifest.psd1
index ed504505f0..9beaea7c74 100644
--- a/Modules/Microsoft365DSC/Dependencies/Manifest.psd1
+++ b/Modules/Microsoft365DSC/Dependencies/Manifest.psd1
@@ -86,7 +86,7 @@
},
@{
ModuleName = "MSCloudLoginAssistant"
- RequiredVersion = "1.1.7"
+ RequiredVersion = "1.1.9"
},
@{
ModuleName = 'PnP.PowerShell'
diff --git a/docs/docs/user-guide/get-started/authentication-and-permissions.md b/docs/docs/user-guide/get-started/authentication-and-permissions.md
index fed5f1ce6c..e61a750122 100644
--- a/docs/docs/user-guide/get-started/authentication-and-permissions.md
+++ b/docs/docs/user-guide/get-started/authentication-and-permissions.md
@@ -31,7 +31,7 @@ The following table provides an overview of what authentication methods are supp
| *Planner** | Microsoft.Graph.Authentication
(Connect-MgGraph) | ![Check](../../Images/check.png) | ![Check](../../Images/check.png) | ![Cross](../../Images/cross.png) | ![Check](../../Images/check.png) | ![Cross](../../Images/check.png) |
| *Security & Compliance Center* | ExchangeOnlineManagement
(Connect-IPPSSession) | ![Check](../../Images/check.png) | ![Check](../../Images/check.png) | ![Check](../../Images/check.png) | ![Cross](../../Images/cross.png) | ![Cross](../../Images/cross.png) |
| *SharePoint Online* | PnP.PowerShell
(Connect-PnPOnline) | ![Check](../../Images/check.png) | ![Check](../../Images/check.png) | ![Check](../../Images/check.png) | ![Check](../../Images/check.png) | ![Cross](../../Images/check.png) |
-| *Teams* | MicrosoftTeams
(Connect-MicrosoftTeams) | ![Check](../../Images/check.png) | ![Check](../../Images/check.png) | ![Cross](../../Images/cross.png) | ![Cross](../../Images/cross.png) | ![Cross](../../Images/cross.png) |
+| *Teams* | MicrosoftTeams
(Connect-MicrosoftTeams) | ![Check](../../Images/check.png) | ![Check](../../Images/check.png) | ![Cross](../../Images/cross.png) | ![Cross](../../Images/cross.png) | ![Check](../../Images/check.png) |
> ![Check](../../Images/check.png) = Supported / ![Cross](../../Images/cross.png) = Not supported