How to retrieve the workspace id and store it in a variable for reuse ?
For exemple : I create a workspace with this command (New-PowerBIWorkspace -Name “ADO DEV”)
Then I want to add a user to this workspace with this command (Add-PowerBIWorkspaceUser -Id … -UserEmailAddress … -AccessRight Admin), however I need the workspace Id to add a user.
Firstly, when posting code in the forum, please can you use the preformatted text </> button. It really helps us with readability, and copying and pasting your code (we don’t have to faff about replacing curly quote marks to get things working).