Comments (4)
Hi @NickSt , could you provide the sample workflow file, debug log and details about your runners? Do you use a self-hosted runner or a GitHub-hosted runner?
from powershell.
Hi YanaXu
Using github-hosted runners
The job looks like this:
jobs:
build:
name: Build
runs-on: windows-latest
environment: <customID>
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Azure Login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS_PRIMARY }}
enable-AzPSSession: true
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Calculate Variables
id: data
shell: pwsh
run: |
<script stuff here>
- name: Build
uses: azure/powershell@v1
with:
inlineScript: <script runs here>
azPSVersion: latest
failOnStandardError: true
Note I also get a warning about AzureRM being installed which I believe is from the Azure/Login action, but they are both required I think and most examples I've found show Azure/Login and Azure/Powershell being used together.
from powershell.
@NickSt , the latest
azPSVersion actually means the pre-installed Az module version on the GitHub-hosted runners, which is 9.3.0
. Before it's upgraded to the latest one on PSGallery, could you update your workflow file to use like azPSVersion: 11.0.0
?
from powershell.
@NickSt , I'll close this issue now. Please feel free to reopen it if you still have questions on this.
from powershell.
Related Issues (20)
- Get-AzUserAssignedIdentity command not working HOT 1
- Which docker image can I use to run the github action HOT 2
- Az.ImageBuilder module could not be loaded HOT 3
- 📢 We're now open to meet and talk for GitHub Actions with you.
- Cannot find type [Microsoft.Open.AzureAD.Model.AppRole] HOT 6
- GitHub Actions - Please update the following actions to use Node.js 16: azure/powershell HOT 4
- Include CodeQl @v2 Workflow HOT 4
- Action Fails after Login via Az module HOT 16
- Failed initializing Az Module HOT 2
- Dependabot Pull Requests Merged HOT 2
- [docs] Old link to actions/virtual-environments#available-environments in README
- Azure powershell support on self-hosted runners HOT 4
- Frydzyslaw
- Copy files from one folder to another folder HOT 5
- Initializing Az Module - Error HOT 2
- Writable AzInstallFolder requirement breaks self-hosted runner HOT 4
- > @Jakkapob8504 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information. HOT 1
- Node.js 16 is deprecated please update to version 20 HOT 6
- Working directory
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powershell.