osu-itis / Azure-AppService-GenerateTeams

Code to generate teams using Graph APIs. Created for use with TDx ticket forms.
1 stars 0 forks source link
azure graph teams

Graph: Endpoint: https://graph.microsoft.com/ Versions: v1.0, beta Rest Options: Post,Get Powershell Compatibility: PS 5.1: Y/N: ✖ Notes: Invoke-RestMethod commands are using the newer Authentication parameter, not compatible with 5.1 PS 6.2+: Y/N: ✔ Notes: N\A PS 7.0+: Y/N: ✔ Notes: N\A

Generate Teams

This repository contains the code used for azure functions allowing a single Rest Post request to generate a new Microsoft Teams team based off of the information provided. This was originally created for use with TDx Web Request features to automate our workflows when creating Microsoft Teams.

Table Of Contents

Requirements

Setup

Required Modules

No external modules are required.

Hardcoded Script Values

There are a few hardcoded values that are based on the configuration of the Azure Storage, These must match the name of their respective Azure Queue, Table, or Resource Group. Casing is very important for these values.

TDx configuration

TDx User account permission

Application Security Role
Chat
Client Portal Client + Knowledge Base, Services, Ticket Requests
Community
IT Technician
TDNext

Web Service Auth Account

Name type active
Existing user account Name TeamDynamix Web API

Web Service Provider

Name Base Service Provider URL Active
Azure Teams Creator https://AzureAppName.azurewebsites.net/api/

Workflow and Usage

Workflow img

REST Examples

View the readme file within each function's respective folder for more information.

Example Hostname

The name is based off of whatever the Azure Function App Service name is:
  Host: https://<FUNCTIONAPPNAME>.azurewebsites.net

Port 7071 is currently the default port when using the local azure function apps for testing:
  Host: localhost:7071

Additional Notes

Additional comments regarding Graph, Powershell, Teams Roadmaps, ect...

Graph Settings

Connect-ExchangeOnline

Team Discovery Settings

Current user based Options for Teams Membership

Troubleshooting

Troubleshooting in TDx

Troubleshooting in Azure

Manually change guest access settings using Microsoft PowerShell

Review Microsoft's solution to Change guest access settings using Microsoft PowerShell.