Add JSON format support and improve module compatibility for Entra Private Access provisioning#19
Add JSON format support and improve module compatibility for Entra Private Access provisioning#19michaelmsonne wants to merge 5 commits into
Conversation
In dev! Enhanced Start-EntraPrivateAccessProvisioning.ps1 to support provisioning from both CSV and JSON configuration files, including dynamic JSON-to-CSV conversion functions. Improved required module validation and import logic to handle dependencies and version compatibility, especially for Microsoft.Graph and Microsoft.Entra modules. Updated documentation in README.md to clarify supported module versions and installation instructions. Minor bug fix in Invoke-InternalGraphRequest.ps1 for header merging logic.
Adds logic to strip surrounding quotes from port strings for better compatibility.
|
Thanks so much for testing and your contributions. We discussed offline that some of these changes are not something we would like to add right now. I updated the internal function with the same fix. Cheers. |
|
Posted and shared my fork here then, as from what I see and hear out there, JSON is a need for date like this, and a fix the the classic "dependency hell"... https://www.linkedin.com/feed/update/urn:li:activity:7384483342865305600/ And also a blog post here about the fork with my adds and why: https://blog.sonnes.cloud/extending-the-migrate2gsa-powershell-module-why-i-added-json-support/ |
|
Thanks, your feedback is heard and appreciated. Please keep it coming. |
|
Im just happy to help and so - and just from here I hear the usecases for this format and so - if there is anything, feel free to loop me in as ware are already in contact! |
This pull request introduces support for a JSON configuration format in addition to CSV for the Entra Private Access Provisioning script, updates documentation to reflect this new capability, and improves PowerShell compatibility and header handling in internal functions. It also provides a sample JSON configuration file to help users get started.
JSON Configuration Support and Documentation Updates:
Docs/EntraPrivateAccessProvisioning.mddescribing the new JSON configuration format, including field descriptions, usage examples, and instructions for converting from CSV to JSON.Samples/Sample-EntraPrivateAccessConfig.rename_to_json) to demonstrate the expected structure and usage.PowerShell Compatibility and Usage:
README.mdto specify compatibility withMicrosoft.Graph v2.25.0, including installation and verification instructions to ensure users have the correct module versions.Internal Function Improvements:
Migrate2GSA/internal/functions/Invoke-InternalGraphRequest.ps1to ensure custom and additional headers are combined correctly when making internal Graph API requests.