---
# System prepended metadata

title: c#-2
tags: [資安筆記-c#]

---

---
title: c#-2
tags: 資安筆記-c#
---
註冊登入:
https://www.microsoftazurepass.com/
![](https://i.imgur.com/zIJf86o.png)

https://portal.azure.com/#home
確認可以建東西代表是有用的帳密
![](https://i.imgur.com/KeU66xZ.png)
有內容代表OK
![](https://i.imgur.com/vDnalIU.png)


---
要產生的網址
![](https://i.imgur.com/nN7jWXs.png)

建好的檔案要開啟用資料夾
![](https://i.imgur.com/S8bWSus.png)
建![Uploading file..._5dh8vbfik]()

![](https://i.imgur.com/8EXToIh.png)

把Controllers的WeatherForecastController.cs複製成
MathAddController.cs裡面改成
![](https://i.imgur.com/lJb39Ht.png)




---

結果
![](https://i.imgur.com/KBgxbSU.png)

---
做網頁:
新增資料夾+html檔
![](https://i.imgur.com/A8oRjCK.png)




---


![](https://i.imgur.com/Ded1XxH.png)

![](https://i.imgur.com/d2mpAgH.png)


---
html檔內容改成
![](https://i.imgur.com/wraJ2Ir.png)


無法動作網址
![](https://i.imgur.com/fCTT36w.png)


---
下載https://jquery.com/(不要用無痕網頁開)
Other CDNs->Google CDN->jQuery
3.x snippet(新增資料庫在網頁上):
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

![](https://i.imgur.com/kxxFAZG.png)


---
#就是id
VSCODE快速工具Ctrl+Shift+P-->configure display language-->中文

![](https://i.imgur.com/fUiUIgr.png)
結果
![](https://i.imgur.com/bdsf75H.png)


---
在https://portal.azure.com/#home 建網站
![](https://i.imgur.com/WZSXgii.png)


![](https://i.imgur.com/e6cAymS.png)
	Linux連比較快
    選擇機房(之後選擇同機房比較好)
    ![](https://i.imgur.com/1MQnjZv.png)
變更大小
![](https://i.imgur.com/v79VzvA.png)

建立->建立
![](https://i.imgur.com/y4UwQNg.png)
![](https://i.imgur.com/sTq2nn9.png)
![](https://i.imgur.com/H3Fakft.png)
![](https://i.imgur.com/hL4hRCD.png)
![](https://i.imgur.com/FFh7xEx.png)
![](https://i.imgur.com/DU8mXlm.png)
![](https://i.imgur.com/5P6VZs7.png)


---
網址要自己打https://tzu.azurewebsites.net/demo.html
![](https://i.imgur.com/p0A70Lh.png)



---
下載https://docs.microsoft.com/zh-tw/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver15
![](https://i.imgur.com/6iJ9YOJ.png)
![](https://i.imgur.com/zf4zHu3.png)
https://portal.azure.com/#create/Microsoft.WebSiteSQLDatabase

URL的名稱要不同才可以

![](https://i.imgur.com/aHkmdNY.png)
要看網址要按水晶球的圖案
![](https://i.imgur.com/5UsWanS.png)
網址
![](https://i.imgur.com/F3QbYBX.png)
內容
![](https://i.imgur.com/W7zhSFv.png)
