Skip to content

Commit 2d0bedb

Browse files
authored
Merge pull request #100 from dataplat/credits
Added Credits to all functions that missed it #89
2 parents adfd462 + b55b1b8 commit 2d0bedb

File tree

61 files changed

+232
-54
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+232
-54
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
## [Unreleased]
77

88
### Added
9+
- Added credits for authors to all functions and Unit tests to verify the existence of such tags #89
10+
911
### Changed
1012
### Fixed
1113
### Deprecated

helper/GetFunctionList.ps1

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
$path = ".\source\public"
22
$op = Get-ChildItem -Path $path -Recurse -Filter *.ps1 | Select-Object -ExpandProperty Name | Sort-Object
3-
#$op = $op | ForEach-Object { " ""$_""," }
4-
$op | Out-File '.\Output\FunctionList-main-public.txt'
3+
$op | Out-File '.\output\FunctionList-main-public.txt'
54

65
# Author Table
76
# This script generates a table of PowerShell script authors from the specified directory.
7+
$path = ".\source\public"
8+
$op = Get-ChildItem -Path $path -Recurse -Filter *.ps1
89
$authorTable = @{}
910
$op | ForEach-Object {
1011
$file = $_.FullName
@@ -18,7 +19,10 @@ $op | ForEach-Object {
1819
$authorTable[$name] = $null
1920
}
2021
}
21-
$authorTable
22+
$authorTable | ft -AutoSize
23+
$authorTable.GetEnumerator() | Where-Object { -not $_.Value } | ft -AutoSize
24+
25+
2226

2327
## Not a singular name option for functions (#26)
2428
Get-Command -Module FabricTools |where Name -like '*s'

source/Public/Capacity/Get-FabricCapacities.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
This command retrieves all resources of type "Microsoft.Fabric/capacities" from all resource groups in all subscriptions.
2020
2121
.NOTES
22-
Author : Ioana Bouariu @jojobit Nov 10, 2023
22+
Author: Ioana Bouariu
2323
Imported into FabricTools April 2025
2424
Alias: Get-AllFabCapacities
2525
#>

source/Public/Capacity/Get-FabricCapacityRefreshables.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ This example retrieves the top 5 refreshable capacities for the tenant.
1616
1717
.NOTES
1818
The function retrieves the PowerBI access token and makes a GET request to the PowerBI API to retrieve the top refreshable capacities. It then returns the 'value' property of the response, which contains the capacities.
19+
20+
Author: Ioana Bouariu
21+
1922
#>
2023

21-
# This function retrieves the top refreshable capacities for the tenant.
2224
# Define aliases for the function for flexibility.
2325
[Alias("Get-FabCapacityRefreshables")]
2426

source/Public/Capacity/Get-FabricCapacitySkus.ps1

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ Specifies the capacity to retrieve information for. If not provided, all capacit
1919
.EXAMPLE
2020
Get-FabricCapacitySkus -capacity "exampleCapacity"
2121
Retrieves the fabric capacity information for the specified capacity.
22-
#>
23-
# Define aliases for the function for flexibility.
22+
23+
.NOTES
24+
25+
Author: Kamil Nowinski
26+
27+
#>
2428

2529
Param(
2630
[Parameter(Mandatory = $true)]

source/Public/Capacity/Get-FabricCapacityState.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ This example retrieves the state of a specific capacity given the subscription I
2222
2323
.NOTES
2424
The function checks if the Azure token is null. If it is, it connects to the Azure account and retrieves the token. It then defines the headers for the GET request and the URL for the GET request. Finally, it makes the GET request and returns the response.
25+
26+
Author: Ioana Bouariu
27+
2528
#>
2629

2730
# This function retrieves the state of a specific capacity.

source/Public/Capacity/Get-FabricCapacityTenantOverrides.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ This example retrieves the tenant overrides for all capacities.
1313
1414
.NOTES
1515
The function retrieves the PowerBI access token and makes a GET request to the Fabric API to retrieve the tenant overrides for all capacities. It then returns the response of the GET request.
16+
17+
Author: Ioana Bouariu
18+
1619
#>
1720

1821
# This function retrieves the tenant overrides for all capacities.

source/Public/Capacity/Get-FabricCapacityWorkload.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ This example retrieves the workloads for a specific capacity given the capacity
1616
1717
.NOTES
1818
The function retrieves the PowerBI access token and makes a GET request to the PowerBI API to retrieve the workloads for the specified capacity. It then returns the 'value' property of the response, which contains the workloads.
19+
20+
Author: Ioana Bouariu
21+
1922
#>
2023

2124
# This function retrieves the workloads for a specific capacity.

source/Public/Capacity/Resume-FabricCapacity.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ This example resumes a capacity given the subscription ID, resource group, and c
2222
2323
.NOTES
2424
The function defines parameters for the subscription ID, resource group, and capacity. If the 'azToken' environment variable is null, it connects to the Azure account and sets the 'azToken' environment variable. It then defines the headers for the request, defines the URI for the request, and makes a GET request to the URI.
25-
#>
2625
27-
# This function resumes a capacity.
26+
Author: Ioana Bouariu
27+
28+
#>
2829

2930
# Define aliases for the function for flexibility.
3031
[Alias("Resume-FabCapacity")]

source/Public/Capacity/Suspend-FabricCapacity.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ This example suspends a capacity given the subscription ID, resource group, and
2323
2424
.NOTES
2525
The function defines parameters for the subscription ID, resource group, and capacity. If the 'azToken' environment variable is null, it connects to the Azure account and sets the 'azToken' environment variable. It then defines the headers for the request, defines the URI for the request, and makes a GET request to the URI.
26+
27+
Author: Ioana Bouariu
28+
2629
#>
2730

2831
# Define aliases for the function for flexibility.

0 commit comments

Comments
 (0)