-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update-M365DSCModule, Update-M365DSCDependencies: Make Scope available #3621
Comments
…ncies: Make Scope available microsoft#3621 Co-authored-by: Thomas Subotitsch @tbone4711
Please keep in mind: |
@ykuijs Especially when you look at automation that uses DSC to provision resources with parameters, you do not want to run it in admin context, as it is simply not required: ....
$groupParams = @{
Name = 'AADGroup'
Property = @{
Description = $json.description
DisplayName = $DisplayName
Ensure = ($json.requestType -notlike "Delete*")? ("Present") : ("Absent")
Members = $groupMembers
SecurityEnabled = (!$mail)
MailEnabled = ($mail) ? ($true) : ($false)
MailNickname = $mail ? $mail.Split("@")[0]: "00000000-0000-0000-0000-000000000000"
ApplicationId = $env:APPREGID
TenantId = $env:AzureTenant
CertificateThumbprint = $thumbprint
}
ModuleName = 'Microsoft365DSC'
}
$state = Invoke-DscResource @groupParams -Method Test
if (-not $state.InDesiredState) {
Invoke-DscResource @groupParams -Method Set | Out-Null
}
.... |
…microsoft#3621 update changelog Co-authored-by: Thomas Subotitsch @tbone4711
#3621: Dependencies Make Scope available
Description of the issue
The user might not be able to install modules as administrator, hence it would be wise to enable the option to specify the Scope:
Instead of:
Use:
Microsoft 365 DSC Version
V1.23.823.1
Which workloads are affected
other
The DSC configuration
not relevant, it is a problem with the module dependency update
Verbose logs showing the problem
Import-Module reversedsc
subotitsch ~\Documents\GIT\service-request-automation\feature feature/ITOPSCONFI-2791-cloud-only-user-workflow Update-M365DSCModule
Scanning Dependencies [Processing ]
Could not update or import {Microsoft.Graph.Beta.DeviceManagement}
Error-Mesage: Cannot update the dependencies for Microsoft365DSC. You need to run this command as a local administrator.
Scanning Dependencies [Processing ]
Could not update or import {Microsoft.Graph.Beta.Devices.CorporateManagement}
Error-Mesage: Cannot update the dependencies for Microsoft365DSC. You need to run this command as a local administrator.
Scanning Dependencies [Processing ]
Could not update or import {Microsoft.Graph.Beta.DeviceManagement.Administration}
Error-Mesage: Cannot update the dependencies for Microsoft365DSC. You need to run this command as a local administrator.
Scanning Dependencies [Processing ]
Could not update or import {Microsoft.Graph.Beta.DeviceManagement.Enrollment}
Error-Mesage: Cannot update the dependencies for Microsoft365DSC. You need to run this command as a local administrator.
Scanning Dependencies [Processing ]
Could not update or import {Microsoft.Graph.Beta.Identity.DirectoryManagement}
Error-Mesage: Cannot update the dependencies for Microsoft365DSC. You need to run this command as a local administrator.
Scanning Dependencies [Processing ]
Could not update or import {Microsoft.Graph.Beta.Identity.Governance}
Error-Mesage: Cannot update the dependencies for Microsoft365DSC. You need to run this command as a local administrator.
Scanning Dependencies [Processing ]
Could not update or import {Microsoft.Graph.Beta.Identity.SignIns}
Error-Mesage: Cannot update the dependencies for Microsoft365DSC. You need to run this command as a local administrator.
Scanning Dependencies [Processing ]
Could not update or import {Microsoft.Graph.Beta.Teams}
Error-Mesage: Cannot update the dependencies for Microsoft365DSC. You need to run this command as a local administrator.
Scanning Dependencies [Processing ]
Could not update or import {Microsoft.Graph.Beta.DirectoryObjects}
Error-Mesage: Cannot update the dependencies for Microsoft365DSC. You need to run this command as a local administrator.
Scanning Dependencies [Processing ]
Could not update or import {PnP.PowerShell}
Error-Mesage: Cannot update the dependencies for Microsoft365DSC. You need to run this command as a local administrator.
Scanning Dependencies [Processing ]
Could not update or import {ReverseDSC}
Error-Mesage: Cannot update the dependencies for Microsoft365DSC. You need to run this command as a local administrator.
Uninstalling PnP.PowerShell Version {2.2.0}
Scanning Dependencies [Processing ]
Uninstalling ReverseDSC Version {2.0.0.18}
Scanning Dependencies [Processing ]
Checking Microsoft.Graph.Authentication
Scanning Dependencies [Processing ]
Uninstalling Microsoft.Graph.Authentication version {2.1.0}
Scanning Dependencies [Processing ]
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: