deployment
Skill9 starsChanged 10 months agoMITView on GitHub
Implements CI/CD pipelines and DevOps practices for Power BI. Use for automated validation, testing, and deployment of PBIP projects.
- Reads credentials
- Commits and pushes
18 other projects use a version of this.
Adopted by
Most recently taken up by
- NVIDIA/Model-Optimizertheir own version, first seen Oct 2, 2026
- bmcszk/agent-skillstheir own version, first seen Sep 23, 2026
- lintangknitto/agent-skillstheir own version, first seen Sep 23, 2026
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- MartinOlivero/saas-buildertheir own version, first seen Jun 18, 2026
- binnicordova/expo-boilerplatetheir own version, first seen Jun 6, 2026
Used with
Projects with it also use debugging, api-design and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
BlockSkilldebugging
Debugging guidelines and best practices
Also in 5 projects that use this
MicrosoftSkillapi-design
Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.
Also in 4 projects that use this
NVIDIASkilltesting
Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.
Also in 3 projects that use this
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- NVIDIA/Model-Optimizer★ 5.2ksame name
- StarRocks/starrocks-debug-skills★ 77same name
- nahid-sparktales/agent-dispatcher★ 59same name
- digitalocean-labs/do-app-platform-skills★ 36same name
- vshrinath/virtual-product-factory★ 16same name
- DojoCodingLabs/code-sensei★ 14same name
- binnicordova/expo-boilerplate★ 11same name
- YepAPI/skills★ 8same name
- martingarramon/claude-code-starter-kit★ 4same name
- MartinOlivero/saas-builder★ 4same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- best-practicesSkill
- calculation-groupsSkill
- daxSkill
- pbip-projectSkill
- power-querySkill
- report-visualsSkill
- securitySkill
- semantic-modelSkill
- themesSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 10 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 468
Use parameters for environment-specific values:
- Distinctive: line 475
Update via API during deployment:
- Distinctive: line 527
Use service principals for CI/CD
- Distinctive: line 530
Use parameters for environment differences
- Distinctive: line 535
Don't skip validation for "quick fixes"
- Distinctive: line 536
Avoid deploying directly to production
- Distinctive: line 537
Don't use personal accounts in pipelines
- Distinctive: line 538
Never force-push to main branch
- Distinctive: line 542
After setting up deployment:
- Distinctive: line 543
Validate locally: - Run BPA before commit
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deployment Skill
This skill helps implement CI/CD pipelines and DevOps practices for Power BI Desktop Projects (PBIP).
When to Use This Skill
- Setting up automated validation pipelines
- Creating deployment workflows
- Implementing BPA checks in CI
- Configuring environment promotion
- Automating Power BI Service deployments
- Managing PBIP projects in source control
DevOps Overview
Pipeline Stages
┌─────────┐ ┌──────────┐ ┌─────────┐ ┌────────┐
│ Build │ → │ Validate │ → │ Test │ → │ Deploy │
└─────────┘ └──────────┘ └─────────┘ └────────┘
│ │ │ │
Compile BPA Rules RLS Test Publish to
TMDL/PBIR DAX Check Data Check Power BITools
| Tool | Purpose |
| Tabular Editor CLI | TMDL validation, BPA checks |
| Power BI REST API | Publish, refresh, admin |
| pbi-tools | Alternative PBIX/PBIP tooling |
| Fabric Git Integration | Native Git support |
Git Branching Strategy
Recommended: GitFlow for Power BI
main (production)
↑
release/v1.0
↑
develop
↑
feature/add-sales-measuresBranch Protection Rules
# GitHub branch protection
main:
required_reviews: 2
require_status_checks: true
required_checks:
- bpa-validation
- tmdl-syntax
develop:
required_reviews: 1
require_status_checks: trueCommit Message Convention
<type>(<scope>): <description>
Types:
- feat: New feature
- fix: Bug fix
- refactor: Code refactoring
- docs: Documentation
- test: Tests
- ci: CI/CD changes
Examples:
feat(dax): add YoY% time intelligence measures
fix(model): correct relationship cardinality
refactor(query): optimize Sales query for foldingGitHub Actions Pipelines
Basic Validation Pipeline
# .github/workflows/validate.yml
name: Validate PBIP
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
validate:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Tabular Editor
run: |
choco install tabular-editor -y
- name: Validate TMDL Syntax
run: |
# Find semantic model folder
$modelPath = Get-ChildItem -Recurse -Filter "*.pbism" |
Select-Object -First 1 |
Split-Path -Parent
# Validate with Tabular Editor
TabularEditor.exe "$modelPath" -S
- name: Run BPA Rules
run: |
$modelPath = Get-ChildItem -Recurse -Filter "*.pbism" |
Select-Object -First 1 |
Split-Path -Parent
# Run BPA with rules file
TabularEditor.exe "$modelPath" `
-A "BPA-Rules.json" `
-V
continue-on-error: falseFull CI/CD Pipeline
# .github/workflows/cicd.yml
name: Power BI CI/CD
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
TENANT_ID: ${{ secrets.PBI_TENANT_ID }}
CLIENT_ID: ${{ secrets.PBI_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.PBI_CLIENT_SECRET }}
WORKSPACE_ID: ${{ secrets.PBI_WORKSPACE_ID }}
jobs:
validate:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Tabular Editor
run: choco install tabular-editor -y
- name: Validate TMDL
run: |
$model = (Get-ChildItem -Recurse -Filter "definition.pbism" |
Select-Object -First 1).DirectoryName
TabularEditor.exe $model -S
- name: Run BPA
run: |
$model = (Get-ChildItem -Recurse -Filter "definition.pbism" |
Select-Object -First 1).DirectoryName
TabularEditor.exe $model -A BPA-Rules.json -V
deploy:
needs: validate
if: github.ref == 'refs/heads/main'
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install Power BI Tools
run: |
Install-Module -Name MicrosoftPowerBIMgmt -Force -Scope CurrentUser
- name: Authenticate to Power BI
run: |
$password = ConvertTo-SecureString "$env:CLIENT_SECRET" -AsPlainText -Force
$credential = New-Object System.Management.Automation.PSCredential($env:CLIENT_ID, $password)
Connect-PowerBIServiceAccount -ServicePrincipal -Credential $credential -TenantId $env:TENANT_ID
- name: Deploy to Workspace
run: |
# Deploy using Power BI REST API
# Note: Direct PBIP deployment requires Fabric Git integration
# This example shows dataset refresh trigger
Invoke-PowerBIRestMethod -Method POST `
-Url "groups/$env:WORKSPACE_ID/datasets/{dataset-id}/refreshes"Azure DevOps Pipelines
Validation Pipeline
# azure-pipelines.yml
trigger:
- main
- develop
pool:
vmImage: 'windows-latest'
stages:
- stage: Validate
displayName: 'Validate PBIP'
jobs:
- job: ValidateTMDL
displayName: 'Validate TMDL Syntax'
steps:
- task: PowerShell@2
displayName: 'Install Tabular Editor'
inputs:
targetType: 'inline'
script: |
choco install tabular-editor -y
- task: PowerShell@2
displayName: 'Validate Model'
inputs:
targetType: 'inline'
script: |
$modelPath = Get-ChildItem -Recurse -Filter "definition.pbism" |
Select-Object -First 1 |
Split-Path -Parent
TabularEditor.exe $modelPath -S
- task: PowerShell@2
displayName: 'Run BPA'
inputs:
targetType: 'inline'
script: |
$modelPath = Get-ChildItem -Recurse -Filter "definition.pbism" |
Select-Object -First 1 |
Split-Path -Parent
TabularEditor.exe $modelPath -A "$(Build.SourcesDirectory)/BPA-Rules.json" -V
- stage: Deploy
displayName: 'Deploy to Power BI'
dependsOn: Validate
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
jobs:
- deployment: DeployToPowerBI
displayName: 'Deploy to Production'
environment: 'Production'
strategy:
runOnce:
deploy:
steps:
- task: PowerShell@2
displayName: 'Deploy to Service'
inputs:
targetType: 'inline'
script: |
# Deployment script here
env:
PBI_TENANT_ID: $(PBI_TENANT_ID)
PBI_CLIENT_ID: $(PBI_CLIENT_ID)
PBI_CLIENT_SECRET: $(PBI_CLIENT_SECRET)BPA Rules File
Standard Rules (BPA-Rules.json)
{
"rules": [
{
"id": "NO_IMPLICIT_MEASURES",
"name": "No Implicit Measures",
"category": "Performance",
"severity": 3,
"scope": "Model",
"expression": "Model.DiscourageImplicitMeasures == true",
"fixExpression": "Model.DiscourageImplicitMeasures = true",
"description": "Implicit measures should be disabled"
},
{
"id": "MEASURE_DESCRIPTION",
"name": "Measures Should Have Descriptions",
"category": "Documentation",
"severity": 2,
"scope": "Measure",
"expression": "!string.IsNullOrWhiteSpace(Description)",
"description": "All measures should have a description"
},
{
"id": "NO_BIDIRECTIONAL",
"name": "Avoid Bidirectional Relationships",
"category": "Performance",
"severity": 2,
"scope": "Relationship",
"expression": "CrossFilteringBehavior != CrossFilteringBehavior.BothDirections",
"description": "Bidirectional relationships impact performance"
},
{
"id": "USE_DIVIDE",
"name": "Use DIVIDE Instead of /",
"category": "DAX",
"severity": 2,
"scope": "Measure",
"expression": "!Expression.Contains(\"/\")",
"description": "Use DIVIDE function for safe division"
},
{
"id": "HIDDEN_KEY_COLUMNS",
"name": "Key Columns Should Be Hidden",
"category": "Formatting",
"severity": 1,
"scope": "Column",
"expression": "!(Name.EndsWith(\"Key\") || Name.EndsWith(\"ID\")) || IsHidden",
"description": "Key and ID columns should be hidden from users"
},
{
"id": "NO_UNUSED_COLUMNS",
"name": "Remove Unused Columns",
"category": "Maintenance",
"severity": 1,
"scope": "Column",
"expression": "ReferencedBy.Count > 0 || IsHidden == false",
"description": "Unused hidden columns should be removed"
}
]
}Tabular Editor CLI Reference
Common Commands
# Validate TMDL syntax
TabularEditor.exe "path/to/Model" -S
# Run BPA with rules file
TabularEditor.exe "path/to/Model" -A "BPA-Rules.json" -V
# Save model (useful for formatting)
TabularEditor.exe "path/to/Model" -S "path/to/Model"
# Deploy to XMLA endpoint
TabularEditor.exe "path/to/Model" -D "powerbi://api.powerbi.com/v1.0/myorg/WorkspaceName" "DatasetName"
# Generate documentation
TabularEditor.exe "path/to/Model" -SCRIPT "GenerateDocs.cs"Exit Codes
| Code | Meaning |
| 0 | Success |
| 1 | Validation errors |
| 2 | BPA violations (warning) |
| 3 | BPA violations (error) |
Power BI REST API
Authentication
# Service Principal Authentication
$body = @{
grant_type = "client_credentials"
client_id = $clientId
client_secret = $clientSecret
resource = "https://analysis.windows.net/powerbi/api"
}
$token = Invoke-RestMethod -Uri "https://login.microsoftonline.com/$tenantId/oauth2/token" -Method Post -Body $body
$headers = @{ Authorization = "Bearer $($token.access_token)" }Common API Calls
# Get Workspaces
Invoke-RestMethod -Uri "https://api.powerbi.com/v1.0/myorg/groups" -Headers $headers
# Get Datasets in Workspace
Invoke-RestMethod -Uri "https://api.powerbi.com/v1.0/myorg/groups/$workspaceId/datasets" -Headers $headers
# Trigger Refresh
Invoke-RestMethod -Uri "https://api.powerbi.com/v1.0/myorg/groups/$workspaceId/datasets/$datasetId/refreshes" -Method Post -Headers $headers
# Get Refresh History
Invoke-RestMethod -Uri "https://api.powerbi.com/v1.0/myorg/groups/$workspaceId/datasets/$datasetId/refreshes" -Headers $headers
# Update Parameters
$body = @{
updateDetails = @(
@{ name = "ServerName"; newValue = "prod-server.database.windows.net" }
)
} | ConvertTo-Json
Invoke-RestMethod -Uri "https://api.powerbi.com/v1.0/myorg/groups/$workspaceId/datasets/$datasetId/Default.UpdateParameters" -Method Post -Headers $headers -Body $body -ContentType "application/json"Fabric Git Integration
Enable Git Integration
- Workspace Settings > Git integration
- Connect to Azure DevOps or GitHub
- Select repository and branch
- Configure folder mapping
Sync Workflow
Local Development
↓
git push
↓
GitHub/Azure DevOps
↓
CI Validation
↓
Merge to main
↓
Fabric Git Sync
↓
Power BI Service.gitignore for Fabric
# Fabric-specific
.pbi/
**/localSettings.json
**/cache.abf
# Don't commit
*.pbix
*.pbit
# IDE
.vs/
.vscode/Environment Promotion
Environment Strategy
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ Development │ → │ Staging │ → │ Production │
│ Workspace │ │ Workspace │ │ Workspace │
└─────────────┘ └─────────────┘ └─────────────┘
feature/* develop mainParameter-Based Promotion
Use parameters for environment-specific values:
expression ServerName = "dev-server.database.windows.net" meta [IsParameterQuery=true, Type="Text"]
expression DatabaseName = "SalesDB_Dev" meta [IsParameterQuery=true, Type="Text"]Update via API during deployment:
# Update parameters for production
$body = @{
updateDetails = @(
@{ name = "ServerName"; newValue = "prod-server.database.windows.net" },
@{ name = "DatabaseName"; newValue = "SalesDB_Prod" }
)
} | ConvertTo-Json
Invoke-RestMethod -Uri ".../datasets/$datasetId/Default.UpdateParameters" `
-Method Post -Headers $headers -Body $body -ContentType "application/json"Secrets Management
GitHub Secrets
# In workflow
env:
TENANT_ID: ${{ secrets.PBI_TENANT_ID }}
CLIENT_ID: ${{ secrets.PBI_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.PBI_CLIENT_SECRET }}Azure Key Vault
# Azure DevOps with Key Vault
- task: AzureKeyVault@2
inputs:
azureSubscription: 'ServiceConnection'
KeyVaultName: 'pbi-secrets-vault'
SecretsFilter: 'PBI-ClientId,PBI-ClientSecret'Never Commit
# Secrets - NEVER commit
.env
*.secret
credentials.json
appsettings.Production.jsonBoundaries and Constraints
DO
- Automate BPA checks in every PR
- Use service principals for CI/CD
- Store secrets in secure vaults
- Validate TMDL syntax before merge
- Use parameters for environment differences
- Document deployment procedures
DO NOT
- Never commit credentials
- Don't skip validation for "quick fixes"
- Avoid deploying directly to production
- Don't use personal accounts in pipelines
- Never force-push to main branch
Workflow Integration
After setting up deployment:
- Validate locally - Run BPA before commit
- Push to feature branch - CI validates automatically
- Create PR - Requires validation pass
- Merge to develop - Deploys to Dev workspace
- Merge to main - Deploys to Production
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

