2016年3月30日 星期三

小編的客戶在Azure的Cloud Service下建立好公司官網的VM , 同事會使用Public IP存取開發程式 , 要如何保留原來的Public IP , 讓同事方便作業 ?

小編的客戶在Azure的Cloud Service下建立好公司官網的VM , 同事們會使用Public IP存取

修改網頁程式 , 要如何保留原來的Public IP , 讓同事方便作業 ?

1.關於這個需求 , 若是使用Resource Group 建立的VM只要直接在Azure Management Portal

修改使用保留IP即可



2.先使用Azure Powershell登入Azure , 執行add-azureaccount , 並輸入帳號 / 密碼





3.小編的客戶是使用Service Group建立的VM , 無法在Azure Management Portal上直接修改

只能透過Azure Powershell執行指令保留IP Address , 先輸入以下指令保留IP Address

New-AzureReservedIP –ReservedIPName <your reserved IP name> –Label FSReservedLabel –Location <VM location>



4.指用Get-AzureReservedIP指令確認已保留IP Address


5.使用Set-AzureReservedIPAssociation -ReservedIPName -ServiceName關聯要使用保留IP Address的Service Name




6.同時可由Azure Management Portal看到已成功保留IP Address