Azure_portal_devops_config

AAD > Enterprise Application > devops > User : Azure Devops 側還是無法.取得訂閱資訊 就算由 Owner 建好 Service Connection 也無法讓 guest、member 直接使用,原因是操作 pipeline 的 account 對於訂閱的權限不夠。 從 Azure Portal 處給予該 account 至少 Reader 的角色 訂閱 > IAM > add role assignment 但是此法有缺點,無法單一授權、指定 project 授權。

January 1, 2022

Azure_website

Static Website Pages –> Blob Ref:Host a static website in Azure Storage C#.Net API –> Azure App Service TODO

December 29, 2021

Azure_subscriber

購買 Azure 訂閱中 Devops 要注意的部分, 可以使用 Devops 的訂閱狀況有 3 種: Azure basic Visual Studio Enterprise Visual Studio Professional ps. 若您的訂閱都不是上列方案,卻可以使用 Repos、Pipelines MS Hosted 的話就恭喜了

November 26, 2021

Azure Pipelines 設定 SSH 不用密碼的 Service Connection

因為 Azure Devops 的 Service Connection 上面沒有詳細說明,這邊紀錄下來。 依照 安裝 OpenSSH 在 VM 上安裝 SSH Server 參考 OpenSSH 金鑰管理 建立使用者金鑰 務必參考這一段 部署公開金鑰

November 9, 2021

幾項關於 Azure Pipelines 的紀錄

基本原則 Variables in trigger block is not supported. Maybe all YAML file of Pipelines are same in all branches. template http://thecodemanual.pl/2020/04/02/build-templates-on-azure-devops.html https://docs.microsoft.com/zh-tw/azure/devops/pipelines/process/templates?view=azure-devops detect CHANGED Dir to build & deploy coding in PowerShell to detect What files are changed, get DIR and combine ARRAY build & deploy via FACTORY PATTERN References: https://stackoverflow.com/questions/54541602/pass-array-as-inputs-to-azure-devops-yaml-task https://stackoverflow.com/questions/62835740/loops-and-arrays-in-azure-devops-pipelines https://stackoverflow.com/questions/53227343/triggering-azure-devops-builds-based-on-changes-to-sub-folders https://stackoverflow.com/questions/65088433/how-to-get-only-changed-files-using-azure-devops-pipelines https://stackoverflow.com/questions/67483194/pass-array-of-files-into-the-parameter-of-awscli1-task/67498247#67498247 https://stackoverflow.com/questions/68504910/can-i-loop-an-azure-pipelines-task-on-a-runtime-array-variable-instead-of-an-arr https://docs.microsoft.com/zh-tw/powershell/scripting/learn/deep-dives/everything-about-arrays?view=powershell-7.1#adding-to-arrays 開始 try 的: variables: f1Flag: false f2Flag: false trigger: branches: include: - master # paths: # include: # - "test_pipelines/*" steps: - powershell: |## get the changed files $files=$(git diff-tree --no-commit-id --name-only -r $(Build....

October 18, 2021