Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Deploy Spoke without Management VM #138

Open
ludoll-uwm opened this issue Nov 5, 2024 · 0 comments
Open

Unable to Deploy Spoke without Management VM #138

ludoll-uwm opened this issue Nov 5, 2024 · 0 comments

Comments

@ludoll-uwm
Copy link

With the following parameter:
param researchVmsAreSessionHosts = true ;
We are able to get through the Hub deployment.

We are experiencing failures where it seems the research VMs are relying on the presence of a Hub Management VM that does not exist.
(Referenced in the main.bicep file for the Spoke)

// TODO: Split once into var and re-use var
var hubManagementVmSubscriptionId = split(hubManagementVmId, '/')[2]
var hubManagementVmResourceGroupName = split(hubManagementVmId, '/')[4]
var hubManagementVmName = split(hubManagementVmId, '/')[8]

Error Received:

Line |
83 | $DeploymentResult = New-AzDeployment @CmdLetParameters
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 11:52:12 AM - Error: Code=InvalidTemplate; Message=Deployment template validation failed: 'The template variable 'hubManagementVmSubscriptionId' is not valid: The language expression property array index '2' is out of bounds.
Please see https://aka.ms/arm-functions for usage details.'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant