Skip to content

Commit 19c77f4

Browse files
authored
finished with visual guidance
1 parent 51756cb commit 19c77f4

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

0_Azure/2_AzureAnalytics/0_Fabric/demos/30_dynamic_pipeline_nbkparameters.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ Last updated: 2025-03-03
1818

1919
</details>
2020

21+
## Content
22+
23+
- [Create a Microsoft Fabric Workspace](#create-a-microsoft-fabric-workspace)
24+
- [Create a Notebook with Parameters](#create-a-notebook-with-parameters)
25+
- [Using the Notebook in a Pipeline](#using-the-notebook-in-a-pipeline)
26+
2127
## Create a Microsoft Fabric Workspace
2228

2329
1. **Sign in to Power BI**: Go to the Power BI Service and log in.
@@ -63,6 +69,43 @@ Last updated: 2025-03-03
6369
file_path = "abfss://<your-container-name>@<your-storage-account-name>.dfs.core.windows.net/<your-bronze-lakehousename>.Lakehouse/Tables/<table name>"
6470
token = ""
6571
```
72+
5. **Mark as Parameter Cell**: Select the `Toggle Parameter Cell` option to mark the cell as a parameter cell
73+
74+
<img width="550" alt="image" src="https://github.com/user-attachments/assets/540fa3cc-a896-41b5-a144-81955e130a67" />
75+
76+
6. Save and Use the Notebook
77+
1. **Save the Notebook**: Save your notebook to ensure all changes are applied.
78+
2. **Use the Notebook in a Pipeline**: You can now use this notebook in a pipeline and pass parameters to it as needed.
79+
80+
<img width="550" alt="image" src="https://github.com/user-attachments/assets/1cf3afe3-8f74-4e1a-a1fe-e9d30418737e" />
81+
82+
## Using the Notebook in a Pipeline
83+
84+
1. **Open the Notebook**: Navigate to the notebook you created in your Microsoft Fabric workspace.
85+
2. **Go to the Run Tab**: In the notebook view, click on the `Run` tab at the top of the page.
86+
3. **Add to Pipeline**: Under the `Run*` tab, select the `Add to pipeline` option. This will allow you to add the notebook to a new or existing pipeline.
87+
1. **Create a New Pipeline**: If you don't have an existing pipeline, you can create a new one by providing a name and selecting **Create**.
88+
2. **Select an Existing Pipeline**: If you already have a pipeline, select it from the list of available pipelines.
89+
90+
<img width="550" alt="image" src="https://github.com/user-attachments/assets/10037c04-2608-418c-9d26-cf1dafa5835c" />
91+
92+
<img width="550" alt="image" src="https://github.com/user-attachments/assets/f99bdef2-25ac-474b-b164-90366696694a" />
93+
94+
4. Configure the Notebook Activity
95+
1. **Open Pipeline Editor**: Once the notebook is added to the pipeline, the pipeline editor will open.
96+
97+
<img width="550" alt="image" src="https://github.com/user-attachments/assets/6b8dc57f-a228-417b-a2b6-ecb2410443cb" />
98+
99+
2. **Select the Notebook Activity**: Click on the `Notebook activity` that was added to the pipeline.
100+
3. **Configure Parameters**: In the `Settings` tab of the `Notebook activity`, find the `Parameters` section. Add the parameters you want to pass to the notebook. Ensure the parameter names match the names defined in the notebook. For example:
101+
```json
102+
{
103+
"file_path": "/path/to/your/file",
104+
"token": "your_token_here"
105+
}
106+
```
107+
108+
https://github.com/user-attachments/assets/67c12ca6-0392-4313-9836-63ae6300154d
66109

67110
<div align="center">
68111
<h3 style="color: #4CAF50;">Total Visitors</h3>

0 commit comments

Comments
 (0)