{"id":15203017,"url":"https://github.com/tomashubelbauer/azure-pipelines-powershell-core","last_synced_at":"2026-03-08T11:37:25.467Z","repository":{"id":107986009,"uuid":"175486621","full_name":"TomasHubelbauer/azure-pipelines-powershell-core","owner":"TomasHubelbauer","description":"An experiment in determining if pwsh runs PowerShell Core on Windows in Azure Pipelines.","archived":false,"fork":false,"pushed_at":"2022-04-14T19:36:58.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-15T22:42:48.370Z","etag":null,"topics":["azure-pipelines","powershell","powershell-core"],"latest_commit_sha":null,"homepage":"","language":"Markdown","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TomasHubelbauer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-13T19:33:57.000Z","updated_at":"2021-04-04T15:44:01.000Z","dependencies_parsed_at":"2023-06-25T22:00:59.790Z","dependency_job_id":null,"html_url":"https://github.com/TomasHubelbauer/azure-pipelines-powershell-core","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fazure-pipelines-powershell-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fazure-pipelines-powershell-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fazure-pipelines-powershell-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TomasHubelbauer%2Fazure-pipelines-powershell-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TomasHubelbauer","download_url":"https://codeload.github.com/TomasHubelbauer/azure-pipelines-powershell-core/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242005180,"owners_count":20056424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-pipelines","powershell","powershell-core"],"created_at":"2024-09-28T04:21:59.049Z","updated_at":"2026-03-08T11:37:25.438Z","avatar_url":"https://github.com/TomasHubelbauer.png","language":"Markdown","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Pipelines Powershell Core\n\n**I've archived this repository because the conclusion has been found.**\nI've since stopped using Azure Pipelines in favor of GitHub Actions.\n\n[**LIVE**](https://tomashubelbauer.github.io/azure-pipelines-powershell-core)\n\nIn this repository I present the options of running PowerShell Core in\nAzure Pipelines with Windows hosts.\n\nThe reason I started looking into this is that PowerShell Core supports\nUTF-8 by default.\n\nI aimed to answer my own question in the\n[Azure Pipelines tasks repository](https://github.com/Microsoft/azure-pipelines-tasks/issues/9496).\n\nOn non-Windows hosts I expect `powershell` and `pwsh` both run PowerShell Core,\nbut I was not sure if this was the case on Windows.\n\nOn Windows hosts, I found that:\n\n- `task: PowerShell@2` with `pwsh: false` runs PowerShell\n- `task: PowerShell@2` with `pwsh: true` runs PowerShell Core\n- `powershell` runs PowerShell\n- `pwsh` runs PowerShell Core\n\nI determined this by checking the value of `$PSVersionTable.PSVersion`\nreturned by each shell.\n\nYou can see the example Azure pipeline in `azure-pipelines.yml`.\n\nVersion 5 is PowerShell which defaults to UTF-16.\n\nVersion 6 is PowerShell Core which defaults to UTF-8.\n\nhttps://stackoverflow.com/a/40098904/2715716\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomashubelbauer%2Fazure-pipelines-powershell-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomashubelbauer%2Fazure-pipelines-powershell-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomashubelbauer%2Fazure-pipelines-powershell-core/lists"}