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]$Path | |
) | |
# Define the files to search for | |
$filesToSearch = ".env.local", ".env.local.user", ".env.dev", ".env.dev.user" | |
# Define the keys to ignore | |
$keysToIgnore = "SPO_HOSTNAME", "SPO_SITE_URL", "APP_NAME_SUFFIX" |
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
# assumes you are logged into tenant using CLI for Microsoft 365 (https://aka.ms/cli-m365) | |
$apps = m365 teams user app list --userId "@meId" | ConvertFrom-Json | |
$apps | Where-Object { $_.teamsApp.distributionMethod -eq "sideloaded" } | ForEach-Object { m365 teams user app remove --id $_.id --userId "@meId" --force } |
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
# assumes you are logged into tenant using CLI for Microsoft 365 (https://aka.ms/cli-m365) | |
$apps = m365 teams app list --distributionMethod organization | ConvertFrom-Json | |
$apps | ForEach-Object { m365 teams app remove --id $_.id --force } |
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
(async (window) => { | |
const ootbApps = [ | |
"Bookings", | |
"Files", | |
"Go to Excel", | |
"Go to OneNote", | |
"Go to PowerPoint", | |
"Go to Word", | |
"SurveyMonkey: Surveys for Feedback", | |
"Viva Engage" |
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
// Remove all bots from your account | |
// 1. Go to https://dev.botframework.com/bots | |
// 2. Open the console (F12) | |
// 3. Paste the following code and press enter | |
(async () => { | |
// select the first bot element | |
let bot = document.querySelector('.bot-content > a'); | |
while (bot) { | |
// click the element link |
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
# assumes you are logged into azure subscription using Azure CLI (https://aka.ms/azcli) | |
az group list --query "[].name" -o tsv | ForEach-Object { az group delete --name $_ --yes --no-wait } |
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
// Remove all apps from Teams Developer Portal | |
// 1. Open Teams Developer Portal (https://dev.teams.microsoft.com/apps) | |
// 2. Scroll down to the bottom of the page, loading all apps in the table | |
// 3. Open browser console (F12) | |
// 4. Manually delete one app from the table | |
// 5. Inspect the DELETE network request to get the bearer token | |
// 6. Paste this code into the console | |
// 7. Update the token variable with the bearer token | |
// 8. Run the code |
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
# assumes you are logged into tenant using CLI for Microsoft 365 (https://aka.ms/cli-m365) | |
$notToRemove = @("app1","app2") | |
$apps = m365 aad app list | ConvertFrom-JSON | |
$apps | Where-Object { $_.displayName -notin $notToRemove } | ForEach-Object { m365 aad app remove --appId $_.appId --force } |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Attach to Frontend in Teams (Edge)", | |
"type": "msedge", | |
"request": "launch", | |
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}", | |
"presentation": { | |
"group": "all", |
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
TEAMSFX_ENV=local | |
BOT_DOMAIN= | |
CONNECTION_NAME= | |
MICROSOFT_APP_ID= | |
MICROSOFT_APP_TYPE= | |
MICROSOFT_APP_TENANT_ID= | |
TEAMS_APP_ID= |