Skip to content

Commit

Permalink
Fixing #5602
Browse files Browse the repository at this point in the history
  • Loading branch information
ykuijs committed Jan 17, 2025
1 parent a59a6d2 commit 724d535
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* FIXES [#5549](https://github.com/microsoft/Microsoft365DSC/issues/5549)
* AADDeviceRegistrationPolicy
* Fixes an error when trying to disable AAD join.
* AADRoleSetting
* Fixed issue where missing settings object for a role caused errors.
FIXES [#5602](https://github.com/microsoft/Microsoft365DSC/issues/5602)
* FabricAdminTenantSettings
* Added support for the AllowGetOneLakeUDK, AllowMountDfCreation, AllowOneLakeUDK,
ArtifactOrgAppPreview properties.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ function Get-TargetResource
}

#get Policyrule
$role = Get-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $Policy.Policyid
$role = Get-MgBetaPolicyRoleManagementPolicyRule -UnifiedRoleManagementPolicyId $Policy.Policyid -ErrorAction SilentlyContinue

$DisplayName = $RoleDefinition.DisplayName
$ActivationMaxDuration = ($role | Where-Object { $_.Id -eq 'Expiration_EndUser_Assignment' }).AdditionalProperties.maximumDuration
Expand Down

0 comments on commit 724d535

Please sign in to comment.