Get Power Platform Licenses using PowerShell C lear-Host Install-Module -Name Microsoft.PowerApps.Administration.PowerShell Add-PowerAppsAccount $scriptPath = split-path -parent $MyInvocation.MyCommand.Definition $OutputFilePath = "$scriptPath\Licenses.csv" $TimeoutInMinutes = 2 $ApiVersion = "2016-11-01" $getLicensesUri = "https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/scopes/admin/exportServicePlans?api-version={apiVersion}" $getLicensesResponse = InvokeApi -Method POST -Route $getLicensesUri -ApiVersion $ApiVersion -Verbose $false if ($getLicensesResponse.StatusCode -eq 202) { $getLicensesUri = $getLicensesResponse.Headers['Location'] $currentTime = Get-Date -format HH:mm:ss $nextTime = Get-Date -format HH:mm:ss $TimeDiff = New-TimeSpan $currentTime $nextTime #Wait until the operation complete, there is an error, or we hit a timeout while...
Your comprehensive resource for Microsoft 365 productivity solutions. Explore expert tutorials, best practices, and real-world implementations for SharePoint Online, Power Platform (Power Apps, Power Automate, Power BI), Microsoft Copilot and Python. Whether you're building automated workflows, creating custom apps, managing SharePoint sites, or leveraging AI with Copilot, find practical guides and insights to transform your digital workplace