pnp / provision-assist-m365

Provision Assist is a request and provisioning solution for Teams, Groups, SPO Sites and Viva Engage Communities in Microsoft 365.
MIT License
53 stars 6 forks source link

Error when creating Azure resoruces #64

Closed mabaugh83 closed 6 months ago

mabaugh83 commented 6 months ago

Description

When run deploy.ps1 get to line 746 and throws error that cannot find Resource Group. Resource Groups exists and am using a global admin.

Steps to reproduce

1.Run deploy.ps1 2.When prompted for Please provide string value for 'currentUserobjectId' (? for help):

  1. Enter object id of global admin that is logged in
  2. Get error message
  3. Error message is part of svc account password plus currentuserobjectid

Please provide string value for 'currentUserobjectId' (? for help):xxxxxxxxxx {"code": "ResourceGroupNotFound", "message": "Resource group 'xxxxxx' could not be found."} 'partofpassword currentUserobjectId=xxxxxx' is not recognized as an internal or external command,operable program or batch file.

Expected results

expect that would continue to run

Actual Results

Error message is part of svc account password plus currentuserobjectid

Please provide string value for 'currentUserobjectId' (? for help):xxxxxxxxxx {"code": "ResourceGroupNotFound", "message": "Resource group 'xxxxxx' could not be found."} 'partofpassword currentUserobjectId=xxxxxx' is not recognized as an internal or external command,operable program or batch file.

Solution component

Deployment Script

Operating system (environment)

Windows

Additional Info

have removed everything and tried clean install - always errors on same place Have tried to debug and errors on line 40 of the bicep script after entering objectid. {"code": "InvalidTemplate", "message": "Deployment template validation failed: 'The template resource '' of type 'Microsoft.KeyVault/vaults' at line '49' and column '5' is not valid. The name property cannot be null or empty. Please see https://aka.ms/arm-syntax-resources for usage details.'.", "additionalInfo": [{"type": "TemplateViolation", "info": {"lineNumber": 49, "linePosition": 5, "path": "properties.template.resources[0]"}}]}

mabaugh83 commented 6 months ago

i have spent 4 days trying this and then miraculously it worked now.