Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
$workspaceId
$profileId
# Construct the headers and URL for the API call
$SPHeader = @{'X-PowerBI-profile-id' = $profileId}
$url = "https://api.powerbi.com/v1.0/myorg/admin/groups/$workspaceId"
$body = @{
"logAnalyticsWorkspace" = @{
"subscriptionId" = "subscriptionId"
"resourceGroup" = "resourceGroupName"
"resourceName" = "LogAnalyticsWorkspaceName"
}
}
# Make the API call
$response = Invoke-PowerBIRestMethod -Method 'Patch' -Url $url -Body $body -Verbose
$response | ConvertTo-Json
When you Invoke-PowerBIRestMethod you use relative URIs, not the full URL (you would use the full URL with Invoke-RestMethod)
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
36 | |
21 | |
18 | |
17 | |
10 |
User | Count |
---|---|
34 | |
33 | |
32 | |
19 | |
14 |