[Azure] Azure Automation Step Note

[Azure] Azure Automation Step Note
#Azure Automation
[Azure] Azure Automation Step Note
#Azure Automation
สั้นๆ พอดีเพิ่งสั่งของจาก Shopee มา แล้วพอเจอขนส่ง J&T Express ที่ไร ของหาย จริงๆ ตอนแรกว่าจะชมเว็บ Tracking ดีมากเลย มีให้ใส่เบอร์ 4 ตัวท้ายของผู้รับ และผู้ส่ง ป้องกันความเป็นส่วนตัวได้ดี แต่ทว่าผู้ขายส่ง 13-JAN-2023 และของค้างที่วังน้อย อยุธยามาตั้งแต่วันที่ 14-JAN-2023 จนถึง 31-JAN-2023 ยังไม่เปลี่ยน พอตาม Support ไป ในวันที่ 14-JAN-2023 ตามหลายรอบมาก เจอแต่ Chat Bot พอบอกว่าจะโพส Pantip ตอน 19-JAN-2023 แล้ว Admin ตอบ 5555 มี Call Center โทรมา บอกว่าจะตามให้ แต่ตอนนี้ 31-JAN-2023 ยังอยู่ที่เดิม สินค้าของเราน่าจะหายแล้ว สงสารคนขายด้วย เรากดจ่ายเงินไม่ได้ และรายการที่ส่งกับ JT Express หายมา 2-3 รอบแล้ว ในเมื่อไม่ได้รับ Update จาก Support ขอให้ Google Index ไว้ให้ลูกค้าท่านอื่นๆพิจารณาแล้วกันครับ ตอนนี้ขอเลี่ยงการใช้บริการไปก่อนครับ
ช่วงนี้เป็นการ Re-Cap งาน Migrate จาก .NET4.7.2 > .NET6 ตัว Blog ช่วงนี้ จะมาแนวๆนี้เยอะหน่อยครับ ^__^ การเตรียมข้อมูล – Test Report – Test Coverage – Sonar Scanner .NET คำสั่งทั้งหมด Reference
Explore infrastructure as code and configuration management Manual deployment Infrastructure as code Snowflake servers.Snowflake = unique configuration that cannot be reproduced (ทำซ้ำไม่ได้)โดยจะได้ตัว configuration drift A consistent server between environments. Deployment steps vary by environment.อันนี้จริง VM > Container ถึงเกิดมาแก้ปัญหานี้ Environments are created or scaled easilyconfigurations to be More verification steps and more elaborate manual processes.จริง ตอนทำงานต้องตรวจ และจด Click + เยอะเหมือนกัน Fully automated creation of environment Updates.ทำ Script มา Check ได้ Increased documentation to account for differences. Transition to immutable infrastructure.มันเป็น Code/Script Run ยังไง – ผลลัพธ์เหมือนเดิม – และ version-controlled ได้ Deployment on weekends to allow time to recover from errors. Use blue/green…
จาก Blog ตอนก่อนที่มีความสงสัยว่าทำไมขนาด Image ของ Container มันโต จึงได้ลองด้วย Podman history เพื่อตรวจสอบไป docker history ก็ใช้งานได้นะ แล้วที่นี่มาเจอคำสั่งที่ทำให้ Layer มันเพิ่มขึ้นแบบงงๆ ตามรูปครับ มันเกิดอะไรขึ้น ? รีดไขมัน – ปัญหาที่ 1: คำสั่ง chown / chown มีเนื้อที่เพิ่มมาแบบงงๆ – ปัญหาที่ 2: คำสั่ง yum install มีเนื้อที่เพิ่มมาแบบงงๆ จากที่แก้ปัญหาที่ 1 และ 2 แล้วลอง build image ใหม่อีกรอบ มาตรวจขนาดกันครับ ลดลงแล้วครับ ^___^ 3.15 GB เหลือ 2.32 GB หลายไป 800 MB ครับ
วันนี้ได้ช่วยทีมแก้ปัญหาพิเศษมา เป็นการ WebAPI ที่เป็น .NET Core 3.1 บน Windows Server 2012 พ2 (มัน EOS ในอีกไม่กี่วันครับ) ปัญหา ปัญหาตอน Start webapi ด้วยคำสั่ง เจอ Error Failed to load the dll: hostfxr.dll มันแปลกๆ นะ ลอง list runtime ดีกว่า ด้วยคำสั่ง ปรากฏว่าเจอ Error ใหม่ครับ 5555 The program can’t start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try reinstalling the program to fix this problem สาเหตุ เท่าที่ดูจาก keyword hostfxr.dll / api-ms-win-crt-runtime-l1-1-0.dll is missing มากจากการที่ขาดตัว Visual C++ Redistributable for Visual Studio 2015 ปล ถ้ามี Visual C++ Redistributable for Visual Studio 2015 อยู่แล้วลอง Repair การแก้ไข ติดตั้ง Visual C++ Redistributable for Visual Studio 2015 Restart และลอง Start webapi ใหม่อีกรอบ Reference…
Introduction to deployment patterns Implement blue-green deployment and feature toggles Implement canary releases and dark launching Implement A/B testing and progressive exposure deployment Integrate with identity management systems Manage application configuration data Reference
จริงๆตอนแรกไม่ได้ตั้งใจจะเขียน Blog ครับ ว่าจะอ้างอิง Blog เดิมๆ ที่เขียนไว้ แต่ทว่ามีการเปลี่ยนแปลงไปเลยคิดว่ามา Update ดีกว่า โดยแผนของผม ปีไหนบ้างที่ชง วัดทิพยวารีวิหาร (วัดกัมโล่วยี่) วัดมังกรกมลาวาส (วัดเล่งเน่ยยี่) – ดันเจี้ยนวัดมังกร อื่นๆ หลังจากแก้ชงเสร็จทำตามแผนครับ สรุป Reference
Reference (พลังงานของแต่ละเมนู)