학습
인증
Microsoft Certified: Power BI Data Analyst Associate - Certifications
Power BI를 사용하여 데이터를 모델링, 시각화 및 분석하기 위한 비즈니스 및 기술 요구 사항에 부합하는 다양한 방법과 모범 사례를 보여줍니다.
This article explains how to deploy a Power BI project (.pbip) using Fabric REST APIs and a PowerShell script. This article is written for developers who need complete control over their Power BI deployment process and should serve as an example. The example's pattern can be applied to other languages or tools capable of calling the Fabric REST APIs.
To use the Fabric REST APIs, you need to save your work as a Power BI project file (.pbip).
To deploy the .pbip content, use the following Fabric REST APIs:
List Items - Lists the existing items in the workspace.
Create Item - Creates a new item.
Update Item Definition - Updates the item definition. This API is used in case the item already exists.
To deploy your project, use a PowerShell script. The script executes the following actions:
Ensures the workspace exists.
Creates or updates the Power BI report and semantic model in the workspace, using the Power BI Project file definitions.
The script uses the FabricPS-PBIP module, which serves as a wrapper for the Fabric APIs and handles tasks such as authentication, asynchronous calls, and metadata management for Power BI project files.
참고
The powershell module fabricps-pbip is open-source and Microsoft does not offer support or documentation for it.
Use this script template to deploy your Power BI project:
# Parameters
$workspaceName = "[Workspace Name]"
$pbipSemanticModelPath = "[PBIP Path]\[Item Name].SemanticModel"
$pbipReportPath = "[PBIP Path]\[Item Name].Report"
$currentPath = (Split-Path $MyInvocation.MyCommand.Definition -Parent)
Set-Location $currentPath
# Download modules and install
New-Item -ItemType Directory -Path ".\modules" -ErrorAction SilentlyContinue | Out-Null
@("https://raw.githubusercontent.com/microsoft/Analysis-Services/master/pbidevmode/fabricps-pbip/FabricPS-PBIP.psm1"
, "https://raw.githubusercontent.com/microsoft/Analysis-Services/master/pbidevmode/fabricps-pbip/FabricPS-PBIP.psd1") |% {
Invoke-WebRequest -Uri $_ -OutFile ".\modules\$(Split-Path $_ -Leaf)"
}
if(-not (Get-Module Az.Accounts -ListAvailable)) {
Install-Module Az.Accounts -Scope CurrentUser -Force
}
Import-Module ".\modules\FabricPS-PBIP" -Force
# Authenticate
Set-FabricAuthToken -reset
# Ensure workspace exists
$workspaceId = New-FabricWorkspace -name $workspaceName -skipErrorIfExists
# Import the semantic model and save the item id
$semanticModelImport = Import-FabricItem -workspaceId $workspaceId -path $pbipSemanticModelPath
# Import the report and ensure its binded to the previous imported report
$reportImport = Import-FabricItem -workspaceId $workspaceId -path $pbipReportPath -itemProperties @{"semanticModelId" = $semanticModelImport.Id}
학습
인증
Microsoft Certified: Power BI Data Analyst Associate - Certifications
Power BI를 사용하여 데이터를 모델링, 시각화 및 분석하기 위한 비즈니스 및 기술 요구 사항에 부합하는 다양한 방법과 모범 사례를 보여줍니다.
설명서
Azure DevOps 빌드 파이프라인과 Power BI Desktop 프로젝트의 통합 - Power BI
Azure Pipelines에 대해 알아보고 Power BI 프로젝트에 사용하여 개발의 유효성을 검사하는 방법을 알아봅니다.
Power BI Desktop 프로젝트와 Git 통합 - Power BI
Power BI Desktop 프로젝트와 Git 통합에 대해 알아보고 Git 리포지토리를 사용하여 개발 프로세스, 소스 제어 및 협업을 간소화합니다.
Power BI Desktop 프로젝트와 Azure DevOps 통합 - Power BI
Azure DevOps가 Power BI Desktop 프로젝트와 통합되는 방법을 알아봅니다. Git 리포지토리를 사용하여 개발 프로세스, 소스 제어 및 공동 작업을 간소화합니다.