Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Deploy dataset and chart by script/sdk

Hi All,

as posted here, Re: Create streaming dataset from powershell scrip... - Microsoft Power BI Community, I am trying to deploy a dataset from script. On top of it, i would need to add the Charts programmatically. 

My idea would be to design the charts with Power Bi Deskop, using same workspace/datasetdeployed by the script, export to pbix and republish it, on a different account,  after that the script has created the same env. 

 

Basically:

- run script to build workspace/dataset

- publish a pbix 

 

Finally:
Is this a correct design/plan?

 

Thank you very much in advance
Marco

3 Replies

  • For model/Train.py file  

    Import os

    from flask import Flask, jsonify, request

    from flask_restful import Api, Resource

    from model.Train import train_model

    from sklearn.externals import joblib

     

    app = Flask(__name__)

    api = Api(app)

  • Anonymous's avatar
    Anonymous
    Not applicable

    For model/Train.py file  

    Import os

    from flask import Flask, jsonify, request

    from flask_restful import Api, Resource

    from model.Train import train_model

    from sklearn.externals import joblib

     

    app = Flask(__name__)

    api = Api(app)