Coder Social home page Coder Social logo

power-bi-automation's Introduction

Power-BI-Automation

Automate tasks in Power BI based on the Power BI Powershell cmdlets and the Power BI REST API

Please see the notes in the scripts for further explanation.

power-bi-automation's People

Contributors

marclelijveld avatar svdoever avatar tonswart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

power-bi-automation's Issues

Code fails if allowNativeQueries=true

I love this code. Thank you. It will fail if the data flow accesses native sql queries.

I updated function _getPowerBIDataflowDefinition
with this
if ($flowdefinition.'pbi:mashup'.'allowNativeQueries')
{
$flowdefinition.'pbi:mashup'.'allowNativeQueries'= $FALSE
}

== here is the code snippet

function getPowerBIDataflowDefinition([string] $GroupID, [string]$DataflowName) {
$url = [string]::Format("groups/{0}/dataflows", $GroupID);
$flowItems = Invoke-PowerBIRestMethod -Method GET -Url $url | ConvertFrom-Json
$flow = $flowItems.value | Where-Object { $
.name -eq $DataflowName }

if ($flow) {
    $url = [string]::Format("groups/{0}/dataflows/{1}", $GroupID, $flow.objectId);
    $flowdefinition = Invoke-PowerBIRestMethod -Method GET -Url $url | ConvertFrom-Json

    # check for allowNativeQueries
    #    "pbi:mashup": {
    #    "allowNativeQueries": false,
    if ($flowdefinition.'pbi:mashup'.'allowNativeQueries')
    {
        $flowdefinition.'pbi:mashup'.'allowNativeQueries'= $FALSE
    }

Power bi gateway configuration

I am looking for scripts to configure the on prem power bi gateway. Unable to find any docs or in built commands for automation.
Even tried doing it via pywinauto. But no luck.
Have you guys figured this out by any chance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.