Unable to Deploy Spoke without Management VM #138
Labels
bug
Something isn't working
in-progress
Work on this issue is in progress; assignee required
spoke
An issue related to the research spoke code
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.'.
The text was updated successfully, but these errors were encountered: