Skip to content

Commit f4e2f0d

Browse files
committed
Add workflow for retrieving Azure MI details
1 parent ea45e38 commit f4e2f0d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run Azure CLI Login with OpenID Connect
2+
on:
3+
push:
4+
5+
permissions:
6+
contents: read
7+
id-token: write
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
environment: publish-vscode-marketplace
13+
steps:
14+
- name: Azure CLI Login
15+
uses: azure/login@v2
16+
with:
17+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
18+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
19+
allow-no-subscriptions: true
20+
21+
- name: Azure CLI script
22+
uses: azure/cli@v2
23+
with:
24+
azcliversion: latest
25+
inlineScript: |
26+
az rest -u https://app.vssps.visualstudio.com/_apis/profile/profiles/me --resource 499b84ac-1321-427f-aa17-267ca6975798

0 commit comments

Comments
 (0)