Skip to content

Instantly share code, notes, and snippets.

#Requires -Modules Microsoft.Graph
# Install the module. (You need admin on the machine.)
# Install-Module Microsoft.Graph
# Set Static Variables
$TenantID="Enter your Tenant ID"
$LogicAppDisplayname = "NewCopilotUserEmail"
# Define dynamic variables
$ServicePrincipalFilter = "displayName eq '$($LogicAppDisplayname)'"
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"triggers": {
"Recurrence": {
"type": "Recurrence",
"recurrence": {
"interval": 3,
"frequency": "Month",
{"text":"Hello World"}
# Parameters for the app registration
$ClientId = "XXXXXXXXXXXX"
$TenantId = "XXXXXXXXXXXX"
$ClientSecret = "XXXXXXXXXXXX"
# Convert the Client Secret to a SecureString
$SecureClientSecret = ConvertTo-SecureString -String $ClientSecret -AsPlainText -Force
# Create a PSCredential object with the Client ID and Secure Client Secret
$ClientSecretCredential = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $ClientId, $SecureClientSecret
base64ToBinary(variables('audiostring'))
outputs('http_3')?['body/$content']
outputs('Parse_JSON')?['body']?['choices'][0]?['message']?['content']
<speak version='1.0' xml:lang='en-US'>
<voice name="en-US-JennyNeural" styledegree="2">
</voice>
</speak>
{
"type": "object",
"properties": {
"statusCode": {
"type": "integer"
},
"headers": {
"type": "object",
"properties": {
"request-id": {
{
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Im blind, please describe for me whats in front of me on the photo."
},
{