Skip to content
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

Unable to use Dynamic Resource Generator (DRG) to generate my resource #5489

Open
dannyKBjj opened this issue Nov 29, 2024 · 0 comments
Open

Comments

@dannyKBjj
Copy link
Contributor

https://microsoft365dsc.com/user-guide/advanced/dynamic-resource-generator/

Description for CmdLetNoun seems to suggest that you should not specify 'beta' when trying to use beta cmdlets? Presumably you use the APIVersion parameter for that?! However, I found that this didn't work and I had to explicitly put 'beta'

"The noun part of the cmdlet associated with the resource. E.g., for the AADDomain resource, the associated cmdlets is Get-MgBetaDomain. Therefore the value for this property is *
'MgDomain'.*"

This command is the closest I got it to running:

New-M365DSCResource -ResourceName IntuneVPNConfigurationPolicyAndroid -APIVersion 'beta' -Workload Intune -CmdletNoun 'MgBetaDeviceManagementDeviceConfiguration' -Path $ResourcePath -UnitTestPath $UnitTestPath -ExampleFilePath $ExamplePath -Credential $creds

That gets me here:
Image

I assume I should specify androidVpnConfiguration ? I do that and simply get a string of errors:

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant