Category Archives: Tech

Configuring self-hosted runners with a default self-signed certificate for GitHub Enterprise Server

Quick fix:

  1. Copy “/etc/haproxy/ssl.crt” from GHE Server to Runner machine under ” /usr/local/share/ca-certificates/ “
  1. Updated the certificate in the runner server by running ” sudo update-ca-certificates “
$ az vm image list --all -f GitHub-Enterprise | grep '"urn":' | sort -V
#Standard E4s v3 (4 vcpus, 32 GiB memory)
$ az vm create -n myghesvr -g My-01-RG --size Standard_E4ds_v4 -l southeastasia --image GitHub:GitHub-Enterprise:GitHub-Enterprise:3.3.3 --storage-sku StandardSSD_LRS
$ az vm disk attach --name ghevm-data-01 --new --resource-group My-01-RG --size-gb 100 --sku Standard_LRS --vm-name myghesvr  
$ az vm open-port -n myghesvr  -g My-01-RG --port 8443
$ az vm open-port -n myghesvr -g My-01-RG --port 122 --priority 903
$ az vm open-port -n myghesvr -g My-01-RG --port 443 --priority 904
$ az vm open-port -n myghesvr -g My-01-RG --port 80 --priority 905


Screenshot: Local machine:

$ scp -P 122 admin@myghesvr.exzilla.com:/etc/haproxy/ssl.crt .
$ scp ssl.crt azuser@gherne4.exzilla.com:/home/azuser/ghe7-ssl.crt

Screenshot: Runner machine:

azuser@myghesvr:~$ openssl x509 -noout -text -in /etc/haproxy/ssl.crt
azuser@gherne4:~$ sudo cp ghe7-ssl.crt /usr/local/share/ca-certificates/
azuser@gherne4:~$ ls -l /usr/local/share/ca-certificates
total 4
-rw-r--r-- 1 root root 1618 Feb 13 09:35 ghe7-ssl.crt
azuser@gherne4:~$ sudo update-ca-certificates
Updating certificates in /etc/ssl/certs…
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d…
done.
azuser@gherne4:~$

Sample YAML file: m18h/sample-actions-ghe7-self-signed.yaml at master · fujute/m18h (github.com)

Alternative: Disabling TLS certificate verification

## https://docs.github.com/en/actions/hosting-your-own-runners/monitoring-and-troubleshooting-self-hosted-runners#disabling-tls-certificate-verification
##
export GITHUB_ACTIONS_RUNNER_TLS_NO_VERIFY=1
./config.sh --url https://github.com/octo-org/octo-repo --token
./run.sh

See Also:

* Troubleshooting GitHub Actions for your enterprise – GitHub Docs
* https://github.com/actions/runner/issues
* Monitoring and troubleshooting self-hosted runners
* Troubleshooting GitHub Actions for your enterprise

Azure Web App for Containers & Github Action

RESOURCES ” ( The journey through Azure Web Apps | Meetup – 08-March-2021)

Github Workflow:

  • https://docs.microsoft.com/en-us/azure/app-service/deploy-container-github-action?tabs=publish-profile

Configure continuous deployment – Azure App Service | Microsoft Docs

  • https://github.com/Azure/actions-workflow-samples/blob/master/assets/create-secrets-for-GitHub-workflows.md
  • https://github.com/Azure/actions-workflow-samples

App Service & Deployment:

  • https://docs.microsoft.com/en-us/azure/app-service/deploy-best-practices
  • https://docs.microsoft.com/en-us/azure/developer/terraform/provision-infrastructure-using-azure-deployment-slots

Tutorial App Service & Container App:

  • https://docs.microsoft.com/en-us/learn/modules/deploy-run-container-app-service/
  • https://docs.microsoft.com/en-us/azure/app-service/tutorial-multi-container-app
  • https://docs.microsoft.com/en-us/azure/app-service/tutorial-custom-container?pivots=container-linux
  • https://code.visualstudio.com/docs/containers/app-service
  • https://docs.microsoft.com/en-us/azure/devops-project/devops-starter-gh-web-app
  • https://github-actions-hero.now.sh

Reference:

  • https://azure.microsoft.com/en-us/services/app-service/containers/#features
  • https://docs.microsoft.com/en-us/azure/architecture/solution-ideas/articles/dev-test-paas
  • https://docs.microsoft.com/en-us/learn/modules/stage-deploy-app-service-deployment-slots/1-introduction
  • https://docs.microsoft.com/en-us/learn/modules/deploy-run-container-app-service/
  • https://azure.microsoft.com/en-us/services/app-service/containers/


FAQ:

  • https://docs.github.com/en/actions/reference/usage-limits-billing-and-administration
  • https://docs.microsoft.com/en-us/azure/cosmos-db/local-emulator

การเตรียมตัวก่อนการเข้าร่วม Developer Workshop – Visual Studio Dev Essentials

เนื่องจากเป็นการอบรมเชิงปฏิบัติ ผมแนะนำสิ่งที่ต้องเตรียมก่อนเข้าอบรมดังต่อไปนี้นะครับ

  1. สมัครสมาชิก ( ฟรี ) โดยใช้ email ที่เป็น @outlook.com หรือ @hotmail.com ที่ https://www.visualstudio.com/dev-essentials/ ซึ่งหลังจากสมัครเรียบร้อยแล้ว ที่ web Browser จะมีหน้าตาประมาณนี้ครับ

Visual Studio Dev Essentials

Continue reading การเตรียมตัวก่อนการเข้าร่วม Developer Workshop – Visual Studio Dev Essentials

ข้อมูลประกอบการอบรมเชิงปฏิบัติ WUNCA35

Topics: การอบรมเชิงปฏิบัติ การประยุกต์ใช้ Cloud Computing สำหรับงานวิจัย และการเรียนการสอน
Date: 21-July-2017
Venue : http://wunca.uni.net.th/wunca35/
Agenda:
9:00 – 10:30 The fundamental concepts of cloud computing and how to apply them
10:30 – 10:45 Break
10:45 – 11:45 Using Node.js to build a back-end application
11:45 – 13:00 Lunch
13:00 – 14:30 How to deploy application to a cloud hosting platform with persistent data
14:30 – 14:45 Break
14:45 – 15:45 Data Science and Machine Learning
15:45 – 16:00 Wrap-up

Prerequisite : การเตรียมตัวก่อนเข้าอบรม

  1. สมัครสมาชิก ( ฟรี ) โดยใช้ email ที่เป็น @outlook.com หรือ @hotmail.com ที่ https://www.visualstudio.com/dev-essentials/ ซึ่งหลังจากสมัครเรียนร้อยแล้ว ที่ web Browser จะมีหน้าตาประมาณนี้ครับ

Continue reading ข้อมูลประกอบการอบรมเชิงปฏิบัติ WUNCA35

ข้อมูลประกอบการบรรยายจาก WUNCA33– Microsoft Azure IoT Services

ข้อมูลจาการบรรยาย “ Bringing the Internet of Things to life with Microsoft Azure IoT Services “  – 14-July-2016

Slidehttps://1drv.ms/b/s!AgZyyCR4CCEsh4AJZ6Uzje5Ew3OpBg

https://youtu.be/L8xjSjxaaVA
Case study  จาก ThyssenKrupp Elevators

* https://www.microsoft.com/en-gb/server-cloud/customer-stories/thyssen-krupp-elevator.aspx

Continue reading ข้อมูลประกอบการบรรยายจาก WUNCA33– Microsoft Azure IoT Services

Azure Community Meeting in Bangkok #1 | 26-Dec-2015

Azure Community Meeting in Bangkok #1 | 26-Dec-2015
งานนี้ Azure Thailand User Group & Narisa.com ขอจัดขึ้นเล็ก ๆ เพื่อให้เพื่อนที่สนใจใน Technical และเรื่องกระบวนการจัดการบริหาร Microsoft Azure โดยครอบคลุมเรื่อง Extending  Datacenter , DevOps และ IoT ได้มีเวลามาคุยกันก่อนสิ้นปีเรื่องความรู้ และกิจกรรมที่เกี่ยวข้อง งานนี้เลยขอนำแสนอเป็นรูปแบบบรรายากาศสนุก กันเอง ก่อนหยุด ปีใหม่ ครับ

Continue reading Azure Community Meeting in Bangkok #1 | 26-Dec-2015

Microsoft Azure DevCamp: Cloud Development | 27-Nov-2015

Let's dev this. 27-Nov-2015

Microsoft Azure Dev Camps or Azure Cloud Developer Essential Camps are free & fun events for developers, by developers. You do not want to miss this unique event.

Location : Microsoft Thailand , Auditorium I ,CRC Tower ,Bangkok
Date : 27-Nov-2015
Time : 9:00 – 17:00
Registration : http://aka.ms/devcamp2711
# of seats : 35
Instructor : Jirawat Padungkijjanont , Developer & Owner, NantCom (Profile@Linkedin )
Language : Thai (ไทย)
Fees : This event is brought to you by your local Microsoft office and is free of charge. However, delegates are responsible for booking and paying for their own travel and accommodation.

What am I going to learn?

At this Microsoft Azure DevCamp you will learn how to use the new Microsoft Azure features and services including  App Service, and Visual Studio 2015 to build and move a variety of apps to the cloud. You will see how to build websites, mobile applications, and enterprise-class applications.

Continue reading Microsoft Azure DevCamp: Cloud Development | 27-Nov-2015

Office 365 Fundamentals [บรรยายไทย]

วิชา Office 365 Fundamentals  นี้เป็นพื้นฐานสำคัญยิ่งสำหรับ  IT Professionals  ที่จะทำความเข้าใจหลักการทำงาน และแนวทางการดูแลรักษาระบบ Office 365 ที่อยู่ในความรับผิดชอบ

ท่านสามารถเรียนได้ ฟรี พร้อมทั้ง download เนื้อหา video การสอน ได้ที่  https://channel9.msdn.com/Series/Office-365-Fundamentals

ในวิชานี้ได้เริ่มตั้งแต่การแนะนำ Architecture ของ Office 365 ในมุมมองของ IT Professional และรวมไปถึงการ Deploy  และแนวทางการดูแลบริการต่าง ๆ หลังจากเริ่มมีการใช้งานแล้ว

Office 365 Fundamentals with Thai Sub

นอกจากนั้นเนื้อก็ยังเหมาะสำหรับท่านที่กำลังเตรียม 71-346: Managing Office 365 Identities and Requirements และ 71-347: Enabling Office 365 Services อีกด้วยเช่นกัน วิชานี้สอนโดย คุณ  Alistair Speirs – Senior Operations Program Manager และคุณ Jeff Medford – Senior Technical Product Manager

Continue reading Office 365 Fundamentals [บรรยายไทย]

Microsoft Azure Fundamentals: Websites [บรรยายไทย]

มาถึงลำดับที่ 2 ที่ได้มีการทำการบรรยายไทย  เรื่องที่ 2 นี้ผมขอนำเสนอเรื่องราวที่เกี่ยวกับ Cloud Computing โดยเลือกเรื่อง  Microsoft Azure Fundamentals: Websites มาแปล ซับ ( Sub Title )  ซึ่งก็ต่อเนื่องจาก มาจากวิชา Networking Fundamentals  ที่ได้รับการตอบรับอย่างดีในช่วงที่ผ่านมา

image

จากความสนใจ Microsoft Azure ที่มีเพิ่มขึ้นเรื่อย ๆ  และหนึ่งในลักษณะงาน หรือ workload ที่เราสามารถเริ่มต้นใช้งานกันง่าย ๆ สำหรับ Azure ก็คงหนีไม่พ้น Azure App Service Web Apps ( ชื่อเดิม Azure Websites ) ผมคิดว่าเรื่องนี้น่าจะเป็นเรื่องที่เป็นประโยชน์ให้กับท่านที่สนใจอีกเรื่อง

อีกทั้ง  ในวันที่ 13 มีนาคมที่ผ่านมา ทาง Microsoft ก็ได้มีการแนะนำ Azure for Students  ซึ่งเป็นโครงการที่ออกมาเพื่อสำหรับนักศึกษาได้มีโอกาสใช้ Azure App Service Web Apps สำหรับการสร้าง การdeploy  โดยได้ใช้ภาษาที่ตนถนัดอย่างเช่น ASP.NET, Java, PHP, Node.js  หรือ Python.

ท่านสามารถเรียนได้ ฟรี พร้อมทั้ง download เนื้อหา  video การสอน และ powerpoint ที่ใช้สำหรับการสอบได้ที่ http://www.microsoftvirtualacademy.com/training-courses/microsoft-azure-fundamentals-websites 

Continue reading Microsoft Azure Fundamentals: Websites [บรรยายไทย]

สาธิตการใช้ Microsoft Azure Backup ภาคภาษาไทย

หากท่านเป็นคนหนึ่งที่ใช้เวลาในการจัดการบริหาร backup Archive และต้องใช้เวลาอีกจำนวนหนึ่งมาดูแล hardware/software เพื่อมาช่วยให้เกิดความมั่นใจว่าข้อมูลที่สำคัญของเราได้รับการคุ้มครองอย่างดี

Video นี้จะได้นำเสนออีกทางเลือกที่สะดวก คุ้มค่าและปลอดภัย สำหรับการ backup ข้อมูลโดยใช้ Azure Backp  โดยวีดีโอได้นำเสนอลำดับขั้นตอนสำหรับ การ backup และ recovery เพื่อให้ท่านสามารถติดตามและเริ่มใช้งาน Azure Backup ได้ในระยะเวลาอันสั้น

(วีดีโอ สาธิตการ backup และ recovery ข้อมูล โดยทำงานร่วมกับ Microsoft Azure Backup)

วีดีโอสาธิตการใช้งานนี้ มีตารางเวลาขอการนำเสนอตามนี้ครับ

  • 4:25 สาธิตการ Set up Microsoft Azure Backup
  • 14:02 สาธิตการ Back upไปยัง Microsoft Azure Backup
  • 17:39 สาธิตการ recovery ข้อมูลที่ศูนย์หาย
  • 20:50 อธิบายเรื่อง retention

เพิ่มเติม: ในกรณีที่ต้องการกู้ข้อมูลที่เก็บไว้ที่ Azure Back โดยต้องการนำข้อมูลนั้นไปที่เครื่องอื่นก็สามารถได้โดยทำการ Setup Microsoft Azure Backup เช่นเดียวกันกับเครื่องแรก ( ดูได้จากนาทีที่ 4:25 ) โดยให้ใช้ Vault Credentials ที่ได้จาก backp Vault เดียวกันกับ จากนั้นตอน recover Data ก็ให้เลือก “Another Server “ ดังรูป

image
( ภาพการเลือกเครื่องต้นฉบับของการสำรองข้อมูลที่ให้ Azure Backup )

และเพิ่มเติมสำหรับท่นที่ต้องการศึกษาการการทำงานของ Microsoft Azure Virtual Machine ผมขอแนะนำ รายวิชา Microsoft Azure IaaS Deep Dive Jump Start ที่ Microsoft Virtual Academy นะครับซึ่งจะเป็นข้อมูลสำคัญให้ท่านสามารถเริ่มต้นใช้งาน Microsoft Azure Virtual Machine ได้อย่างถูกทาง

หากท่านใดมีคำถามหรือข้อสงสัยเรื่อง Azure Backup จาก Video นี้รบกวนถาม comment ของ blog นี้ (http://www.fuju.org/?p=20298 ) นะครับ เพื่อขอสงสัยนั้นจะได้เป็นประโยชน์ต่อเพื่อน ๆ ท่านอื่นด้วยครับ ขอบคุณครับ

 

See also: