Forum Discussion
mattyounggren
Aug 23, 2020Copper Contributor
Create new Team with Azure Function
Hello- I currently have an automated process that creates new teams with an Azure Automation Runbook. I'm looking to replace this with an Azure Function but I'm running into some issues trying to...
LinusCansby
Aug 24, 2020MVP
Hi,
You should store credentials in in a Automation credential asset.
https://docs.microsoft.com/en-us/azure/automation/shared-resources/credentials
This is what I use in a automation to connect and disconnect.
#Connect to Teams PowerShell
$cred = Get-AutomationPSCredential -Name "azureautoaccount"
$teams = Connect-MicrosoftTeams -Credential $cred
#Disconnect Teams PowerShell
Disconnect-MicrosoftTeams
- mattyounggrenAug 24, 2020Copper Contributor
That is what I am doing in the current Runbook in Azure Automation but that doesn't flow over to Azure Functions. The best case for Azure Functions is to store in an Azure KeyVault which was my plan once I figured out how to fix the current errors.