diff --git a/.azure-pipelines/code-gen.yml b/.azure-pipelines/code-gen.yml index fdc50644c1a9..b00c6008fe8f 100644 --- a/.azure-pipelines/code-gen.yml +++ b/.azure-pipelines/code-gen.yml @@ -94,6 +94,7 @@ jobs: git remote set-url origin https://azure-powershell-bot:$(GithubToken)@github.com/Azure/azure-powershell.git; git push origin codegen/${{ parameters.ServiceName }} --force; arguments: '-RequiredPsVersion $(PSVersion)' + pwsh: true - pwsh: | $SourceBranch = "$(Build.SourceBranch)" $SourceBranch = $SourceBranch.Replace("refs/heads/", "")