我已經成功地使用這個配方在過去遷移虛擬網絡,包括連接虛擬機:https://docs.microsoft.com/en-us/azure/virtual-machines/virtual-machines-linux-cli-migration-classic-resource-manager無法從經典遷移Azure的虛擬機到胳膊:RoleStateUnknown
但是今天,還當我上週試過了,不管重新啓動的次數,我得到這個錯誤(Azure的CLI):
> azure network vnet prepare-migration "<RG-NAME>"
info: Executing command network vnet prepare-migration
error: BadRequest : Migration is not allowed for HostedService
<CLOUD-SERVICE> because it has VM <VM-NAME> in State :
RoleStateUnknown. Migration is allowed only when the VM is in one of the
following states - Running, Stopped, Stopped Deallocated.
虛擬機實際上是在平穩運行,所以說,在Azure門戶。 那麼有什麼想法如何擺脫這個混亂?
之所以選擇從頭開始創建新的虛擬機一個新的RG並通過建立的Vnet對等遷移數據庫。唯一的問題是,我似乎無法將保留IP移到我的新負載平衡器。 – flensted
@flensted保留的IP可以通過雲服務進行遷移。我已經更新了我的答案。 –