Skip to content

Instantly share code, notes, and snippets.

View zachrenwick's full-sized avatar

Zach Renwick zachrenwick

View GitHub Profile
@zachrenwick
zachrenwick / pbi-logs.ps1
Created June 17, 2022 03:52
Power BI Logs for Last 30 Days
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
@zachrenwick
zachrenwick / pbi-copy-report-and-rebind-dataset.ps1
Created April 21, 2022 18:49
Power BI Powershell Command to Copy Report and Rebind to New Dataset
# 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
@zachrenwick
zachrenwick / call_forecast_model.py
Created March 23, 2020 06:22
Use this to return a prediction from Azure Auto ML model deployed to ACI
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":