當我嘗試使用Microsoft Azure 來建立Virtual Machine時
嘗試使用一個之前已刪除的Virtual Machine用過的DNS 名稱時 出現了以下的錯誤信息
“A cloud service with the specified name already exists in one of your subscriptions”
[之前是因為選擇了比較遠的Region但是好像在Azure的Config上不能改變VM 的Region所以便決定刪除後從新再安裝]
做了一會research 之後發現..
原來當你在Azure上建立Virtual Machine的時候.
他會自動幫你建立一個Cloud Service的..
但當你刪除這個Virtual Machine時..他又不會自動幫你刪除這個Cloud Service
所以當我嘗試建立新的VM 時使用同一個DNS 名稱時便會出現
“A cloud service with the specified name already exists in one of your subscriptions”
解決方法十分簡單
我們只需要按左選的選單上的”Cloud Serivces”
之後選擇需要刪除的”Cloud Services“便可以了
之後便可以再次建立Virtual Machine了
Hope you find it useful