Giter VIP home page Giter VIP logo

Comments (4)

andikrueger avatar andikrueger commented on July 19, 2024

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.

salbeck-sit avatar salbeck-sit commented on July 19, 2024

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.

salbeck-sit avatar salbeck-sit commented on July 19, 2024

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.

salbeck-sit avatar salbeck-sit commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.