Phongphumphan
Azure PowerShell 101 EP1: Azure PowerShell Automate Login
ผมได้ไปนั่งพูดคุยแลกเปลี่ยนความรู้ กับคนที่ใช้งาน Azure ด้วยกัน แล้วมีคำถามเกิดขึ้นมาว่า ต้องการ จะใช้ PowerShell Automate Login อย่างไร ผมเลยเขียนบทความนี้ขึ้นมา แต่แค่ Automate Login อย่างเดียว ยังไม่เห็นประโยชน์มากนัก ผมเลยคิดว่า ให้มันนับจำนวน Web Apps ที่มีอยู่ด้วยเลยดีกว่า เรามาดูกันครับว่า มีวิธีการเขียน Script PowerShell อย่างไร
โดยจะขอแบ่งเป็น 4 ขั้นตอนดังนี้ครับ
1. การ Login
โดยปกติเราจะต้อง Login เข้าสู่ Azure Portal สิ่งที่เราต้องเตรียมเพื่อที่จะ Login เข้าสู่ Azure Portal ก็คือ Username Password โดยเราสามารถ แทนค่าลง $userName และ $Password ได้เลย
################
#Login to Azure#
################
$userName ...










![[Tips] แก้ปัญหา Font ตัวเล็กใน Edge แบบถาวร](https://www.mvpskill.com/wp-content/uploads/2018/05/windows10_rez2.jpg)














![[Review] การสอบ Microsoft Certification จากที่บ้าน](https://www.mvpskill.com/wp-content/uploads/2020/04/cert3-218x150.jpg)

![[สรุปงาน] งานสัมนา Power Platform ว่าด้วยการนำ Power BI / Power Apps / Power Automate (Microsoft Flow) ไปใช้แก้ปัญหาในที่ทำงาน](https://www.mvpskill.com/wp-content/uploads/2020/01/Power-Platform-Website-218x150.png)













![[Review] การสอบ Microsoft Certification จากที่บ้าน](https://www.mvpskill.com/wp-content/uploads/2020/04/cert3-100x70.jpg)
