Skip to content

Commit

Permalink
Merge pull request #4254 from microsoft/Dev
Browse files Browse the repository at this point in the history
Release 1.24.124.1
  • Loading branch information
NikCharlebois authored Jan 25, 2024
2 parents a2d27b7 + f9f6a82 commit 38cb8cf
Show file tree
Hide file tree
Showing 354 changed files with 9,234 additions and 2,633 deletions.
205 changes: 205 additions & 0 deletions .github/workflows/Global - Integration - EXO.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,205 @@
name: Global - Integration - EXO
on: [push]

jobs:
Integration-Global-EXO:
# The type of runner that the job will run on
runs-on: windows-latest

# Only when run from the main repo
if: github.repository == 'microsoft/Microsoft365DSC'

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Install Microsoft365DSC
shell: powershell
run: |
winrm quickconfig -force
$source = "./Modules/Microsoft365DSC/"
$destination = "C:\Program Files\WindowsPowerShell\Modules"
Copy-Item -Path $source -Recurse -Destination $destination -Container -Force
Update-M365DSCDependencies
- name: Configure Environment
shell: powershell
run: |
Set-ExecutionPolicy Unrestricted -Force
Get-ChildItem "C:\Program Files\WindowsPowerShell\Modules" -Recurse | Unblock-File
Set-M365DSCTelemetryOption -Enabled $false
Set-Item -Path WSMan:\localhost\MaxEnvelopeSizekb -Value 99999
- name: Generate {Create} Integration Tests from Examples
shell: powershell
run: |
Import-Module './Tests/Integration/M365DSCTestEngine.psm1'
New-M365DSCIntegrationTest -Workload EXO -Step '1-Create'
- name: Commit {Create} Integration Tests
shell: powershell
run: |
git config --local user.email "[email protected]"
git config --local user.name "NikCharlebois"
git add D:/a/Microsoft365DSC/Microsoft365DSC/Tests/Integration/*
git pull
git commit -m "Updated {Create} EXO Integration Tests"
git push
$SHA = git rev-parse HEAD
echo "commitid=$SHA" >> $env:GITHUB_OUTPUT
- name: Run {Create} Integration Tests
shell: powershell
env:
INTEGRATION_USERNAME: ${{ secrets.INTEGRATION_USERNAME }}
INTEGRATION_PASSWORD: ${{ secrets.INTEGRATION_PASSWORD }}
run: |
$CredPassword = ConvertTo-SecureString $env:INTEGRATION_PASSWORD -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential ($env:INTEGRATION_USERNAME, $CredPassword)
try
{
& .\Tests\Integration\Microsoft365DSC\M365DSCIntegration.EXO.Create.Tests.ps1 -Credential $Credential
}
catch
{
throw $_
}
try
{
$Result = Test-DSCConfiguration -Detailed -Verbose -ErrorAction Stop
}
catch
{
throw $_
}
Write-Host ""
if ($Result.InDesiredState -eq $false)
{
Write-Host -Message "Resources below are not in the Desired State:"
foreach ($Resource in $Result.ResourcesNotInDesiredState)
{
Write-Host $Resource.InstanceName
}
throw "Could not validate that the Tenant is in the Desired State"
}
else
{
Write-Host "All resources in the Tenant are in the Desired State"
}
- name: Generate {Update} Integration Tests from Examples
shell: powershell
run: |
Import-Module './Tests/Integration/M365DSCTestEngine.psm1'
New-M365DSCIntegrationTest -Workload EXO -Step '2-Update'
- name: Commit {Update} Integration Tests
shell: powershell
run: |
git config --local user.email "[email protected]"
git config --local user.name "NikCharlebois"
git add D:/a/Microsoft365DSC/Microsoft365DSC/Tests/Integration/*
git pull
git commit -m "Updated {Update} EXO Integration Tests"
git push
$SHA = git rev-parse HEAD
echo "commitid=$SHA" >> $env:GITHUB_OUTPUT
- name: Run {Update} Integration Tests
shell: powershell
env:
INTEGRATION_USERNAME: ${{ secrets.INTEGRATION_USERNAME }}
INTEGRATION_PASSWORD: ${{ secrets.INTEGRATION_PASSWORD }}
run: |
$CredPassword = ConvertTo-SecureString $env:INTEGRATION_PASSWORD -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential ($env:INTEGRATION_USERNAME, $CredPassword)
try
{
& .\Tests\Integration\Microsoft365DSC\M365DSCIntegration.EXO.Update.Tests.ps1 -Credential $Credential
}
catch
{
throw $_
}
try
{
$Result = Test-DSCConfiguration -Detailed -Verbose -ErrorAction Stop
}
catch
{
throw $_
}
Write-Host ""
if ($Result.InDesiredState -eq $false)
{
Write-Host -Message "Resources below are not in the Desired State:"
foreach ($Resource in $Result.ResourcesNotInDesiredState)
{
Write-Host $Resource.InstanceName
}
throw "Could not validate that the Tenant is in the Desired State"
}
else
{
Write-Host "All resources in the Tenant are in the Desired State"
}
- name: Generate {Remove} Integration Tests from Examples
shell: powershell
run: |
Import-Module './Tests/Integration/M365DSCTestEngine.psm1'
New-M365DSCIntegrationTest -Workload EXO -Step '3-Remove'
- name: Commit {Remove} Integration Tests
shell: powershell
run: |
git config --local user.email "[email protected]"
git config --local user.name "NikCharlebois"
git add D:/a/Microsoft365DSC/Microsoft365DSC/Tests/Integration/*
git pull
git commit -m "Updated {Update} EXO Integration Tests"
git push
$SHA = git rev-parse HEAD
echo "commitid=$SHA" >> $env:GITHUB_OUTPUT
- name: Run {Remove} Integration Tests
shell: powershell
env:
INTEGRATION_USERNAME: ${{ secrets.INTEGRATION_USERNAME }}
INTEGRATION_PASSWORD: ${{ secrets.INTEGRATION_PASSWORD }}
run: |
$CredPassword = ConvertTo-SecureString $env:INTEGRATION_PASSWORD -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential ($env:INTEGRATION_USERNAME, $CredPassword)
try
{
& .\Tests\Integration\Microsoft365DSC\M365DSCIntegration.EXO.Remove.Tests.ps1 -Credential $Credential
}
catch
{
throw $_
}
try
{
$Result = Test-DSCConfiguration -Detailed -Verbose -ErrorAction Stop
}
catch
{
throw $_
}
Write-Host ""
if ($Result.InDesiredState -eq $false)
{
Write-Host -Message "Resources below are not in the Desired State:"
foreach ($Resource in $Result.ResourcesNotInDesiredState)
{
Write-Host $Resource.InstanceName
}
throw "Could not validate that the Tenant is in the Desired State"
}
else
{
Write-Host "All resources in the Tenant are in the Desired State"
}
92 changes: 91 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,92 @@
# Change log for Microsoft365DSC

# 1.24.124.1

* AADAuthenticationMethodPolicyAuthenticator
* Remove the logic path to create a new instance in favor of the update flow.
* AADAuthenticationMethodPolicyEmail
* Remove the logic path to create a new instance in favor of the update flow.
* AADAuthenticationMethodPolicyFido2
* Remove the logic path to create a new instance in favor of the update flow.
* AADAuthenticationMethodPolicySms
* Remove the logic path to create a new instance in favor of the update flow.
* AADAuthenticationMethodPolicySoftware
* Remove the logic path to create a new instance in favor of the update flow.
* AADAuthenticationMethodPolicyTemporary
* Remove the logic path to create a new instance in favor of the update flow.
* AADAuthenticationMethodPolicyVoice
* Remove the logic path to create a new instance in favor of the update flow.
* AADAuthenticationMethodPolicyX509
* Remove the logic path to create a new instance in favor of the update flow.
* AADConditionalAccessPolicy
* Fix issue when not all parameters are specified
FIXES [[#4202](https://github.com/microsoft/Microsoft365DSC/issues/4202)]
* AADCrossTenantAccessPolicy
* Removed the ability to specify a value of Absent for the Ensure property.
* AADCrossTenantAccessPolicyCOnfigurationDefault
* Removed the ability to specify a value of Absent for the Ensure property.
* AADGroup
* Changed Set logic to restore groups from the deleted list if a match by
DisplayName is found.
* EXOActiveSyncDeviceAccessRule
* Changed the way Identity is determined by using a combination of the
QueryString and Characteristic parameters.
* EXOAddressList
* Fixed an issue trying to create a new instance when DisplayName is empty.
* EXOApplicationAccessPolicy
* Changed the logic to retrieve existing instances based on Scope.
* EXODataClassification
* DEPRECATED Resource.
* SCAutoSensitivityLabelRule
* Correct export indentation, which caused an issue with report conversion to JSON.
FIXES [[#4240](https://github.com/microsoft/Microsoft365DSC/issues/4240)]
* SPOSharingSettings
* Fixed an Issue where the MySiteSharingCapability could be returned as an
empty string instead of a null value from the Get method.
* TeamsAppPermissionPolicy, TeamsAppSetupPolicy, TeamsCallHoldPolicy,
TeamsIPPhonePolicy, TeamsMobilityPolicy, TeamsNetworkRoamingPolicy,
TeamsShiftsPolicy, TeamsTenantNetworkRegion, TeamsTenantNetworkSite,
TeamsTenantNetworkSubnet, TeamsTenantTrustedIPAddress, TeamsTranslationRule,
TeamsUnassignedNumberTreatment, TeamsVdiPolicy, TeamsWorkloadPolicy
* Fix condition when resource is absent
FIXES [#4227](https://github.com/microsoft/Microsoft365DSC/issues/4227)
* TeamsAudioConferencingPolicy
* Fix condition in Test-TargetResource when resource is absent
FIXES [#4215](https://github.com/microsoft/Microsoft365DSC/issues/4215)
* TeamsCallParkPolicy
* Fix condition in Test-TargetResource when resource is absent
FIXES [#4210](https://github.com/microsoft/Microsoft365DSC/issues/4210)
* TeamsComplianceRecordingPolicy
* Fix condition in Test-TargetResource when resource is absent
FIXES [#4212](https://github.com/microsoft/Microsoft365DSC/issues/4212)
* TeamsCortanaPolicy
* Fix condition in Test-TargetResource when resource is absent
FIXES [#4208](https://github.com/microsoft/Microsoft365DSC/issues/4208)
* TeamsEnhancedEncryptionPolicy
* Fix condition when resource is absent
FIXES [#4221](https://github.com/microsoft/Microsoft365DSC/issues/4221)
* TeamsEventsPolicy
* Add missing attributes
FIXES [#4242](https://github.com/microsoft/Microsoft365DSC/issues/4242)
* TeamsFeedbackPolicy
* Fix condition when resource is absent
FIXES [#4223](https://github.com/microsoft/Microsoft365DSC/issues/4223)
* TeamsFilesPolicy
* Fix condition when resource is absent
FIXES [#4225](https://github.com/microsoft/Microsoft365DSC/issues/4225)
* TeamsGroupPolicyAssignment
* Ensure assignment can still be created if GroupId is not found by trying to
search by DisplayName afterwards
FIXES [#4248](https://github.com/microsoft/Microsoft365DSC/issues/4248)
* TeamsMeetingBroadcastPolicy
* Fix deletion of resource
FIXES [#4231](https://github.com/microsoft/Microsoft365DSC/issues/4231)
* TeamsMobilityPolicy
* Validate string set on parameter MobileDialerPreference
* DEPENDENCIES
* Updated Microsoft.Graph dependencies to version 2.12.0.
* Updated MicrosoftTeams dependencies to version 5.9.0.

# 1.24.117.1

* AADAdministrativeUnit
Expand All @@ -20,11 +107,14 @@
* Removed the ability to specify a value of Absent for the Ensure property.
* EXOAntiPhishPolicy
* Add support for HonorDmarcPolicy parameter
FIXES [[#4138](https://github.com/microsoft/Microsoft365DSC/issues/4138)]
FIXES [#4138](https://github.com/microsoft/Microsoft365DSC/issues/4138)
* IntuneDeviceConfigurationPolicyMacOS
* Fix CIM instances comparison in Test-TargetResource and export
CompliantAppsList with the correct type
FIXES [#4144](https://github.com/microsoft/Microsoft365DSC/issues/4144)
* TeamsEmergencyCallRoutingPolicy
* Fix deletion of resource
FIXES [#4219](https://github.com/microsoft/Microsoft365DSC/issues/4219)
* DEPENDENCIES
* Updated Microsoft.PowerApps.Administration.PowerShell to version 2.0.178.
* Updated MSCloudLoginAssistant to version 1.1.7.
Expand Down
Loading

0 comments on commit 38cb8cf

Please sign in to comment.