Comments (4)
This looks like an update for the DRG to allow either Set or New cmdLets to be used for the generation of new resources. Is there any New- equivalent for MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization
?
from microsoft365dsc.
Not that I know of. It looks like a kind of throwback to the old MSOL-days. We have Get-, Set- and Remove-cmdlets.
from microsoft365dsc.
Part of the issue at hand seems to be that one - perhaps both - of the templates that DRG uses to build the module for a new DSC-resource assumes that must exist for any Graph-resource.
For MgPolicyCrossTenantAccessPolicyPartnerIdentitySynchronization, Set- is the equivalent to New-
This could be handled in the same way that DRG chooses an updateVerb that is either Update or Set based on cmdlet-availability. I think the same could be achieved if a check is included to see if a New- cmdlet actually exists or else use the chosen updateVerb as the newVerb.
If time permits, I'll have a go at this myself.
from microsoft365dsc.
A related issue with the DRG is that resources that only provide Get- and Set- but not New- cmdlets may not contain 'variants' of type List and will thus fail to find a 'repository' nor an 'assignment' cmdlet and will then throw an exception.
A related issue is that when there's no New- cmdlet then there's no Create parameterset, causing an additional exception later on.
I've tried various 'fixes' but something unexpected keeps popping up.
from microsoft365dsc.
Related Issues (20)
- Dependencies on beta MS graph HOT 5
- AADUser: Phone numbers missing?
- 1.24.403.1: Unable to meet dependencies for DSCParser HOT 7
- authentication-and-permissions page to be updated HOT 1
- Get-ComputerInfo slows down every resource action with telemetry enabled
- AzureAD Role - Application Certificate - AzureAD Role level of perms required for EXO and O365 unclear.
- AzureAD Role - Application Certificate - AzureAD Role level of perms required for EXO and O365 unclear. HOT 1
- Question : Clarification on M365 DSC modules compatibility with DSC 2.x/3.x
- New Resource: Home Realm Discovery Policy
- Export-M365DSCConfiguration for AzureAD components failed HOT 2
- Allow or block invitations to B2B users from specific organizations
- Intune export issue with multiple components HOT 1
- [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 3
- Azure Automation / runbooks - issue with SP with Thumbprint
- 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
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.