重建Azure Arc VM時碰到Arc proxy服務錯誤

重建Azure Arc VM時碰到Arc proxy服務錯誤

因為某些原因,我們要重建 Azure Arc VM,在執行指令時一直碰到一個 Arc proxy 錯誤。我們利用 azcmagent check 測試指令來還原錯誤:

$ azcmagent check --location eastasia
INFO    Cloud: AzureCloud
INFO    Testing connectivity to endpoints that are needed to connect to Azure... This might take a few minutes.
INFO    Please start the Arc proxy service. It may have been intentionally stopped. Check the arcproxy.log and event log (Windows) or journal log (Linux) to understand why the Arc proxy is not running.
INFO    For more troubleshooting tips, please refer to https://aka.ms/arc/azcmerror
INFO    AZCM0004: Arc Proxy Not Running
FATAL   Arc proxy is expected to be running, but it is not (current status: activating)

解除Docker Engine on Windows在Terminal需要Admin Mode的限制

解除Docker Engine on Windows在Terminal需要Admin Mode的限制

由於 Docker Desktop 的收費政策的關係,公司電腦不能裝 Docker Desktop 很久了,但某些需求,例如 Windows Container,還是用 Docker 來做比較方便。雖然就授權而言不能安裝 Docker Desktop,但授權沒限制單獨使用 Docker Engine。對於我們只下 Docker CLI 而言,Docker Engine on Windows 已經能完全滿足我們的需求了。

Sonarqube v25 之 Azure DevOps 的 CI 參數

Sonarqube v25 之 Azure DevOps 的 CI 參數

目前升級 Sonarqube v25 之後,一些 Azure DevOps 的 CI 需要做對應的修正。

VS與VSC的GitHub Copilot在處理.github/*-instructions.md的行為差異

VS與VSC的GitHub Copilot在處理.github/*-instructions.md的行為差異

在開始導入 GitHub Copilot 協助開發的過程中,有個重要的 instructions(指引)檔,它能為 GitHub Copilot 提供方案(專案)重要的 Context(情境、脈絡),讓 GitHub Copilot 能提供更精確的回應或處理。不過在開發過程中發現 Visual Studio(VS)與 Visual Studio Code(VSC)在 .github/*-instructions.md 的處理上有些差異。

讓Visual Studio產生符合Conventional Commits的Git提交訊息

讓Visual Studio產生符合Conventional Commits的Git提交訊息

自從 Visual Studio 可以透過 Github Copilot 來產生 Git 提交訊息,我就覺得這功能有點半殘,雖然我知道能在去修改「自訂指令」(custom instructions),但不論自己怎麼改,還是覺得產生的提交訊息還是少了點什麼味。現在終於找到一個好的解決方案 Conventional Commits。Conventional Commits 本身是提示工程(Prompt)的應用,它專注在如何撰寫 Git 提交訊息。