mozziemozz / TeamsPhoneAutomation

Automation Scripts for Microsoft Teams Phone
19 stars 6 forks source link

Several Setup Issues #8

Closed nickgee311 closed 8 months ago

nickgee311 commented 8 months ago

I am having various issues when running the setup script for the first time.

The App Registration is successfully being created however when adding the role assignments the script is erroring with: Error: Invalid option: 'scope'. I am able to add the role assignments myself to the app registration however no enterprise application is created.

Secondly this error I am not able to bypass:

Sleeping for 30s to give Azure some time to apply the permissions...
Invoke-RestMethod : The remote server returned an error: (403) Forbidden.
At C:\temp\GitHub\TeamsPhoneAutomation\Setup\Setup.ps1:284 char:26
+ ... yRoleId = ((Invoke-RestMethod -Method Get -Headers $Header -Uri "http ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

Just wondering if I've missed something or if there is an issue with the script?