Azure local: Fix NetworkIntent after Switch change



Error details

Update task
Check network intent readiness after server OS upgraded
Result
Error
Start time
5/7/2025, 2:35 AM
End time
5/7/2025, 5:18 PM
Description
Make sure network intent readiness after server OS upgraded.
Error details
Type ‚ValidateAzureStackNetworkATCSettings‘ of Role ‚HostNetwork‘ raised an exception: Stopping execution after intent provisioning failed with [ ProvisioningFailed ] for intent „storage“ on host „SRV-HCI11“. Configuration Status: Failed Compute: False Management: False Storage: True at TestNetworkAtcIntentStatus, C:\NugetStore\Microsoft.AS.Network.Deploy.HostNetwork.1.2502.0.40\content\Powershell\Roles\HostNetwork\HostNetwork.psm1: line 1726 at Validate-HostNetworkIntentsInCluster<Process>, C:\NugetStore\Microsoft.AS.Network.Deploy.HostNetwork.1.2502.0.40\content\Powershell\Roles\HostNetwork\HostNetwork.psm1: line 3050 at <ScriptBlock>, <No file>: line 10
Fix:
$rdma = New-NetIntentAdapterPropertyOverrides -NetworkDirect $false
Remove-NetIntent -Name mgmtcompute
Add-NetIntent -Name mgmtcompute -AdapterName „slot13 port 1″,“slot13 port 2“ -Management -Compute -AdapterPropertyOverrides $rdma

Get-NetIntentStatus

_________________________
Set-NetIntentRetryState -ClusterName CLUSTER20 -Name mgmtcompute -NodeName SRV-HCI21
Set-NetIntentRetryState -ClusterName CLUSTER20 -Name mgmtcompute -NodeName SRV-HCI22
$iov = New-NetIntentAdapterPropertyOverrides -Sriov $false
Set-NetIntent -Name mgmtcompute -ClusterName Cluster20 -AdapterPropertyOverrides $iov
Get-VMSwitch | fl *
Get-NetIntent | fl *
get-netintent -ClusterName Cluster20(get-netintent -ClusterName Cluster20 -name mgmtcompute).AdapterAdvancedParametersOverride
Add-NetIntent -Name mgmtRemove-NetIntent -Name mgmtcomputecompute -AdapterName „slot13 port 1″,“slot13 port 2“ -Management -Compute
Remove-NetIntent -Name mgmtcompute
$rdma = New-NetIntentAdapterPropertyOverrides -NetworkDirect $false
Add-NetIntent -Name mgmtcompute -AdapterName „slot13 port 1″,“slot13 port 2“ -Management -Compute -AdapterPropertyOverrides $rdma
Set-NetAdapterAdvancedProperty -Name „slot13 port 1“ -DisplayName „Speed & Duplex“ -DisplayValue „Auto Negotiation“
icm srv-hci22 {Set-NetAdapterAdvancedProperty -Name „slot13 port 1“ -DisplayName „Speed & Duplex“ -DisplayValue „Auto Negotiation“}
(get-netintent -ClusterName Cluster10 -name mgmtcompute).AdapterAdvancedParametersOverride
$rdma = New-NetIntentAdapterPropertyOverrides -NetworkDirect $false
Remove-NetIntent -Name mgmtcompute
Add-NetIntent -Name mgmtcompute -AdapterName „slot13 port 1″,“slot13 port 2“ -Management -Compute -AdapterPropertyOverrides $rdma
$ClusterName=“cluster20″
Install-WindowsFeature -Name RSAT-Clustering-PowerShell,NetworkATC
$ClusterNodes=(Get-ClusterNode -Cluster $ClusterName).Name
Get-NetIntentStatus -ClusterName $ClusterName
get-service -ComputerName $ClusterNodes -Name NetworkATC
Invoke-command -ComputerName $ClusterNodes -ScriptBlock {Get-WinEvent -FilterHashtable @{LogName=“Microsoft-Windows-Networking-NetworkAtc/Operational“} -MaxEvents 100 }| Select TimeCreated,Level,Message,LogName,PSComputerName | Out-Gridview -Title „NetATC Operational“
Invoke-command -ComputerName $ClusterNodes -ScriptBlock {Get-WinEvent -FilterHashtable @{LogName=“Microsoft-Windows-Networking-NetworkAtc/Admin“} -MaxEvents 100 }| Select TimeCreated,Level,Message,LogName,PSComputerName | Out-Gridview -Title „NetATC Admin“
$allgoalstates=Get-NetIntentAllGoalStates -ClusterName $ClusterName
$allgoalstates.Values | ConvertTo-Json -Depth 4




Also RDMA im Intent noch deaktivieren:

Dann
Get-NetIntentStatus



Network intent Network ATC EventLOGS auslesen (hilfreich!):
| $ClusterName=“cluster20″ # Install-WindowsFeature -Name RSAT-Clustering-PowerShell,NetworkATC $ClusterNodes=(Get-ClusterNode -Cluster $ClusterName).Name # Get-NetIntentStatus -ClusterName $ClusterName # get-service -ComputerName $ClusterNodes -Name NetworkATC Invoke-command -ComputerName $ClusterNodes -ScriptBlock {Get-WinEvent -FilterHashtable @{LogName=“Microsoft-Windows-Networking-NetworkAtc/Operational“} -MaxEvents 100 }| Select TimeCreated,Level,Message,LogName,PSComputerName | Out-Gridview -Title „NetATC Operational“ Invoke-command -ComputerName $ClusterNodes -ScriptBlock {Get-WinEvent -FilterHashtable @{LogName=“Microsoft-Windows-Networking-NetworkAtc/Admin“} -MaxEvents 100 }| Select TimeCreated,Level,Message,LogName,PSComputerName | Out-Gridview -Title „NetATC Admin“ |
Update REsourceID bestimmen:
$Update = Get-SolutionUpdate| ? Version -eq „11.2506.1001.28“ -verbose
$Failure = $Update|Get-SolutionUpdateRun
$Failure
ResourceId : redmond/Solution11.2506.1001.28/3bb251c1-5ddd-4fb7-9….
Progress : Microsoft.AzureStack.Services.Update.ResourceProvider.UpdateService.Models.Step
TimeStarted : 7/12/2025 8:09:35 PM
LastUpdatedTime : 7/12/2025 8:20:23 PM
Duration : 00:10:47.7784438
State : InProgress
Start-MonitoringActionplanInstanceToComplete -actionPlanInstanceID 3bb251c1-5ddd-4fb7-9….

Extension Enable command timed out. . Extension error output: std error: Write-EventLog : The Log name „Microsoft-Edge-DeviceManagementExtension“ does not exist in the computer „localhost“.
At C:\Packages\Plugins\Microsoft.Edge.DeviceManagementExtension\1.2508.0.3000\scripts\ExtensionHelper.psm1:266 char:25
+ … Write-EventLog -Message $formattedMessage -EventId $event …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Write-EventLog], InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteEventLogCommand
Write-EventLog : The Log name „Microsoft-Edge-DeviceManagementExtension“ does not exist in the computer „localhost“.
At C:\Packages\Plugins\Microsoft.Edge.DeviceManagementExtension\1.2508.0.3000\scripts\ExtensionHelper.psm1:266 char:25
+ … Write-EventLog -Message $formattedMessage -EventId $event …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Write-EventLog], InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteEventLogCommand
Write-EventLog : The Log name „Microsoft-Edge-DeviceManagementExtension“ does not exist in the computer „localhost“.
At C:\Packages\Plugins\Microsoft.Edge.DeviceManagementExtension\1.2508.0.3000\scripts\ExtensionHelper.psm1:266 char:25
+ … Write-EventLog -Message $formattedMessage -EventId $event …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Write-EventLog], InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteEventLogCommand
. . Extension std output: std out: 2025-07-12 18:13:08Z : INFO : Enable-Extension.ps1 : Successfully enabled Device Management Extension components.
2025-07-12 18:13:08Z : INFO : ReportStatus.ps1: Name: Enable-Extension, Operation: Enable succeeded, Status: success, Code: 0, Message: Successfully enabled the Device Management Extension and created the Edge Devices Resource
2025-07-12 18:13:08Z : INFO : ReportStatus.ps1 : Attempt #1 : Writing to status file at C:\Packages\Plugins\Microsoft.Edge.DeviceManagementExtension\1.2508.0.3000\status\3.status
. Extension Message: There was an error in starting the Device Management Service
Extension Error: Write-EventLog : The Log name „Microsoft-Edge-DeviceManagementExtension“ does not exist in the computer „localhost“.
At C:\Packages\Plugins\Microsoft.Edge.DeviceManagementExtension\1.2508.0.3000\scripts\ExtensionHelper.psm1:266 char:25
+ … Write-EventLog -Message $formattedMessage -EventId $event …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Write-EventLog], InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteEventLogCommand
Write-EventLog : The Log name „Microsoft-Edge-DeviceManagementExtension“ does not exist in the computer „localhost“.
At C:\Packages\Plugins\Microsoft.Edge.DeviceManagementExtension\1.2508.0.3000\scripts\ExtensionHelper.psm1:266 char:25
+ … Write-EventLog -Message $formattedMessage -EventId $event …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Write-EventLog], InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteEventLogCommand
Write-EventLog : The Log name „Microsoft-Edge-DeviceManagementExtension“ does not exist in the computer „localhost“.
At C:\Packages\Plugins\Microsoft.Edge.DeviceManagementExtension\1.2508.0.3000\scripts\ExtensionHelper.psm1:282 char:25
+ … Write-EventLog -Message $formattedMessage -EventId $event …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Write-EventLog], InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteEventLogCommand
2025-07-13 13:43:17Z : ERROR : Enable-Extension.ps1 : Failed to enable Device Management Extension components.
2025-07-13 13:43:17Z : INFO : ReportStatus.ps1: Name: Enable-Extension, Operation: Enable failed, Status: error, Code: 500, Message: There was an error in starting the Device Management Service
2025-07-13 13:43:17Z : INFO : ReportStatus.ps1 : Attempt #1 : Writing to status file at C:\Packages\Plugins\Microsoft.Edge.DeviceManagementExtension\1.2508.0.3000\status\3.status
nsion\1.2508.0.3000\status\3.status
Write-EventLog : The Log name „Microsoft-Edge-DeviceManagementExtension“ does not exist in the computer „localhost“.
At C:\Packages\Plugins\Microsoft.Edge.DeviceManagementExtension\1.2508.0.3000\scripts\ExtensionHelper.psm1:266 char:25
+ … Write-EventLog -Message $formattedMessage -EventId $event …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Write-EventLog], InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteEventLogCommand
Write-EventLog : The Log name „Microsoft-Edge-DeviceManagementExtension“ does not exist in the computer „localhost“.
At C:\Packages\Plugins\Microsoft.Edge.DeviceManagementExtension\1.2508.0.3000\scripts\ExtensionHelper.psm1:266 char:25
+ … Write-EventLog -Message $formattedMessage -EventId $event …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Write-EventLog], InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteEventLogCommand
Write-EventLog : The Log name „Microsoft-Edge-DeviceManagementExtension“ does not exist in the computer „localhost“.
At C:\Packages\Plugins\Microsoft.Edge.DeviceManagementExtension\1.2508.0.3000\scripts\ExtensionHelper.psm1:266 char:25
+ … Write-EventLog -Message $formattedMessage -EventId $event …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Write-EventLog], InvalidOperationException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteEventLogCommand
2025-07-08 13:32:36Z : INFO : Event Telemetry Source already exists, not creating
2025-07-08 13:32:36Z : INFO : Enable-Extension.ps1 : Enable script for device Management extension started.
2025-07-08 13:33:27Z : INFO : Enable-Extension.ps1 : Successfully enabled Device Management Extension components.
2025-07-08 13:33:27Z : INFO : ReportStatus.ps1: Name: Enable-Extension, Operation: Enable succeeded, Status: success, Code: 0, Message: Successfully enabled the Device Management Extension and created the Edge Devices Resource
2025-07-08 13:33:27Z : INFO : ReportStatus.ps1 : Attempt #1 : Writing to status file at C:\Packages\Plugins\Microsoft.Edge.DeviceManagementExtension\1.2508.0.3000\status\3.status
Extension returned non-zero exit code for Install: 1. Extension error output: std error: . Extension Message: {
„PScommandpath“: „C:\\Packages\\Plugins\\Microsoft.AzureStack.Orchestration.LcmController\\30.2505.0.961\\scripts\\Install-Extension.ps1“,
„Exception“: „System.IO.FileNotFoundException: The specified module \u0027C:\\NugetStore\\Microsoft.AzureStack.Solution.LCMControllerWinService.10.2506.0.1001\\content\\LCMControllerWinService\\DeploymentScripts\\LCMControllerWinService.psm1\u0027 was not loaded because no valid module file was found in any module directory.“,
„Positionmsg“: „At C:\\Packages\\Plugins\\Microsoft.AzureStack.Orchestration.LcmController\\30.2505.0.961\\scripts\\Install-Extension.ps1:64 char:9\r\n+ import-module $lcmControllerDeploymentModule\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~“,
„Stacktrace“: „at \u003cScriptBlock\u003e, C:\\Packages\\Plugins\\Microsoft.AzureStack.Orchestration.LcmController\\30.2505.0.961\\scripts\\Install-Extension.ps1: line 64\r\nat \u003cScriptBlock\u003e, \u003cNo file\u003e: line 1“,
„Errormsg“: „The specified module \u0027C:\\NugetStore\\Microsoft.AzureStack.Solution.LCMControllerWinService.10.2506.0.1001\\content\\LCMControllerWinService\\DeploymentScripts\\LCMControllerWinService.psm1\u0027 was not loaded because no valid module file was found in any module directory.“,
„Failingline“: “ import-module $lcmControllerDeploymentModule\r\n“,
„Scriptname“: „C:\\Packages\\Plugins\\Microsoft.AzureStack.Orchestration.LcmController\\30.2505.0.961\\scripts\\Install-Extension.ps1“,
„Failinglinenumber“: 64
}
Extension Error:
__GENUS : 2
__CLASS : __PARAMETERS
__SUPERCLASS :
__DYNASTY : __PARAMETERS
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
ReturnValue : 0
PSComputerName :
__GENUS : 2
__CLASS : __PARAMETERS
__SUPERCLASS :
__DYNASTY : __PARAMETERS
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
ReturnValue : 0
PSComputerName :
Extension returned non-zero exit code for Install: 1. Extension error output: std error: . Extension Message: {
„PScommandpath“: „C:\\Packages\\Plugins\\Microsoft.AzureStack.Orchestration.LcmController\\30.2505.0.961\\scripts\\Install-Extension.ps1“,
„Exception“: „System.IO.FileNotFoundException: The specified module \u0027C:\\NugetStore\\Microsoft.AzureStack.Solution.LCMControllerWinService.10.2506.0.1001\\content\\LCMControllerWinService\\DeploymentScripts\\LCMControllerWinService.psm1\u0027 was not loaded because no valid module file was found in any module directory.“,
„Positionmsg“: „At C:\\Packages\\Plugins\\Microsoft.AzureStack.Orchestration.LcmController\\30.2505.0.961\\scripts\\Install-Extension.ps1:64 char:9\r\n+ import-module $lcmControllerDeploymentModule\r\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~“,
„Stacktrace“: „at \u003cScriptBlock\u003e, C:\\Packages\\Plugins\\Microsoft.AzureStack.Orchestration.LcmController\\30.2505.0.961\\scripts\\Install-Extension.ps1: line 64\r\nat \u003cScriptBlock\u003e, \u003cNo file\u003e: line 1“,
„Errormsg“: „The specified module \u0027C:\\NugetStore\\Microsoft.AzureStack.Solution.LCMControllerWinService.10.2506.0.1001\\content\\LCMControllerWinService\\DeploymentScripts\\LCMControllerWinService.psm1\u0027 was not loaded because no valid module file was found in any module directory.“,
„Failingline“: “ import-module $lcmControllerDeploymentModule\r\n“,
„Scriptname“: „C:\\Packages\\Plugins\\Microsoft.AzureStack.Orchestration.LcmController\\30.2505.0.961\\scripts\\Install-Extension.ps1“,
„Failinglinenumber“: 64
}
Extension Error:
__GENUS : 2
__CLASS : __PARAMETERS
__SUPERCLASS :
__DYNASTY : __PARAMETERS
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
ReturnValue : 0
PSComputerName :
__GENUS : 2
__CLASS : __PARAMETERS
__SUPERCLASS :
__DYNASTY : __PARAMETERS
__RELPATH :
__PROPERTY_COUNT : 1
__DERIVATION : {}
__SERVER :
__NAMESPACE :
__PATH :
ReturnValue : 0
PSComputerName :
$ClusterName=“cluster20″
Install-WindowsFeature -Name RSAT-Clustering-PowerShell,NetworkATC
$ClusterNodes=(Get-ClusterNode -Cluster $ClusterName).Name
Get-NetIntentStatus -ClusterName $ClusterName
get-service -ComputerName $ClusterNodes -Name NetworkATC
Invoke-command -ComputerName $ClusterNodes -ScriptBlock {Get-WinEvent -FilterHashtable @{LogName=“Microsoft-Windows-Networking-NetworkAtc/Operational“} -MaxEvents 100 }| Select TimeCreated,Level,Message,LogName,PSComputerName | Out-Gridview -Title „NetATC Operational“
Invoke-command -ComputerName $ClusterNodes -ScriptBlock {Get-WinEvent -FilterHashtable @{LogName=“Microsoft-Windows-Networking-NetworkAtc/Admin“} -MaxEvents 100 }| Select TimeCreated,Level,Message,LogName,PSComputerName | Out-Gridview -Title „NetATC Admin“
$allgoalstates=Get-NetIntentAllGoalStates -ClusterName $ClusterName
$allgoalstates.Values | ConvertTo-Json -Depth 4
Schreibe einen Kommentar