View Queries.ps1
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
{ | |
"type": "object", | |
"properties": { | |
"myString": { | |
"type": "string" | |
} | |
} | |
} |
View ParseJSON.ps1
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
{ | |
"properties": { | |
"MeetingID": { | |
"type": "string" | |
}, | |
"MeetingRoomUPN": { | |
"type": "string" | |
} | |
}, | |
"type": "object" |
View WebhookJSON.ps1
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
{ | |
"queries": { | |
"myString": "Test123" | |
} | |
} |
View MeetingRoomsSeriesRoutine.ps1
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
Connect-AzAccount -Identity -ErrorAction Stop | Out-Null | |
$AccessToken = Get-AzAccessToken -ResourceTypeName MSGraph -ErrorAction Stop | select -ExpandProperty Token | |
$global:Header = @{"Authorization" = "Bearer $AccessToken" } | |
#Enter email account you want to send email reminders from | |
$Email = "alexander@contoso.com" | |
$LogicAppURL = "Enter webhok URL here." | |
View AssignGraphRights.ps1
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
$TenantID = "xxxxxx" | |
$AzureAutomationObjecID = "xxxxxxx" | |
$LogicAppSeObjectID = "xxxxxxx" | |
#New Service Principal Permissions using Graph API PowerShell SDK module | |
Connect-MgGraph -TenantId $TenantID | |
$ServicePrincipalId = $AzureAutomationObjecID | |
$GraphResource = Get-MgServicePrincipal -Filter "AppId eq '00000003-0000-0000-c000-000000000000'" | |
$application_role_to_assign_name = "Mail.Send" | |
$Permission = $GraphResource.AppRoles | Where-Object {$_.value -in $application_role_to_assign_name} |
View SetSensitivityLabelAndMonitor.ps1
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
#set your sensitivity label. | |
$sensitivitylabel = "18fd20ce-627f-4b00-84ab-b768550d6446" | |
#set the url of the site/group you want to monitor and set assign label to. | |
$url = "https://m365x28850929.sharepoint.com/sites/testnogroup" | |
#connect to your SharePoint admin site. | |
$connection = connect-pnponline -managedidentity -url "https://m365x28850929-admin.sharepoint.com/" -returnconnection | |
$site = get-pnptenantsite -url $url -connection $connection |
View Assignrights.ps1
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
#Connect using your tenants SharePoint admin url. | |
Connect-PnPOnline -Url M365x28850929-admin.sharepoint.com -Interactive | |
#Enter the App ID you coped from the Enterprise Application. | |
$ManagedIdentityID = "4bf49741-7819-47f1-9e30-c36ef6b9d1aa" | |
Add-PnPAzureADServicePrincipalAppRole -Principal $ManagedIdentityID -AppRole "Sites.ReadWrite.All" -BuiltInType MicrosoftGraph | |
Add-PnPAzureADServicePrincipalAppRole -Principal $ManagedIdentityID -AppRole "Sites.FullControl.All" -BuiltInType MicrosoftGraph |
View schema.txt
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
{ | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "string" | |
}, | |
"object": { | |
"type": "string" | |
}, | |
"created": { |
View body.txt
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
{ | |
"prompt": "Is the following text possitive, negative or neutral? ", | |
"max_tokens": 2000 | |
} |
View url.txt
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
https://azureopenaialex.openai.azure.com/openai/deployments/TextGenerator/completions?api-version=2022-12-01 |
NewerOlder