This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cls | |
#don't forget to install the shell module | |
#Install-Module MicrosoftPowerBIMgmt.Admin | |
#Install-Module MicrosoftPowerBIMgmt.Capacities | |
#Install-Module MicrosoftPowerBIMgmt.Data | |
#Install-Module MicrosoftPowerBIMgmt.Profile | |
#Install-Module MicrosoftPowerBIMgmt.Reports | |
#Install-Module MicrosoftPowerBIMgmt.Workspaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update nuget | |
Install-PackageProvider -Name NuGet -Force | |
# Install power bi cmdlts if not already installed (may take a little bit of time) | |
Install-Module -Name MicrosoftPowerBIMgmt -Force | |
# Connect to service | |
Connect-PowerBIServiceAccount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
# URL for the web service | |
scoring_uri = 'http://put-your-azure-ml-uri-here.westus2.azurecontainer.io/score' | |
# If the service is authenticated, set the key or token | |
#key = '<your key or token>' | |
# example payload for bike share forecast future (next day) | |
data = {"data": |