Azure Stack HCI 23H2 - Fail to initialize cloud deployment: Cannot validate argument on parameter 'SwitchName'
Done the environment check with no issues, but i cannot get pass this.
2 nodes Dell AX-650 with 2 NVIDIA Mellanox ConnectX-6 Lx 2 ports NICs
Azure Stack HCI
-
Kristian T 5 Reputation points
2024-11-28T11:22:09.0033333+00:00 Here is the complete error message:
Azure Stack HCI Connectivity
Validation task
Name
InvokeEnvironmentChecker
Status
Error
Description
Invoke Environment Checker action plan.
Start Time
28/11/2024, 12.02.58
End Time
28/11/2024, 12.04.02
Exception
Type 'InvokeEnvironmentChecker' of Role 'DeploymentService' raised an exception: System.Management.Automation.RuntimeException: Fail to initialize cloud deployment: Cannot validate argument on parameter 'SwitchName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again. Command Arguments ------- --------- Initialize-CloudDeployment.ps1 {JSONFilePath=C:\Deployment\Unattended.json, RegistrationResourc... ValidateJob.ps1 {exceptionLogXml=C:\MASLogs\LCM_Controller_Validate_Exception202... <ScriptBlock> {} at checkForInvokeTimeout, C:\NugetStore\Microsoft.AzureStack.Role.Deployment.Service.10.2411.0.726\content\Classes\DeploymentService\DeploymentService.psm1: line 1305 at InvokeEnvironmentChecker, C:\NugetStore\Microsoft.AzureStack.Role.Deployment.Service.10.2411.0.726\content\Classes\DeploymentService\DeploymentService.psm1: line 386 at <ScriptBlock>, C:\NugetStore\Microsoft.AzureStack.Solution.LCMControllerWinService.10.2411.0.726\content\LCMControllerWinService\InvokeInterfaceInternal.psm1: line 139 at Invoke-EceInterfaceInternal, C:\NugetStore\Microsoft.AzureStack.Solution.LCMControllerWinService.10.2411.0.726\content\LCMControllerWinService\InvokeInterfaceInternal.psm1: line 134
-
Srinud 3,400 Reputation points • Microsoft Vendor
2024-11-28T14:35:56.99+00:00 Hi Kristian T,
Welcome to the Microsoft Q&A Platform. Thank you for posting your query here. We are reviewing into it and will get back to you soon.
-
Kristian T 5 Reputation points
2024-11-29T06:27:06.47+00:00 Thx,
I had a look into the Unattended.json file:
"hostNetwork": { "intents": [ { "name": "Compute_Management", "trafficType": [ "Management", "Compute" ], "adapter": [ "Port2", "Port4" ], "overrideVirtualSwitchConfiguration": false, "virtualSwitchConfigurationOverrides": { "enableIov": "", "loadBalancingAlgorithm": "" }, "overrideQosPolicy": false, "qosPolicyOverrides": { "priorityValue8021Action_Cluster": "7", "priorityValue8021Action_SMB": "3", "bandwidthPercentage_SMB": "50" }, "overrideAdapterProperty": true, "adapterPropertyOverrides": { "jumboPacket": "1514", "networkDirect": "Disabled", "networkDirectTechnology": "" } }, { "name": "Storage", "trafficType": [ "Storage" ], "adapter": [ "Port1", "Port3" ], "overrideVirtualSwitchConfiguration": false, "virtualSwitchConfigurationOverrides": { "enableIov": "", "loadBalancingAlgorithm": "" }, "overrideQosPolicy": false, "qosPolicyOverrides": { "priorityValue8021Action_Cluster": "7", "priorityValue8021Action_SMB": "3", "bandwidthPercentage_SMB": "50" }, "overrideAdapterProperty": false, "adapterPropertyOverrides": { "jumboPacket": "1514", "networkDirect": "Enabled", "networkDirectTechnology": "RoCEv2" } } ], "storageNetworks": [ { "name": "StorageNetwork1", "networkAdapterName": "Port1", "vlanId": "199" }, { "name": "StorageNetwork2", "networkAdapterName": "Port3", "vlanId": "201" } ], "storageConnectivitySwitchless": false, "enableStorageAutoIp": true }
And in the log this error i shown:
VERBOSE: Setting 'ATCHostNetwork.Configuration's property '@Value' to '{"intents":[{"name":"Compute_Management","trafficType":["Management","Compute"],"adapter":["Port2","Port4"],"overrideVirtualSwitchConfiguration":false,"virtualSwitchConfigurationOverrides":{"enableIov":"","loadBalancingAlgorithm":""},"overrideQosPolicy":false,"qosPolicyOverrides":{"priorityValue8021Action_Cluster":"7","priorityValue8021Action_SMB":"3","bandwidthPercentage_SMB":"50"},"overrideAdapterProperty":true,"adapterPropertyOverrides":{"jumboPacket":"1514","networkDirect":"Disabled","networkDirectTechnology":""}},{"name":"Storage","trafficType":["Storage"],"adapter":["Port1","Port3"],"overrideVirtualSwitchConfiguration":false,"virtualSwitchConfigurationOverrides":{"enableIov":"","loadBalancingAlgorithm":""},"overrideQosPolicy":false,"qosPolicyOverrides":{"priorityValue8021Action_Cluster":"7","priorityValue8021Action_SMB":"3","bandwidthPercentage_SMB":"50"},"overrideAdapterProperty":false,"adapterPropertyOverrides":{"jumboPacket":"1514","networkDirect":"Enabled","networkDirectTechnology":"RoCEv2"}}],"storageNetworks":[{"name":"StorageNetwork1","networkAdapterName":"Port1","vlanId":"199"},{"name":"StorageNetwork2","networkAdapterName":"Port3","vlanId":"201"}],"storageConnectivitySwitchless":false,"enableStorageAutoIp":true}'
VERBOSE: LabEnvironmentVersion is not presented in the JSON file so skip adding it to ECE.
PS>TerminatingError(Get-VMNetworkAdapter): "Cannot validate argument on parameter 'SwitchName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again."
TerminatingError(Get-NetworkSettingDetail): "Cannot validate argument on parameter 'SwitchName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again."
PS>TerminatingError(Get-NetworkSettingDetail): "Cannot validate argument on parameter 'SwitchName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again."
TerminatingError(Get-NetworkSettingDetail): "Cannot validate argument on parameter 'SwitchName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again."
PS>TerminatingError(): "Fail to initialize cloud deployment: Cannot validate argument on parameter 'SwitchName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
Command Arguments
Initialize-CloudDeployment.ps1 {JSONFilePath=C:\Deployment\Unattended.json, RegistrationResourc...
ValidateJob.ps1 {exceptionLogXml=C:\MASLogs\LCM_Controller_Validate_Exception202...
<ScriptBlock> {}
-
Srinud 3,400 Reputation points • Microsoft Vendor
2024-11-29T12:22:56.55+00:00 Hi Kristian T,
Thank you for your patience!
This issue needs deeper investigation and Azure technical support team will be able to help with this. I would recommend you open an azure support case. If you don't have the ability to open a technical support ticket, please let me know and I can help you further with this.
Sign in to comment