Comments (5)
Looks like dependencies will at least be updated soonish but yeah, mixing and matching is problematic. if you for example use the Microsoft.Graph.Sites Module module in 2.16 and run the Uninstall-M365DSCOutdatedDependencies it will kill dependencies for the module since it relies on the Microsoft.Graph.Authentication being the same version (2.16) where as M365DSC uses 2.15.
from microsoft365dsc.
Looks like dependencies will at least be updated soonish but yeah, mixing and matching is problematic. if you for example use the Microsoft.Graph.Sites Module module in 2.16 and run the Uninstall-M365DSCOutdatedDependencies it will kill dependencies for the module since it relies on the Microsoft.Graph.Authentication being the same version (2.16) where as M365DSC uses 2.15.
Yeah, it should work on the newer releases as we do have other scripts running which are dependent on latest graph versions. And as a result, the scripts breaks.
from microsoft365dsc.
@NikCharlebois @ykuijs @andikrueger can you please assist here.
from microsoft365dsc.
Hi @jagatjb, some of the settings that we want to manage are not (yet) available in the v1.0 version of the Graph API, but are in the Beta version. That is why we are using the Beta modules. As soon as the settings are also available in the released API, we can switch to the normal version of the modules. However that is something we currently do not automatically detect. So if you see there are scenarios where the Beta module can be replaced by the v1 version, please let us know.
Regarding your second question:
We have seen instances in the past where different versions of the modules were causing conflicts. That is why we have created two cmdlets:
- Update-M365DSCDependencies: This installs all the correct version of all required modules.
- Uninstall-M365DSCOutdatedDependencies: This removes all versions of the required modules, with the exception of the required version.
So if you run the first cmdlet, v2.15 will be installed but v2.16 will be left untouched. As soon as you run the second cmdlet, the v2.16 will be deleted, making sure v2.15 is the only installed version.
from microsoft365dsc.
Hi @jagatjb, some of the settings that we want to manage are not (yet) available in the v1.0 version of the Graph API, but are in the Beta version. That is why we are using the Beta modules. As soon as the settings are also available in the released API, we can switch to the normal version of the modules. However that is something we currently do not automatically detect. So if you see there are scenarios where the Beta module can be replaced by the v1 version, please let us know.
Regarding your second question: We have seen instances in the past where different versions of the modules were causing conflicts. That is why we have created two cmdlets:
- Update-M365DSCDependencies: This installs all the correct version of all required modules.
- Uninstall-M365DSCOutdatedDependencies: This removes all versions of the required modules, with the exception of the required version.
So if you run the first cmdlet, v2.15 will be installed but v2.16 will be left untouched. As soon as you run the second cmdlet, the v2.16 will be deleted, making sure v2.15 is the only installed version.
Thanks a lot for your input here. I have another question regarding this.
Lets say I already have v2.16 installed in my server and it is being used to run some scripts. Now I install the M365 DSC module which has the dependency of v2.15. In this case, the v2.15 will get installed and then the M365 DSC module cmdlets will not run as there is a conflict which can be managed by Uninstall-M365DSCOutdatedDependencies. Since v2.16 is the latest one, don't you think it should detect and use the latest graph module instead of installing the previous version of graph, ie. v2.15 ?
So in such cases, the other scripts which are already using v2.16 should be left untouched.
from microsoft365dsc.
Related Issues (20)
- [ERROR] MSFT_SPOSearchManagedProperty: Throws error "Current site is not a tenant administration site" on line 150
- PowerShell crash using Update-M365DSCDependencies HOT 5
- Graph SDK v2.17.0 contains a breaking change wrt removing a member from a group HOT 1
- SendConfigurationApply function does not succeed HOT 4
- Azure Automation / runbooks - issue with SP with Thumbprint HOT 1
- AADAdministrativeUnit retrieves role assignments using unsupported -filter parameter HOT 1
- Get-M365DSCCompiledPermissionList : A parameter cannot be found that matches parameter name 'PermissionsType'
- Looking for appropriate Azure app registration permissions to grant for "update" access to nearly all resources HOT 2
- TeamsFilesPolicy: Cannot create new policies or edit existing ones
- Pragmatic approaches to MFA or alternatives? HOT 5
- Fail to backup after exception on SPOApp component HOT 3
- New-M365DSCReportFromConfiguration: parsed content was null HOT 8
- Create delta report against DevOps composite resources HOT 2
- WhfB Enrollment Settings
- Entra ID MDM / MAM Scopes
- Device Settings in Entra ID
- [Entra ID] External ID tenant support - Managing User Flows (including ”Authentication condition applications”) HOT 1
- TeamsTenantDialPlan: Dial plan Priority missing
- TenantId must be in format contoso.onmicrosoft.com
- IntuneAppProtectionPolicyiOS: Assignments not hardcoded to ObjectId
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microsoft365dsc.