This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "operationStatus": "@{if(equals(actions('CFP-Exchange-Exchange-UpdateSharedMailboxes').status, 'Succeeded'), 'completed', 'failed')}" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "data": { | |
| "operationStatus": "@{if(equals(actions('Exchange-UpdateSharedMailboxes').status, 'Succeeded'), 'completed', 'failed')}" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "bindings": [ | |
| { | |
| "authLevel": "function", | |
| "type": "httpTrigger", | |
| "direction": "in", | |
| "name": "Request", | |
| "methods": ["post"] | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "UserPrincipalNameOrObjectId": "@{triggerBody()?['data']?['subject']?['userPrincipalName']}" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Write-Output "ERROR: Failed to authenticate to Microsoft Graph" | |
| Exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Write-Output "SUCCESS: Completed for user: $UserPrincipalName" | |
| Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{ | |
| StatusCode = [HttpStatusCode]::OK | |
| Body = "SUCCESS: Completed for user: $UserPrincipalName" | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param ( | |
| [Parameter(Mandatory = $true)] | |
| [string]$UserPrincipalNameOrObjectId | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Write-Output "ERROR: Failed to authenticate to Microsoft Graph" | |
| Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{ | |
| StatusCode = [HttpStatusCode]::InternalServerError | |
| Body = "ERROR: Failed to authenticate to Microsoft Graph" | |
| }) | |
| return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using namespace System.Net | |
| param($Request, $TriggerMetadata) | |
| $UserPrincipalNameOrObjectId = $Request.Body.UserPrincipalNameOrObjectId | |
| if (-not $UserPrincipalNameOrObjectId) { | |
| Push-OutputBinding -Name Response -Value ([HttpResponseContext]@{ | |
| StatusCode = [HttpStatusCode]::BadRequest | |
| Body = "ERROR: UserPrincipalNameOrObjectId is required in the request body" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trigger: | |
| - main | |
| variables: | |
| azureSubscription: '<Your-Service-Connection-Name>' | |
| functionAppName: '<Your-Azure-Functions-Name>' | |
| vmImageName: 'windows-latest' | |
| workingDirectory: '$(System.DefaultWorkingDirectory)/<RepoPath>/<RepoPath>/FunctionApp' | |
| stages: |
NewerOlder