Forum Discussion
Tenant Settings Comparison between Source and Target
Hi,
I would like to know about How can I get Source Tenant Settings information in JSON format by calling Power BI REST API.
I would like to know following things to achieve what I am looking for:
1) How and where to get Power BI Rest API
2) Best way to call Rest API then convert into JSON or CSV.
3) If its JSON then is this right way to convert JSON to CSV using Power Shell script:
Get-Content -Path C:\Temp\inputfile.json | ConvertFrom-Json | Export-Csv -Path C:\Temp\outputfile.csv -NoTypeInformation
I want to create two CSV file for Source Tenant and Target Tenant then compare them if there is any difference.
Any help or suggestion would be appreciated!
Thanks
Tenants - List Tenant Settings - REST API (Admin) | Microsoft Learn
Why CSV? Keep the JSON and then use github or similar tools for the diff.
4 Replies
- lbendlinSuper User
Tenants - List Tenant Settings - REST API (Admin) | Microsoft Learn
Why CSV? Keep the JSON and then use github or similar tools for the diff.
- damit230183Helper II
Hi, Thanks for the solution.
It did worked partially but partial result was also important.
Thanks
- AnonymousNot applicable
Hi damit230183,
Thank you for reaching out to the Microsoft Fabric Forum Community, and special thanks to lbendlin for prompt and helpful responses.
Just following up to see if the Response provided by community members were helpful in addressing the issue. if the issue still persists Feel free to reach out if you need any further clarification or assistance.
Best regards,
Prasanna Kumar - AnonymousNot applicable
Hi @damit230183,
Just following up to see if the Response provided by community members were helpful in addressing the issue. if the issue still persists Feel free to reach out if you need any further clarification or assistance.
Best regards,
Prasanna Kumar