Errors in IPAM deployment #64
Unanswered
mgasaway67
asked this question in
Q&A
Replies: 2 comments 14 replies
-
Hi @mgasaway67, thank you for reaching out and I'm so sorry you're having issues getting Azure IPAM deployed. Can you please share the output of the following PowerShell commands? Get-InstalledModule -Name Az I'd like to verify you have the minimum versions as outlined in the Prerequisites section of our documentation, which can be found here: https://azure.github.io/ipam/#/deployment/README?id=prerequisites |
Beta Was this translation helpful? Give feedback.
6 replies
-
Bicep CLI version 0.13.1 (e3ac80d678) |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am receiving errors in the IPAM deployment pretty early on. I am deploying from vscode running on mac.
Error:
New-MgOauth2PermissionGrant_CreateExpanded: /Users/{username}/Scripts/ipam-main/deploy/deploy.ps1:492:7
Line |
492 | New-MgOauth2PermissionGrant
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Code: generalException Message: Location header not present in redirection response. INFO: Admin consent for Microsoft Graph API permissions granted successfully INFO: Granting admin consent to the IPAM UI application for exposed API from the IPAM Engine application New-MgOauth2PermissionGrant_CreateExpanded: /Users/{username}/Scripts/ipam-main/deploy/deploy.ps1:508:5 Line | 508 | New-MgOauth2PermissionGrant
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Code: generalException Message: Location header not present in redirection response.
INFO: Admin consent for IPAM Engine exposed API granted successfully
INFO: Granting admin consent for Azure Service Management API permissions assigned to IPAM Engine application
New-MgOauth2PermissionGrant_CreateExpanded: /Users/{username}/Scripts/ipam-main/deploy/deploy.ps1:526:5
Line |
526 | New-MgOauth2PermissionGrant `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Code: generalException Message: Location header not present in redirection response.
INFO: Admin consent for Azure Service Management API permissions granted successfully
INFO: Deploying IPAM bicep templates
ERROR: Unable to deploy Azure IPAM solution due to an exception, see ../logs/deploy_20230104104142AM.log and ../logs/error_20230104104142AM.log for detailed information!
Log File:
PowerShell transcript start
Start time: 20230104104142
Username: {username}
RunAs User: {username}
Configuration Name:
Machine: --- (Unix 10.15.7)
Host Application: /usr/local/microsoft/powershell/7/pwsh.dll
Process ID: 47401
PSVersion: 7.3.1
PSEdition: Core
GitCommitId: 7.3.1
OS: Darwin 19.6.0 Darwin Kernel Version 19.6.0: Tue Jun 21 21:18:39 PDT 2022; root:xnu-6153.141.66~1/RELEASE_X86_64
Platform: Unix
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0, 6.1.0, 6.2.0, 7.0.0, 7.1.0, 7.2.0, 7.3.1
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
WSManStackVersion: 3.0
NOTE: IPAM Deployment Type: Full
INFO: Fetching Tenant ID from Azure PowerShell SDK
INFO: Fetching Azure Cloud type from Azure PowerShell SDK
INFO: Validating Azure Region selected for deployment
INFO: Azure Region validated successfully
INFO: Creating Azure IPAM UI Application
INFO: Creating Azure IPAM Engine Application
INFO: Updating Azure IPAM Engine API Endpoint
INFO: Updating Azure IPAM UI Application Resource Access
INFO: Creating Azure IPAM UI Service Principal
INFO: Creating Azure IPAM Engine Service Principal
INFO: Creating Azure IPAM Engine Secret
INFO: Azure IPAM Engine & UI Applications/Service Principals created successfully
INFO: Logging in to Microsoft Graph
INFO: Granting admin consent for Microsoft Graph API permissions assigned to IPAM UI application
New-MgOauth2PermissionGrant_CreateExpanded: /Users/{username}/Scripts/ipam-main/deploy/deploy.ps1:492:7
Line |
492 | New-MgOauth2PermissionGrant `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Code: generalException Message: Location header not present in redirection response.
New-MgOauth2PermissionGrant_CreateExpanded: /Users/{username}/Scripts/ipam-main/deploy/deploy.ps1:492:7
Line |
492 | New-MgOauth2PermissionGrant `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Code: generalException Message: Location header not present in redirection response.
INFO: Admin consent for Microsoft Graph API permissions granted successfully
INFO: Granting admin consent to the IPAM UI application for exposed API from the IPAM Engine application
New-MgOauth2PermissionGrant_CreateExpanded: /Users/{username}/Scripts/ipam-main/deploy/deploy.ps1:508:5
Line |
508 | New-MgOauth2PermissionGrant `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Code: generalException Message: Location header not present in redirection response.
New-MgOauth2PermissionGrant_CreateExpanded: /Users/{username}/Scripts/ipam-main/deploy/deploy.ps1:508:5
Line |
508 | New-MgOauth2PermissionGrant `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Code: generalException Message: Location header not present in redirection response.
INFO: Admin consent for IPAM Engine exposed API granted successfully
INFO: Granting admin consent for Azure Service Management API permissions assigned to IPAM Engine application
New-MgOauth2PermissionGrant_CreateExpanded: /Users/{username}/Scripts/ipam-main/deploy/deploy.ps1:526:5
Line |
526 | New-MgOauth2PermissionGrant `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Code: generalException Message: Location header not present in redirection response.
New-MgOauth2PermissionGrant_CreateExpanded: /Users/{username}/Scripts/ipam-main/deploy/deploy.ps1:526:5
Line |
526 | New-MgOauth2PermissionGrant `
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Code: generalException Message: Location header not present in redirection response.
INFO: Admin consent for Azure Service Management API permissions granted successfully
INFO: Deploying IPAM bicep templates
PS>TerminatingError(New-AzDeployment): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: 10:42:06 AM - Error: Code=InvalidTemplateDeployment; Message=The template deployment failed with multiple errors. Please see details for more information.
"
PowerShell transcript end
End time: 20230104104206
Any assistance would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions