Skip to content

Commit 2ed7d01

Browse files
committed
update microsoft fabric and functions to list collectors
1 parent b7db5d2 commit 2ed7d01

6 files changed

Lines changed: 5 additions & 9 deletions

File tree

Invoke-Monkey365.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ Function Invoke-Monkey365{
426426
#Check if list collectors
427427
If($PSBoundParameters.ContainsKey('ListCollector') -and $PSBoundParameters['ListCollector'].IsPresent){
428428
#Get command Metadata
429-
$MetaData = New-Object -TypeName "System.Management.Automation.CommandMetaData" (Get-Command -Name "Get-MonkeyCollector")
429+
$MetaData = New-Object -TypeName "System.Management.Automation.CommandMetaData" (Get-Command -Name "Format-MonkeyCollector")
430430
$newPsboundParams = [ordered]@{}
431431
if($null -ne $MetaData){
432432
$param = $MetaData.Parameters.Keys
@@ -452,7 +452,7 @@ Function Invoke-Monkey365{
452452
[void]$newPsboundParams.Add('Provider',$PSBoundParameters['Instance']);
453453
}
454454
#Execute command
455-
Get-MonkeyCollector @newPsboundParams
455+
Format-MonkeyCollector @newPsboundParams
456456
}
457457
return
458458
}

core/api/m365/microsoftfabric/api/Get-MonkeyMSFabricObject.ps1

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ Function Get-MonkeyMSFabricObject{
132132
$requestHeader = @{
133133
Authorization = $AuthHeader
134134
}
135-
#set count
136-
$countObjects = 0;
137135
#Perform query
138136
Try{
139137
switch ($Method) {
@@ -167,7 +165,7 @@ Function Get-MonkeyMSFabricObject{
167165
}
168166
}
169167
Else{
170-
$param = @{
168+
$p = @{
171169
Url = $final_uri;
172170
Headers = $requestHeader;
173171
Method = $Method;

core/api/m365/microsoftfabric/helpers/powerbi/workspace/Invoke-MonkeyPowerBIScan.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Function Invoke-MonkeyPowerBiScan{
3737
#>
3838

3939
[CmdletBinding()]
40+
[OutputType([System.Collections.Generic.List[System.Object]])]
4041
Param()
4142
Begin{
4243
#set vars
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
Function Get-MonkeyCollector{
15+
Function Format-MonkeyCollector{
1616
<#
1717
.SYNOPSIS
1818
List installed collectors

core/init/Get-MonkeyCollector.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ Function Get-MonkeyCollector{
103103
#Check if EntraID collectors should be added
104104
If($O365Object.IncludeEntraID -eq $true -and $O365Object.onlineServices.EntraID -eq $true){
105105
$entraIdCollectors = [System.Collections.Generic.List[System.Object]]::new()
106-
$graphCollectors = Get-MetadataFromCollector -Provider EntraID -Service Graph
107106
$msGraphCollectors = Get-MetadataFromCollector -Provider EntraID -Service MSGraph
108107
$apiPortalCollectors = Get-MetadataFromCollector -Provider EntraID -Service EntraIDPortal
109108
If($O365Object.isConfidentialApp -eq $true){

core/utils/Get-MonkeyPowerBIBackend.ps1

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ Function Get-MonkeyPowerBIBackend{
3838

3939
Param ()
4040
Begin{
41-
#Getting environment
42-
$Environment = $O365Object.Environment
4341
#Set uri
4442
$rawQuery = ('{0}/v1.0/myorg/admin/groups?$top=1' -f $O365Object.Environment.PowerBIAPI);
4543
#Get Auth header

0 commit comments

Comments
 (0)