Describe the bug
While trying to add a new customer in multi-tenant environment on the Restore Portal, I get different errors.
First of all, I replaced the old script v1.0 with the v1.2 from here and edited the change-me parameter with the Application ID from Restore Portal in General Options. Current version of VBM365 is the latest 8.3. When I try to run the script as it is, the WAM (Web Account Manager) pops up and when I chose Microsoft Work Account, I am prompted with error "We can't connect you looks like we can't connect to one of our services right now. login.microsoftonline.com Code: 0xCAA30194". There is no Proxy or Firewall which could be the potential problem, and I can access the web site through browser. I have restarted the service and even the server, error remains the same.
Then I started looking into the script and how I can use the old-fashioned Device Login with OTP, instead of forcing WAM, which is now default with Microsoft Graph. The parameter is -UseDeviceAuthentication and after adding it the script in line 61 with Connect-MgGraph, PowerShell prompts as expected "To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XYZXYZXYZ to authenticate." Through browser using Global Administrator account, sure enough Azure CLI finishes and a prompt to close the web browser is presented. But in the background on PS, multiple errors on different lines are presented on Line 70, 140 and 78.
Not sure if anyone else encountered same issue, but please advise.
Describe the bug
While trying to add a new customer in multi-tenant environment on the Restore Portal, I get different errors.
First of all, I replaced the old script v1.0 with the v1.2 from here and edited the change-me parameter with the Application ID from Restore Portal in General Options. Current version of VBM365 is the latest 8.3. When I try to run the script as it is, the WAM (Web Account Manager) pops up and when I chose Microsoft Work Account, I am prompted with error "We can't connect you looks like we can't connect to one of our services right now. login.microsoftonline.com Code: 0xCAA30194". There is no Proxy or Firewall which could be the potential problem, and I can access the web site through browser. I have restarted the service and even the server, error remains the same.
Then I started looking into the script and how I can use the old-fashioned Device Login with OTP, instead of forcing WAM, which is now default with Microsoft Graph. The parameter is -UseDeviceAuthentication and after adding it the script in line 61 with Connect-MgGraph, PowerShell prompts as expected "To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XYZXYZXYZ to authenticate." Through browser using Global Administrator account, sure enough Azure CLI finishes and a prompt to close the web browser is presented. But in the background on PS, multiple errors on different lines are presented on Line 70, 140 and 78.
Not sure if anyone else encountered same issue, but please advise.