You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yaml task code :
- task: AzureCLI@2displayName: 'Set credentials (RG SPN) for PrivilegedContext'inputs:
azureSubscription: ${{parameters.arm_service_connection}}scriptType: 'pscore'scriptLocation: 'inlineScript'addSpnToEnvironment: trueuseGlobalConfig: trueinlineScript: | $azure_tenant_id = $env:tenantId Write-host "Variable name azure_tenant_id is set with Azure AD Tenant ID" Write-host "##vso[task.setvariable variable=azure_tenant_id;issecret=true]$azure_tenant_id" $azure_client_id = $env:servicePrincipalId Write-host "Variable name azure_client_id is set with resource group SPN Client ID" Write-host "##vso[task.setvariable variable=azure_client_id;issecret=true]$azure_client_id" $azure_client_secret = $env:servicePrincipalKey Write-host "Variable name azure_client_secret is set with resource group SPN credentials" Write-host "##vso[task.setvariable variable=azure_client_secret;issecret=true]$azure_client_secret"
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days
Task name
AzureCLI
Task version
2
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows_NT 10.0.17763
Task log
Relevant log output
Aditional info
The text was updated successfully, but these errors were encountered: