Skip to content

Commit

Permalink
Merge pull request #19 from KelvinTegelaar/master
Browse files Browse the repository at this point in the history
[pull] master from KelvinTegelaar:master
  • Loading branch information
pull[bot] authored Mar 15, 2024
2 parents 43704dd + 4e0a100 commit 45cd04a
Show file tree
Hide file tree
Showing 75 changed files with 956 additions and 951 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/dev_cippckdtz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/azure/functions-action
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Powershell project to Azure Function App - cippckdtz

on:
push:
branches:
- dev
workflow_dispatch:

env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root

jobs:
deploy:
runs-on: windows-latest

steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v4

- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: 'cippckdtz'
slot-name: 'Production'
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_2101C7175BFB47E58240ABD1E72E81C2 }}
16 changes: 0 additions & 16 deletions ExecExtensionNinjaOneQueue/function.json

This file was deleted.

13 changes: 0 additions & 13 deletions ExecExtensionNinjaOneQueue/run.ps1

This file was deleted.

7 changes: 3 additions & 4 deletions ExecGDAPInviteApproved_Timer/function.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@
"schedule": "0 0 */3 * * *"
},
{
"type": "queue",
"direction": "out",
"name": "gdapinvitequeue",
"queueName": "gdapinvitequeue"
"name": "starter",
"type": "durableClient",
"direction": "in"
}
]
}
10 changes: 0 additions & 10 deletions ExecGDAPInviteQueue/function.json

This file was deleted.

7 changes: 0 additions & 7 deletions ExecGDAPInviteQueue/run.ps1

This file was deleted.

10 changes: 0 additions & 10 deletions ExecScheduledCommand/function.json

This file was deleted.

83 changes: 0 additions & 83 deletions ExecScheduledCommand/run.ps1

This file was deleted.

10 changes: 0 additions & 10 deletions ListLicensesAllTenants/function.json

This file was deleted.

28 changes: 0 additions & 28 deletions ListLicensesAllTenants/run.ps1

This file was deleted.

10 changes: 0 additions & 10 deletions ListMFAUsersAllTenants/function.json

This file was deleted.

57 changes: 0 additions & 57 deletions ListMFAUsersAllTenants/run.ps1

This file was deleted.

10 changes: 0 additions & 10 deletions ListMailboxRulesAllTenants/function.json

This file was deleted.

9 changes: 0 additions & 9 deletions MailProviders/Mesh.json

This file was deleted.

2 changes: 1 addition & 1 deletion Modules/CIPPCore/Public/Add-CIPPGroupMember.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function Add-CIPPGroupMember(
} else {
New-GraphPostRequest -uri "https://graph.microsoft.com/beta/groups/$($GroupId)" -tenantid $TenantFilter -type patch -body $addmemberbody -Verbose
}
$Message = "Successfully added user $($Member) to $GroupId."
$Message = "Successfully added user $($Member) to $($GroupId)."
Write-LogMessage -user $ExecutingUser -API $APIName -tenant $TenantFilter -message $Message -Sev 'Info'
return $message
return
Expand Down
1 change: 1 addition & 0 deletions Modules/CIPPCore/Public/Entrypoints/Invoke-AddUser.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Function Invoke-AddUser {
} catch {
Write-LogMessage -user $request.headers.'x-ms-client-principal' -API $APINAME -tenant $($userobj.tenantid) -message "Failed to create user. Error:$($_.Exception.Message)" -Sev 'Error'
$body = $results.add("Failed to create user. $($_.Exception.Message)" )
exit 1
}

try {
Expand Down
Loading

0 comments on commit 45cd04a

Please sign in to comment.