Frissítések figyelése a PowerShell-lel Azure Stack hub-banMonitor updates with PowerShell in Azure Stack Hub
A frissítések figyeléséhez és kezeléséhez használhatja a Azure Stack hub felügyeleti végpontokat.You can use the Azure Stack Hub administrative endpoints to monitor and manage your updates. Elérhetők a PowerShell-lel.They're accessible with PowerShell. Az Azure Stack hub PowerShell-lel való beállításával kapcsolatos utasításokért lásd: a PowerShell telepítése Azure stack hubhoz.For instructions on getting set up with PowerShell on Azure Stack Hub, see Install PowerShell for Azure Stack Hub.
A frissítések kezeléséhez a következő PowerShell-parancsmagokat használhatja:You can use the following PowerShell cmdlets to manage your updates:
ParancsmagCmdlet | LeírásDescription |
---|---|
Get-AzsUpdateGet-AzsUpdate | Az elérhető frissítések listájának beolvasása.Get the list of available updates. |
Get-AzsUpdateLocationGet-AzsUpdateLocation | A frissítési helyszínek listájának beolvasása.Get the list of update locations. |
Get-AzsUpdateRunGet-AzsUpdateRun | A frissítési futtatások listájának beolvasása.Get the list of update runs. |
Install-AzsUpdateInstall-AzsUpdate | Egy adott frissítés alkalmazása egy frissítési helyen.Apply a specific update at an update location. |
Folytatás – AzsUpdateRunResume-AzsUpdateRun | Egy korábban elindított frissítési futtatást folytat, amely sikertelen volt.Resumes a previously started update run that failed. |
A frissítési futtatások listájának lekéréseGet a list of update runs
A frissítési futtatások listájának lekéréséhez futtassa a következő parancsot:To get the list of update runs, run the following command:
Get-AzsUpdateRun -UpdateName Microsoft1.0.180302.1
Sikertelen frissítési művelet folytatásaResume a failed update operation
Ha a frissítés sikertelen, akkor folytathatja a frissítés futtatását, ha a következő parancs futtatásával kilépett:If the update fails, you can resume the update run where it left off by running the following command:
Get-AzsUpdateRun -Name 5173e9f4-3040-494f-b7a7-738a6331d55c -UpdateName Microsoft1.0.180305.1 | Resume-AzsUpdateRun
HibaelhárításTroubleshoot
További információ a frissítések hibaelhárításáról: Azure stack hibaelhárítás.For more information on troubleshooting updates, see Azure Stack Troubleshooting.