Skip to content

Commit dfc8bd3

Browse files
committed
Splatting makes sense for more than 3 params, sometimes better to shorten the example value (GUID-GUID)
1 parent d1e474e commit dfc8bd3

9 files changed

+17
-11
lines changed

source/Public/Deployment Pipeline/Add-FabricWorkspaceToStage.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Required. The ID of the deployment pipeline stage.
1616
Required. The ID of the workspace to assign to the stage.
1717
1818
.EXAMPLE
19-
Add-FabricWorkspaceToStage -DeploymentPipelineId "a5ded933-57b7-41f4-b072-ed4c1f9d5824" -StageId "db1577e0-0132-4d6d-92b9-952c359988f2" -WorkspaceId "4de5bcc4-2c88-4efe-b827-4ee7b289b496"
19+
Add-FabricWorkspaceToStage -DeploymentPipelineId "GUID-GUID-GUID-GUID" -StageId "GUID-GUID-GUID-GUID" -WorkspaceId "GUID-GUID-GUID-GUID"
2020
2121
Assigns the specified workspace to the deployment pipeline stage.
2222

source/Public/Deployment Pipeline/Get-FabricDeploymentPipeline.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Get-FabricDeploymentPipeline
1919
Retrieves all deployment pipelines that the user can access.
2020
2121
.EXAMPLE
22-
Get-FabricDeploymentPipeline -DeploymentPipelineId "a5ded933-57b7-41f4-b072-ed4c1f9d5824"
22+
Get-FabricDeploymentPipeline -DeploymentPipelineId "GUID-GUID-GUID-GUID"
2323
2424
Retrieves a specific deployment pipeline with detailed information including its stages.
2525

source/Public/Deployment Pipeline/Get-FabricDeploymentPipelineOperation.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Required. The ID of the deployment pipeline.
1313
Required. The ID of the operation to retrieve.
1414
1515
.EXAMPLE
16-
Get-FabricDeploymentPipelineOperation -DeploymentPipelineId "a5ded933-57b7-41f4-b072-ed4c1f9d5824" -OperationId "1065e6a3-a020-4c0c-ada7-92b5fe99eec5"
16+
Get-FabricDeploymentPipelineOperation -DeploymentPipelineId "GUID-GUID-GUID-GUID" -OperationId "GUID-GUID-GUID-GUID"
1717
1818
Retrieves details of a specific deployment operation, including its execution plan and status.
1919

source/Public/Deployment Pipeline/Get-FabricDeploymentPipelineRoleAssignments.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The function automatically handles pagination and returns all available role ass
1010
Required. The ID of the deployment pipeline to get role assignments for.
1111
1212
.EXAMPLE
13-
Get-FabricDeploymentPipelineRoleAssignments -DeploymentPipelineId "8ce96c50-85a0-4db3-85c6-7ccc3ed46523"
13+
Get-FabricDeploymentPipelineRoleAssignments -DeploymentPipelineId "GUID-GUID-GUID-GUID"
1414
1515
Returns all role assignments for the specified deployment pipeline.
1616

source/Public/Deployment Pipeline/Get-FabricDeploymentPipelineStage.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ Required. The ID of the deployment pipeline.
1414
Optional. The ID of the specific stage to retrieve. If not provided, returns all stages in the pipeline.
1515
1616
.EXAMPLE
17-
Get-FabricDeploymentPipelineStage -DeploymentPipelineId "a5ded933-57b7-41f4-b072-ed4c1f9d5824" -StageId "2e6f0272-e809-410a-be63-50e1d97ba75a"
17+
Get-FabricDeploymentPipelineStage -DeploymentPipelineId "GUID-GUID-GUID-GUID" -StageId "GUID-GUID-GUID-GUID"
1818
1919
Retrieves details of a specific deployment pipeline stage, including its workspace assignment and settings.
2020
2121
.EXAMPLE
22-
Get-FabricDeploymentPipelineStage -DeploymentPipelineId "a5ded933-57b7-41f4-b072-ed4c1f9d5824"
22+
Get-FabricDeploymentPipelineStage -DeploymentPipelineId "GUID-GUID-GUID-GUID"
2323
2424
Retrieves a list of all stages in the specified deployment pipeline.
2525

source/Public/Deployment Pipeline/Get-FabricDeploymentPipelineStageItem.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Required. The ID of the deployment pipeline.
1414
Required. The ID of the stage to retrieve items from.
1515
1616
.EXAMPLE
17-
Get-FabricDeploymentPipelineStageItem -DeploymentPipelineId "a5ded933-57b7-41f4-b072-ed4c1f9d5824" -StageId "48d2f500-6375-4f17-9199-2e1d73c18486"
17+
Get-FabricDeploymentPipelineStageItem -DeploymentPipelineId "GUID-GUID-GUID-GUID" -StageId "GUID-GUID-GUID-GUID"
1818
1919
Retrieves all items from the specified stage of the deployment pipeline.
2020

source/Public/Deployment Pipeline/Remove-FabricDeploymentPipeline.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This operation requires admin deployment pipelines role and will fail if there's
1010
Required. The ID of the deployment pipeline to delete.
1111
1212
.EXAMPLE
13-
Remove-FabricDeploymentPipeline -DeploymentPipelineId "a5ded933-57b7-41f4-b072-ed4c1f9d5824"
13+
Remove-FabricDeploymentPipeline -DeploymentPipelineId "GUID-GUID-GUID-GUID"
1414
1515
Deletes the specified deployment pipeline.
1616

source/Public/Deployment Pipeline/Remove-FabricWorkspaceFromStage.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Required. The ID of the deployment pipeline.
1313
Required. The ID of the deployment pipeline stage.
1414
1515
.EXAMPLE
16-
Remove-FabricWorkspaceFromStage -DeploymentPipelineId "a5ded933-57b7-41f4-b072-ed4c1f9d5824" -StageId "db1577e0-0132-4d6d-92b9-952c359988f2"
16+
Remove-FabricWorkspaceFromStage -DeploymentPipelineId "GUID-GUID-GUID-GUID" -StageId "GUID-GUID-GUID-GUID"
1717
1818
Removes the workspace from the specified deployment pipeline stage.
1919

source/Public/Deployment Pipeline/Start-FabricDeploymentPipelineStage.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@ Optional. A note describing the deployment. Limited to 1024 characters.
2828
Optional. If specified, the function will not wait for the deployment to complete and will return immediately.
2929
3030
.EXAMPLE
31-
Start-FabricDeploymentPipelineStage -DeploymentPipelineId "a5ded933-57b7-41f4-b072-ed4c1f9d5824" -SourceStageId "db1577e0-0132-4d6d-92b9-952c359988f2" -TargetStageId "f1c39546-6282-4590-8af3-847a6226ad16" -Note "Deploying business ready items"
31+
$params = @{
32+
DeploymentPipelineId = "GUID-GUID-GUID-GUID"
33+
SourceStageId = "GUID-GUID-GUID-GUID"
34+
TargetStageId = "GUID-GUID-GUID-GUID"
35+
Note = "Deploying business ready items"
36+
}
37+
Start-FabricDeploymentPipelineStage @params
3238
3339
Deploys all supported items from the source stage to the target stage.
3440
@@ -43,7 +49,7 @@ $items = @(
4349
itemType = "SemanticModel"
4450
}
4551
)
46-
Start-FabricDeploymentPipelineStage -DeploymentPipelineId "a5ded933-57b7-41f4-b072-ed4c1f9d5824" -SourceStageId "db1577e0-0132-4d6d-92b9-952c359988f2" -TargetStageId "f1c39546-6282-4590-8af3-847a6226ad16" -Items $items -Note "Deploying specific items"
52+
Start-FabricDeploymentPipelineStage -DeploymentPipelineId "GUID-GUID-GUID-GUID" -SourceStageId "GUID-GUID-GUID-GUID" -TargetStageId "GUID-GUID-GUID-GUID" -Items $items -Note "Deploying specific items"
4753
4854
Deploys specific items from the source stage to the target stage.
4955

0 commit comments

Comments
 (0)