# Azure 虛擬主機部屬iis .net專案 ###### tags: `火箭` # 申請 完整申請流程ptt by浩浩 https://drive.google.com/file/d/18iWMQep84pU3LiZjbVsf51iBzLfAW5Z_/view?usp=sharing # 部屬iis ![](https://i.imgur.com/kosR1is.png) 「新增角色及功能精靈」,直接下一步。 ![](https://i.imgur.com/7WuGojb.png) 選擇「角色型或功能型安裝」,下一步。 ![](https://i.imgur.com/jTPHB3F.png) 確認伺服器資訊,直接下一步。 ![](https://i.imgur.com/zYSr7AT.png) 請勾選「網頁伺服器(IIS)」並確定「新增功能」。 ![](https://i.imgur.com/69DDsrD.png) 到「.NET Framework 3.5 功能」點開左邊向右的三角指標,將「HTTP 啟用」和「非HTTP啟用」選項勾選並確定「新增功能」。 到「.NET Framework 4.5 功能」點開左邊向右的三角指標,將「WCF 服務裡的 TCP啟用」選項勾選並確定「新增功能」。 一切依照自己的需求勾選,再按「下一步」。 ![](https://i.imgur.com/1HUPMs4.png) ![](https://i.imgur.com/lgkjE3c.png) ![](https://i.imgur.com/2RnnFcI.png) 角色服務 到「安全性」,將「IP及網域限制」和「集中式 SSL 憑證支援」選項勾選。 到「FTP 伺服器」,將所有選項勾選。(因為我們是要用到 IIS 的FTP功能來維護網站的資料) 一切依照自己的需求勾選,再按「下一步」。 ![](https://i.imgur.com/XuHCaqN.png) # Ftp站台 ![](https://i.imgur.com/5N9yZms.png) 開啟 IIS 管理員,新增 FTP 站台。 ![](https://i.imgur.com/LQUzI8n.png) 繫結和 SSL 設定,選擇沒有SSL。 ![](https://i.imgur.com/Pl3iWih.png) 驗證和授權資訊,一樣我們採用與 Server 同一個最大權限使用者的帳號密碼。 ![](https://i.imgur.com/JNtL3LD.png) 完成新增 FTP 站台。 ![](https://i.imgur.com/FvRlemR.png) 伺服器防火牆 ![](https://i.imgur.com/2LbTDX8.png) 控制台 Windows 防火牆。 ![](https://i.imgur.com/NCl7c8N.png) Microsoft Azure 防火牆 # 安裝SQL SERVER https://drive.google.com/file/d/1zVlTDenpRmVYzZkRCRLFucfza-oRwHaG/view?usp=share_link # 安裝SSMS https://drive.google.com/file/d/1zPidGpsLtUdChvZcFgNcpLD_-qvZA1Jx/view?usp=share_link # mssql 外部連線進虛擬機 ![](https://i.imgur.com/JbWtLix.png) 打開sql config manger ![](https://i.imgur.com/DftZmzV.png) Browser 改成自動 ![](https://i.imgur.com/4K5Bs0x.png) Tcp/ip 改成enabled 並且port 改1433 ![](https://i.imgur.com/6Gibg8n.png) mssql 照圖片設定 ![](https://i.imgur.com/GGgIeHE.png) 防火牆 記得打開1433 port 重開機即可連線 連線 ip 為虛擬機ip 帳密則自己設定在mssql ![](https://i.imgur.com/WCyAH7E.png)