Skip to content

Commit

Permalink
Merge branch 'Dev' of github.com:swisscom/Microsoft365DSC into O365Or…
Browse files Browse the repository at this point in the history
…gSettings-fix-parameter-defaults-to-false-if-not-specified
  • Loading branch information
Alex Floca committed Jun 21, 2024
2 parents 927f4cf + 1a2176b commit e6f51ff
Show file tree
Hide file tree
Showing 343 changed files with 3,769 additions and 769 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/PublishGitHubPages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Generate Resources & Deploy GitHub Pages
on:
push:
branches:
- master
- Master
- Dev
jobs:
GenerateResource:
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
needs: GenerateResource
runs-on: ubuntu-latest

permissions:
permissions:
contents: write
pages: write

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/PublishToGallery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish to PowerShell Gallery
on:
push:
branches:
- master
- Master

jobs:
PublishToGallery:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/website-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push]

jobs:
build:
if: github.repository == 'microsoft/Microsoft365DSC' && github.event.ref == 'refs/heads/master'
if: github.repository == 'microsoft/Microsoft365DSC' && github.event.ref == 'refs/heads/Master'
runs-on: ubuntu-latest
environment:
name: PROD
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
path: ${{ github.workspace }}/generator/build

deploy_prod:
if: github.repository == 'microsoft/Microsoft365DSC' && github.event.ref == 'refs/heads/master'
if: github.repository == 'microsoft/Microsoft365DSC' && github.event.ref == 'refs/heads/Master'
runs-on: ubuntu-latest
environment:
name: PROD
Expand Down
31 changes: 28 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,29 @@
* O365OrgSettings
* FIXES [#4741](https://github.com/microsoft/Microsoft365DSC/issues/4741)

# 1.24.619.1

* SCDLPComplianceRule
* Fix #4259 and #3845
* TeamsM365App
* Initial release.
* DEPENDENCIES
* Updated MicrosoftTeams to version 6.4.0.
* MISC
* Improved telemetry around Export sizes.

# 1.24.612.1

* IntuneAppConfigurationDevicePolicy
* Add conversion from `payloadJson` to actual JSON.
* SPOTenantSettings
* Connect to Graph before Sharepoint Online.
FIXES [#4746](https://github.com/microsoft/Microsoft365DSC/issues/4746)
* TeamsMeetingPolicy
* Updated the allowed values for the TeamsCameraFarEndTPTXZmode property.
* M365DSCResourceGenerator
* Fix formatting and missing escape character in Resource Generator

# 1.24.605.1

* AADAuthenticationFlowPolicy
Expand All @@ -19,6 +42,8 @@
* M365DSCDRGUtil
* Add multiple commands for Intune policies that use the settings catalog.
* Improve comparison of Intune assignments in `Compare-M365DSCIntunePolicyAssignment`
* TeamsMeetingPolicy
* Updated the allowed values for the TeamsCameraFarEndTPTXZmode property.
* DEPENDENCIES
* Updated MSCloudLoginAssistant to version 1.1.17.
* Updated ReverseDSC to version 2.0.0.20.
Expand Down Expand Up @@ -54,13 +79,13 @@

* IntuneDeviceConfigurationPlatformScriptWindows
* Initial Release
FIXES [#4157](https://github.com/microsoft/Microsoft365DSC/issues/4157)
FIXES [#4157](https://github.com/microsoft/Microsoft365DSC/issues/4157)
* IntuneDeviceConfigurationPlatformScriptMacOS
* Initial Release
FIXES [#4157](https://github.com/microsoft/Microsoft365DSC/issues/4157)
FIXES [#4157](https://github.com/microsoft/Microsoft365DSC/issues/4157)
* IntuneDeviceEnrollmentPlatformRestriction
* Fix missing export of the default policy
FIXES [#4694](https://github.com/microsoft/Microsoft365DSC/issues/4694)
FIXES [#4694](https://github.com/microsoft/Microsoft365DSC/issues/4694)
* IntuneDeviceEnrollmentStatusPageWindows10
* Return all authentication methods when retrieving the policies otherwise
it may fail deducing the OrganizationName via TenantId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id
if (-not [String]::IsNullOrEmpty($config.displayName))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ function Get-TargetResource
$nullResult.Ensure = 'Absent'
try
{

$getValue = $null
#region resource generator code
if (-not [string]::IsNullOrEmpty($Id))
Expand Down Expand Up @@ -1069,6 +1068,11 @@ function Export-TargetResource
}
foreach ($config in $Script:exportedInstances)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id
if (-not [String]::IsNullOrEmpty($config.displayName))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,11 @@ function Export-TargetResource
[array] $Script:exportedInstances = Get-MgApplication -Filter $Filter -All -ErrorAction Stop
foreach ($AADApp in $Script:exportedInstances)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

Write-Host " |---[$i/$($Script:exportedInstances.Count)] $($AADApp.DisplayName)" -NoNewline
$Params = @{
ApplicationId = $ApplicationId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id

Write-Host " |---[$i/$($getValue.Count)] $displayedKey" -NoNewline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id + " - " + $config.DisplayName

Write-Host " |---[$i/$($getValue.Count)] $displayedKey" -NoNewline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,11 @@ function Export-TargetResource
$dscContent = ''
try
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$Params = @{
IsSingleInstance = 'Yes'
Credential = $Credential
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id
if (-not [String]::IsNullOrEmpty($config.displayName))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id
if (-not [String]::IsNullOrEmpty($config.displayName))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id

Write-Host " |---[$i/$($getValue.Count)] $displayedKey" -NoNewline
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id
Write-Host " |---[$i/$($getValue.Count)] $displayedKey" -NoNewline
$params = @{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id
Write-Host " |---[$i/$($getValue.Count)] $displayedKey" -NoNewline
$params = @{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id
Write-Host " |---[$i/$($getValue.Count)] $displayedKey" -NoNewline
$params = @{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id
if (-not [String]::IsNullOrEmpty($config.displayName))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id
Write-Host " |---[$i/$($getValue.Count)] $displayedKey" -NoNewline
$params = @{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id
Write-Host " |---[$i/$($getValue.Count)] $displayedKey" -NoNewline
$params = @{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.Id
if (-not [String]::IsNullOrEmpty($config.displayName))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,10 @@ function Export-TargetResource

try
{
$dscContent = ''
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$params = @{
IsSingleInstance = 'Yes'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2051,6 +2051,11 @@ function Export-TargetResource
Write-Host "`r`n" -NoNewline
foreach ($Policy in $Policies)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

Write-Host " |---[$i/$($Policies.Count)] $($Policy.DisplayName)" -NoNewline
$Params = @{
DisplayName = $Policy.DisplayName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,11 @@ function Export-TargetResource

try
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$dscContent = ''
$params = @{
IsSingleInstance = 'Yes'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,11 @@ function Export-TargetResource

try
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$dscContent = ''
$Params = @{
IsSingleInstance = 'Yes'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,11 @@ function Export-TargetResource
Write-Host "`r`n" -NoNewline
foreach ($entry in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

Write-Host " |---[$i/$($getValue.Count)] $($entry.TenantId)" -NoNewline
$Params = @{
PartnerTenantId = $entry.TenantId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.id
if (-not [String]::IsNullOrEmpty($config.displayName))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,11 @@ function Export-TargetResource
}
foreach ($config in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$displayedKey = $config.id
if (-not [String]::IsNullOrEmpty($config.displayName))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,11 @@ function Export-TargetResource

foreach ($catalogId in $getValue)
{
if ($null -ne $Global:M365DSCExportResourceInstancesCount)
{
$Global:M365DSCExportResourceInstancesCount++
}

$config = Get-MgBetaEntitlementManagementAccessPackageCatalog -AccessPackageCatalogId $catalogId
$displayedKey = $config.id
if (-not [String]::IsNullOrEmpty($config.displayName))
Expand Down
Loading

0 comments on commit e6f51ff

Please sign in to comment.