GA Updates to OIDC samples (#100)
* added examples for oidc aad integration * ga updates
This commit is contained in:
Родитель
5221c0417c
Коммит
466dc7313f
|
@ -166,25 +166,12 @@ jobs:
|
|||
run: |
|
||||
Install-Module -Name "AzOps" -Force
|
||||
|
||||
- name: "Install CLI-beta (for OIDC federated credentials support)"
|
||||
run: |
|
||||
cd ../..
|
||||
CWD="$(pwd)"
|
||||
python3 -m venv oidc-venv
|
||||
. oidc-venv/bin/activate
|
||||
echo "activated environment"
|
||||
python3 -m pip install --upgrade pip
|
||||
echo "started installing cli beta"
|
||||
pip install -q --extra-index-url https://azcliprod.blob.core.windows.net/beta/simple/ azure-cli
|
||||
echo "installed cli beta"
|
||||
echo "$CWD/oidc-venv/bin" >> $GITHUB_PATH
|
||||
#
|
||||
# Connect
|
||||
# Authenticate Azure context
|
||||
#
|
||||
|
||||
- name: OIDC Login to Azure Public Cloud with AzPowershell (enableAzPSSession true)
|
||||
uses: azure/login@v1.4.0
|
||||
uses: azure/login@v1
|
||||
with:
|
||||
client-id: ${{ env.ARM_CLIENT_ID}}
|
||||
tenant-id: ${{ env.ARM_TENANT_ID }}
|
||||
|
|
|
@ -59,25 +59,13 @@ jobs:
|
|||
run: |
|
||||
Install-Module -Name "AzOps" -Force
|
||||
|
||||
- name: "Install CLI-beta (for OIDC federated credentials support)"
|
||||
run: |
|
||||
cd ../..
|
||||
CWD="$(pwd)"
|
||||
python3 -m venv oidc-venv
|
||||
. oidc-venv/bin/activate
|
||||
echo "activated environment"
|
||||
python3 -m pip install --upgrade pip
|
||||
echo "started installing cli beta"
|
||||
pip install -q --extra-index-url https://azcliprod.blob.core.windows.net/beta/simple/ azure-cli
|
||||
echo "installed cli beta"
|
||||
echo "$CWD/oidc-venv/bin" >> $GITHUB_PATH
|
||||
#
|
||||
# Connect
|
||||
# Authenticate Azure context
|
||||
#
|
||||
|
||||
- name: OIDC Login to Azure Public Cloud with AzPowershell (enableAzPSSession true)
|
||||
uses: azure/login@v1.4.0
|
||||
uses: azure/login@v1
|
||||
with:
|
||||
client-id: ${{ env.ARM_CLIENT_ID}}
|
||||
tenant-id: ${{ env.ARM_TENANT_ID }}
|
||||
|
|
|
@ -56,26 +56,14 @@ jobs:
|
|||
shell: pwsh
|
||||
run: |
|
||||
Install-Module -Name "AzOps" -Force
|
||||
|
||||
- name: "Install CLI-beta (for OIDC federated credentials support)"
|
||||
run: |
|
||||
cd ../..
|
||||
CWD="$(pwd)"
|
||||
python3 -m venv oidc-venv
|
||||
. oidc-venv/bin/activate
|
||||
echo "activated environment"
|
||||
python3 -m pip install --upgrade pip
|
||||
echo "started installing cli beta"
|
||||
pip install -q --extra-index-url https://azcliprod.blob.core.windows.net/beta/simple/ azure-cli
|
||||
echo "installed cli beta"
|
||||
echo "$CWD/oidc-venv/bin" >> $GITHUB_PATH
|
||||
|
||||
#
|
||||
# Connect
|
||||
# Authenticate Azure context
|
||||
#
|
||||
|
||||
- name: OIDC Login to Azure Public Cloud with AzPowershell (enableAzPSSession true)
|
||||
uses: azure/login@v1.4.0
|
||||
uses: azure/login@v1
|
||||
with:
|
||||
client-id: ${{ env.ARM_CLIENT_ID}}
|
||||
tenant-id: ${{ env.ARM_TENANT_ID }}
|
||||
|
|
Загрузка…
Ссылка в новой задаче