Skip to content

Commit 116e6e1

Browse files
authored
Merge pull request #192 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents afc69c9 + d5e2edc commit 116e6e1

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

Modules/CIPPCore/Public/Alerts/Get-CIPPAlertNewAppApproval.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ function Get-CIPPAlertNewAppApproval {
99
[Parameter(Mandatory = $false)]
1010
[Alias('input')]
1111
$InputValue,
12-
$TenantFilter
12+
$TenantFilter,
13+
$Headers
1314
)
1415
try {
1516
$Approvals = New-GraphGetRequest -Uri "https://graph.microsoft.com/v1.0/identityGovernance/appConsent/appConsentRequests?`$filter=userConsentRequests/any (u:u/status eq 'InProgress')" -tenantid $TenantFilter

Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Push-ExecScheduledCommand.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ function Push-ExecScheduledCommand {
1313
$Tenant = $Item.Parameters.TenantFilter ?? $Item.TaskInfo.Tenant
1414
$TenantInfo = Get-Tenants -TenantFilter $Tenant
1515

16+
$null = Update-AzDataTableEntity -Force @Table -Entity @{
17+
PartitionKey = $task.PartitionKey
18+
RowKey = $task.RowKey
19+
TaskState = 'Running'
20+
}
21+
1622
$Function = Get-Command -Name $Item.Command
1723
if ($null -eq $Function) {
1824
$Results = "Task Failed: The command $($Item.Command) does not exist."
@@ -23,6 +29,7 @@ function Push-ExecScheduledCommand {
2329
Results = "$Results"
2430
TaskState = $State
2531
}
32+
2633
Write-LogMessage -API 'Scheduler_UserTasks' -tenant $Tenant -tenantid $TenantInfo.customerId -message "Failed to execute task $($task.Name): The command $($Item.Command) does not exist." -sev Error
2734
return
2835
}

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-AddUserBulk.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,12 @@ function Invoke-AddUserBulk {
7272
$LicenseSkus = $AssignedLicenses.value ?? $AssignedLicenses | Where-Object { $_ -match $GuidPattern }
7373
if (($LicenseSkus | Measure-Object).Count -gt 0) {
7474
Write-Information "- Assigned licenses set to $(($AssignedLicenses.label ?? $AssignedLicenses) -join ', ')"
75-
$UserBody.assignedLicenses = @($LicenseSkus)
75+
$Licenses = foreach ($Sku in $LicenseSkus) {
76+
[PSCustomObject]@{
77+
skuId = $Sku
78+
}
79+
}
80+
$UserBody.assignedLicenses = @($Licenses)
7681
}
7782
}
7883
}

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tools/GitHub/Invoke-ExecCommunityRepo.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function Invoke-ExecCommunityRepo {
107107
'UploadTemplate' {
108108
$GUID = $Request.Body.GUID
109109
$TemplateTable = Get-CIPPTable -TableName templates
110-
$TemplateEntity = Get-CIPPAzDataTableEntity @TemplateTable -Filter "RowKey eq '$($GUID)'"
110+
$TemplateEntity = Get-CIPPAzDataTableEntity @TemplateTable -Filter "RowKey eq '$($GUID)'" | Select-Object -ExcludeProperty ETag, Timestamp
111111
$Branch = $RepoEntity.UploadBranch ?? $RepoEntity.DefaultBranch
112112
if ($TemplateEntity) {
113113
$Template = $TemplateEntity.JSON | ConvertFrom-Json

Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-UserTasksOrchestrator.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function Start-UserTasksOrchestrator {
2121
PartitionKey = $task.PartitionKey
2222
RowKey = $task.RowKey
2323
ExecutedTime = "$currentUnixTime"
24-
TaskState = 'Running'
24+
TaskState = 'Planned'
2525
}
2626
$task.Parameters = $task.Parameters | ConvertFrom-Json -AsHashtable
2727
$task.AdditionalProperties = $task.AdditionalProperties | ConvertFrom-Json

0 commit comments

Comments
 (0)