{%hackmd @themes/dracula %} ###### tags: `Azure` # Azure 2023.1/5,3/17,20,4/18 建立雲端 登入Azure https://portal.azure.com/#home 帳號 welcomefir1001@gamil.com ``` 建立資源群組 為RG17 Japan east 帳密admin17 萬用密碼1qaz@wsx加20230105 ``` :::spoiler ![](https://i.imgur.com/UZZza6G.png) ![](https://i.imgur.com/R5dylek.png) ![](https://i.imgur.com/UMUUeyp.png) ![](https://i.imgur.com/LbVYwFd.png) ::: # 建立虛擬機器 ``` 建立虛擬機 RG17 名稱VM1 ``` :::spoiler ![](https://i.imgur.com/cdMEGmP.png) ![](https://i.imgur.com/A9mkI0t.png) ![](https://i.imgur.com/45SgoqT.png) ![](https://i.imgur.com/Ec6I87m.png) ![](https://i.imgur.com/7sWCI2v.png) ![](https://i.imgur.com/95YstbJ.png) ![](https://i.imgur.com/YJtBhS9.png) ::: . ![](https://i.imgur.com/jQ4K3Ys.png) ![](https://i.imgur.com/Ttmvxq2.png) ``` VM1> 網路 > RDP編輯限制 ``` :::spoiler ![](https://i.imgur.com/e8RhpH1.png) ![](https://i.imgur.com/ZfAbE0B.png) ::: . ``` 連線 > 下載RDP檔案(可遠端連線操作) ``` ![](https://i.imgur.com/pKKT4Ye.png) ``` 網頁打192.168.5.94:8080 (第4組) 帳密root 萬用密碼, 控制台 > 使用者 > 新增新增使用者 gary 萬用密碼 加入administrator群組拿權限 ``` ``` 建立虛擬機 新增VM2 帳密admin17 萬用密碼加20230105 ``` :::spoiler ![](https://i.imgur.com/DWAh6Y5.png) ![](https://i.imgur.com/Z3vOCAM.png) ![](https://i.imgur.com/rpZY97o.png) ![](https://i.imgur.com/IiOCWNY.png) ::: . ``` 建立虛擬機 新增VM3 帳密admin17 萬用密碼加20230105 ``` :::spoiler ![](https://i.imgur.com/JeR5TO9.png) ![](https://i.imgur.com/nUJ2X8w.png) ::: . ``` (網頁)VM2 & VM3 新增 HTTP 和 ICMP (可以讓VM2 & VM3 連到外部網路) windows Server 的 Server Manager > Local Server > IE 加強 關閉 windows Server 新增 IIS(Web server) 關防火牆 讓VM2 VM3 可以互相ping VM2 10.0.0.5(虛擬IP) VM3 10.0.0.6(虛擬IP) ``` :::spoiler ![](https://i.imgur.com/V1Bkltz.png) ![](https://i.imgur.com/8saJRrb.png) ![](https://i.imgur.com/cN7T2cN.png) ![](https://i.imgur.com/pyl5ZPF.png) ![](https://i.imgur.com/rot5ryE.png) ::: . ``` VM3 安裝IIS後,C槽找網頁圖示,做小畫家標示VM3,VM2登VM3 IP 10.0.0.6看是否連得上 ``` ![](https://i.imgur.com/dLdYfpE.png) ![](https://i.imgur.com/clfD3qu.png) 2023.3.17 # 06-建立 儲存體帳戶 :::spoiler ![](https://i.imgur.com/eS5l23L.png) ![](https://i.imgur.com/NrtT1uQ.png) ![](https://i.imgur.com/QSy4tO8.png) 預設 ![](https://i.imgur.com/vfkVKP3.png) 預設 ![](https://i.imgur.com/w5gyYlb.png) 預設 ![](https://i.imgur.com/nVwjahc.png) 預設 ![](https://i.imgur.com/Yr1nzTT.png) 預設 ![](https://i.imgur.com/DjW3kH1.png) 建立 ![](https://i.imgur.com/8ihcqkv.png) 建好後 stor111217 ![](https://i.imgur.com/rRTBtTB.png) ::: . ## 檔案共用 :::spoiler ![](https://i.imgur.com/GgFtnTY.png) ![](https://i.imgur.com/MeHEiJr.png) 點進share ![](https://i.imgur.com/1Js30in.png) ![](https://i.imgur.com/tPkiMT1.png) 複製 腳本 ![](https://i.imgur.com/ZpkyJ1E.png) 實機開啟 VMware 新增虛擬機WS2016-Azure 網路bridged IP 192.168.69.114 要同網段 開power shell 貼上腳本>成功認證 ![](https://i.imgur.com/7ahLR3t.png) WS2016-Azure 就有雲端硬碟 share ![](https://i.imgur.com/tbRTjgZ.png) ::: # 07-檔案同步 :::spoiler ![](https://i.imgur.com/wUjoFxS.png) ![](https://i.imgur.com/C4uO5Pk.png) ![](https://i.imgur.com/cFdoJKC.png) ::: ![](https://i.imgur.com/lrKtway.png) ## 安裝StorageSyncAgent WS2016-Azure 官網下載StorageSyncAgent_WS2016(你的Windows server是2016版) 安裝 StorageSyncAgent_V3_WS2016 檔案 :::spoiler ![](https://i.imgur.com/ouDAeFy.png) ![](https://i.imgur.com/xPnk2dv.png) ![](https://i.imgur.com/H8Yb0tE.png) ![](https://i.imgur.com/4hgk5Hp.png) ![](https://i.imgur.com/tG4Q4jM.png) ![](https://i.imgur.com/XTLnQdX.png) 登入微軟 ![](https://i.imgur.com/jPhA7ja.png) ![](https://i.imgur.com/i1OPHaW.png) ![](https://i.imgur.com/DahPAxq.png) ![](https://i.imgur.com/Cjedv76.png) ::: ## 設定同步群組 實機到Microsoft Azure網頁 尋找剛剛的sync17 > 同步群組 :::spoiler ![](https://i.imgur.com/PzJqhGS.png) ![](https://i.imgur.com/24MPk2d.png) ![](https://i.imgur.com/76ePfeS.png) ![](https://i.imgur.com/se2OELu.png) ![](https://i.imgur.com/xqIVNl9.png) ::: # 28-Azure Backup 地端備份 & NAS備份 官網講解 https://learn.microsoft.com/zh-tw/azure/backup/backup-overview :::spoiler ![](https://i.imgur.com/CU41S6N.png) ![](https://i.imgur.com/Bg9yAfT.png) 正在部屬中 ![](https://i.imgur.com/PUirjYg.png) ![](https://i.imgur.com/al6X4uS.png) ![](https://i.imgur.com/dC5KP28.png) 下載代理程式>安裝到 WS2016-Azure ![](https://i.imgur.com/oINgRy9.png) 下載代理程式>安裝到 WS2016-Azure ![](https://i.imgur.com/8lH1JT7.png) WS2016-Azure 安裝 代理程式 MARSAgentInstaller.exe ![](https://i.imgur.com/22u62pZ.png) ![](https://i.imgur.com/7gDPq1S.png) ![](https://i.imgur.com/43NiR1o.png) ![](https://i.imgur.com/sW2obrL.png) 剛剛下載的金鑰保存庫認證 ![](https://i.imgur.com/rTcvAgG.png) ![](https://i.imgur.com/f3Vt22Q.png) 產生複雜密碼 放在C:\\Azure (新資料夾Azure) 這很重要 ![](https://i.imgur.com/sItGZNn.png) ![](https://i.imgur.com/lwOTM8l.png) ![](https://i.imgur.com/G1LfdLw.png) 排程備份 ![](https://i.imgur.com/rN1BqMp.png) ![](https://i.imgur.com/p7TzCPe.png) 選取你要備份的檔案 (因為備份檔案資料越大越貴,所以備份小檔案) ![](https://i.imgur.com/FEnGNQg.png) ![](https://i.imgur.com/92xPn4l.png) ![](https://i.imgur.com/HuFh7Ib.png) ![](https://i.imgur.com/k9yXWO9.png) ![](https://i.imgur.com/GYcEEXH.png) ![](https://i.imgur.com/WXJxrok.png) 立即備份 ![](https://i.imgur.com/p4SZrBH.png) ![](https://i.imgur.com/bW6yI7I.png) ![](https://i.imgur.com/cENVwAP.png) ![](https://i.imgur.com/ZLoGKL1.png) ![](https://i.imgur.com/vllY9fk.png) Microsoft Azure 網頁 看你是否有備份到檔案 ![](https://i.imgur.com/whhUzwL.png) ![](https://i.imgur.com/fmhxJ8r.png) ![](https://i.imgur.com/a1MFqJb.png) ::: ==NAS 備份== ## 練習 復原資料 :::spoiler ![](https://i.imgur.com/o5gc611.png) ![](https://i.imgur.com/uFpOTUH.png) 掛接 ![](https://i.imgur.com/LIPZY8u.png) ![](https://i.imgur.com/K9W2RKj.png) 你的C槽 就會有虛擬磁碟機出現 ![](https://i.imgur.com/e86NHGM.png) 不要用就卸載 ![](https://i.imgur.com/l4EYybZ.png) ::: ## 練習 刪除 Azure Backup & 檔案同步 :::spoiler 刪除你剛剛設定的,不好刪除 要依照說明進行刪除 ![](https://i.imgur.com/sozoxLR.png) 刪除sync17 ![](https://i.imgur.com/E0zNf6G.png) ![](https://i.imgur.com/UChXTN8.png) ![](https://i.imgur.com/JCrU2yS.png) ![](https://i.imgur.com/RVC5KXO.png) ![](https://i.imgur.com/M0iWqud.png) ![](https://i.imgur.com/3AJPrC6.png) ![](https://i.imgur.com/TIbKGWO.png) ![](https://i.imgur.com/dVzHel3.png) ![](https://i.imgur.com/b5XPJmx.png) ![](https://i.imgur.com/WezT5iR.png) ![](https://i.imgur.com/gjkN6zH.png) ![](https://i.imgur.com/6gMZJOZ.png) 刪除 Valut17 ![](https://i.imgur.com/iSCxYz6.png) 無法刪除恢復服務保管庫,因為保管庫中已有資源。 : WS2016.TEST17.COM. 請確保已從保管庫中註銷所有容器,並且已刪除與保管庫關聯的所有專用端點,然後重試操作。 有關更多詳細信息 ![](https://i.imgur.com/YgHmivo.png) ![](https://i.imgur.com/R9To7Vq.png) ![](https://i.imgur.com/QuCWDdc.png) ![](https://i.imgur.com/vwIEi6w.png) ![](https://i.imgur.com/AAbNHcY.png) ::: 2023.3.20 # 25-Azure SQL Database 受控雲端資料庫服務 官網講解 https://learn.microsoft.com/zh-tw/azure/azure-sql/database/sql-database-paas-overview?view=azuresql 新增Azure SQL Database 命名sql1112 :::spoiler ![](https://i.imgur.com/KM05MQ3.png) ![](https://i.imgur.com/xhqfvrU.png) ![](https://i.imgur.com/UunuB2w.png) 新增管理員 student 1qaz@wsx ![](https://i.imgur.com/7OTVAOQ.png) 設定防火牆 ![](https://i.imgur.com/63fQM0Y.png) 新增防火牆 自動偵測實體IP位置 ![](https://i.imgur.com/Htfp2Nd.png) 登入管理者 ![](https://i.imgur.com/Ej1fjzc.png) ![](https://i.imgur.com/qHv4iZc.png) 載入檔案 ![](https://i.imgur.com/0S70B18.png) ![](https://i.imgur.com/LrWjRPW.png) ![](https://i.imgur.com/F6PkLaC.png) ![](https://i.imgur.com/vWWb1Ll.png) 複製框內字串 ![](https://i.imgur.com/zOL1IlU.png) ![](https://i.imgur.com/6lEG8Gp.png) 貼剛剛複製的內容,密碼改成自己的密碼 ![](https://i.imgur.com/G8OSK3M.png) 執行 ![](https://i.imgur.com/3hGKuiD.png) 結果 ![](https://i.imgur.com/0nQkmUV.png) ::: # 12-Point-to-Site 點到站 新增虛擬網路閘道 點對站設定 :::spoiler 先新增虛擬機 命名WS2016 ![](https://i.imgur.com/5H1Mqzl.png) 建立虛擬網路閘道 ![](https://i.imgur.com/GZWZjqZ.png) ![](https://i.imgur.com/ZVGvqp8.png) ![](https://i.imgur.com/eFDIJND.png) 建立後,需等待約5min,Gateway就建立完成。 ![](https://i.imgur.com/R2MI0P1.png) VMware WS2016虛擬機 把Azure2資料夾複製進去 makecert.bat 點擊2下 ![](https://i.imgur.com/g2mLnfn.png) 確定出現LabRootCertificate.cer出現後 開啟"取得根憑證的 Base64 編碼.txt",要確定你的檔案路徑是否正確,將內容複製 ![](https://i.imgur.com/5M5T1il.png) 開PowerShell 貼上 ![](https://i.imgur.com/ncK5e3v.png) 會自動給憑證 ![](https://i.imgur.com/KmnQofS.png) 網頁 所有資源 ![](https://i.imgur.com/JimAT9q.png) 點對站設定 ![](https://i.imgur.com/aPo2oXa.png) 192.168.65.0/24(這是VMware WS2016這台虛擬機的IP網段) 根憑證 命名LabRootCertificate,公開憑證資料 > 剛剛新成的憑證貼上 儲存 ![](https://i.imgur.com/JZsbO3d.png) 下載VPN用戶端,到VMware SW2016虛擬機裡 >解壓縮 ![](https://i.imgur.com/Ld5sI3M.png) VMware WS2016虛擬機 ![](https://i.imgur.com/cQH9cX6.png) ![](https://i.imgur.com/ZRPMrWY.png) ping 10.4.0.4是Azure中SW2016的Private IP 沒有通是因為P2S VPN尚未連通 ![](https://i.imgur.com/ZQDRhni.png) 到網路連線 > WS2016-vnet > 進行連線 ![](https://i.imgur.com/nYEklFC.png) 找不到可以使用這個可延伸的驗證通訊協定憑證 。(連線錯誤798) ![](https://i.imgur.com/uKPAxii.png) ==解決方法 連線錯誤798== ![](https://i.imgur.com/2I6npzM.png) ![](https://i.imgur.com/cYVrN0H.png) ![](https://i.imgur.com/9k9WUwc.png) ![](https://i.imgur.com/iaa2e9G.png) ![](https://i.imgur.com/JhEuUc0.png) 去看憑證-目前使用者憑證,是否有加入到 受信任的根憑證授權單位 ![](https://i.imgur.com/T5JGZnl.png) 再連線一次 就成功了 ![](https://i.imgur.com/tSv44G8.png) ping 10.4.0.4(Azure WS2016的IP,記得防火牆要關) 做完沒有要用到就先刪除Lab-Vnet-Gateway17的點對站設定 ::: # QNAP NAS備份至 Azure http://i-services.info/mscloud/?p=5743 # 如何使用 Rsync 將檔案從 Synology NAS 備份到運行 QTS 或者 QuTS 的 QNAP NAS? https://www.qnap.com/zh-tw/how-to/faq/article/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8-rsync-%E5%B0%87%E6%AA%94%E6%A1%88%E5%BE%9E-synology-nas-%E5%82%99%E4%BB%BD%E5%88%B0-qnap-%E9%81%8B%E8%A1%8C-qts-%E6%88%96%E8%80%85-quts-%E7%9A%84-nas # 如何將 Qsync 資料夾中的檔案及文件備份至其他的 QNAP NAS? https://www.qnap.com/zh-hk/how-to/tutorial/article/%E5%A6%82%E4%BD%95%E5%B0%87-qsync-%E8%B3%87%E6%96%99%E5%A4%BE%E4%B8%AD%E7%9A%84%E6%AA%94%E6%A1%88%E5%8F%8A%E6%96%87%E4%BB%B6%E5%82%99%E4%BB%BD%E8%87%B3%E5%85%B6%E4%BB%96%E7%9A%84-qnap-nas