This file contains 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
if (Get-Module -ListAvailable -Name Microsoft.Graph) { | |
Write-Host "Module Microsoft.Graph exists." | |
} | |
else { | |
throw "Module Microsoft.Graph is not installed yet. Please install it first! Run 'Install-Module Microsoft.Graph'." | |
} | |
$B2CTenantName = "REPLACE-WITH-YOUR-B2C-TENANT-NAME" | |
$AdminName = "REPLACE-WITH-YOUR-ADMIN-NAME" |
This file contains 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
request_.Content = new System.Net.Http.ByteArrayContent(Compress(Newtonsoft.Json.JsonConvert.SerializeObject(body, _settings.Value))); |
This file contains 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
{ | |
"Logging": { | |
"LogLevel": { | |
"Default": "Information", | |
"Microsoft": "Warning", | |
"Microsoft.Hosting.Lifetime": "Information" | |
}, | |
"Console": { | |
"FormatterName": "json", | |
"FormatterOptions": { |
This file contains 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
// az deployment group create -g 'my-resource-group' -f logic-app-callback-url.bicep | |
param location string = resourceGroup().location | |
param appNameSuffix string = 'my-logic-app-name' | |
var logicAppName = 'la-${appNameSuffix}' | |
resource myLogicApp 'Microsoft.Logic/workflows@2017-07-01' = { | |
name: logicAppName | |
location: location |
This file contains 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
{ | |
"runtime": "NetCore31", | |
"defaultVariables": null, | |
"documentGenerator": { | |
"fromDocument": { | |
"json": "{\r\n \"openapi\": \"3.0.1\",\r\n \"info\": {\r\n \"title\": \"Service Desk Public REST API\",\r\n \"description\": \"Public REST API for Jira Service Desk\",\r\n \"termsOfService\": \"https://www.atlassian.com/legal/customer-agreement\",\r\n \"version\": \"1001.0.0-SNAPSHOT\"\r\n },\r\n \"servers\": [\r\n {\r\n \"url\": \"https://your-domain.atlassian.net\"\r\n }\r\n ],\r\n \"tags\": [\r\n {\r\n \"name\": \"Customer\"\r\n },\r\n {\r\n \"name\": \"Info\"\r\n },\r\n {\r\n \"name\": \"Knowledgebase\"\r\n },\r\n {\r\n \"name\": \"Organization\"\r\n },\r\n {\r\n \"name\": \"Request\"\r\n },\r\n {\r\n \"name\": \"Requesttype\"\r\n },\r\n {\r\n \"name\": \"Servicedesk\"\r\n }\r\n ],\r\n \"paths\": {\r\n \"/rest/servicedeskapi/customer\": {\r\n \"post\": {\r\n \"tags\": [\r\n |
This file contains 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( | |
[string] $ResourceGroupName = "MYDEFAULTRESOURCEGROUPNAME", | |
[string] $IntegrationAccountName = "MYDEFAULTINTEGRATIONACCOUNTNAME" | |
) | |
$schemasFolder = $PSScriptRoot + "\Schemas" | |
$schemas = Get-ChildItem -Path $schemasFolder -Recurse | Where-Object { $_.PSIsContainer -eq $false } | |
$mapsFolder = $PSScriptRoot + "\Maps" | |
$maps = Get-ChildItem -Path $mapsFolder -Recurse | Where-Object { $_.PSIsContainer -eq $false } |