Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Write Out the User data to PowerBI
$DataSet = Get-PBIDataSet -authToken $authToken -Name "Office365 License Reporting"
$userdetails | Out-PowerBI -AuthToken $authToken -dataSetName $DataSet.name -tableName "Users" -verbose
# Write Out the User Provisioned License data to PowerBI
$DataSet = Get-PBIDataSet -authToken $authToken -Name "Office365 License Reporting"
$userassignedlicensedetails | Out-PowerBI -AuthToken $authToken -dataSetName $DataSet.name -tableName "User Assigned Licenses" -verbose
# Write Out the User Provisioned License data to PowerBI
$DataSet = Get-PBIDataSet -authToken $authToken -Name "Office365 License Reporting"
$userprovisionedlicensedetails | Out-PowerBI -AuthToken $authToken -dataSetName $DataSet.name -tableName "User Provisioned Licenses" -verbose
# Write Out the License Plans data to PowerBI
$DataSet = Get-PBIDataSet -authToken $authToken -Name "Office365 License Reporting"
$planlicensedetails | Out-PowerBI -AuthToken $authToken -dataSetName $DataSet.name -tableName "License Plans" -verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment