mirror of
https://github.com/actions/runner-images.git
synced 2025-12-12 20:26:49 +00:00
Add support to client secret containing hyphens (#8927)
This commit is contained in:
@@ -249,7 +249,7 @@ Function GenerateResourcesAndImage {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Write-Verbose "AzureClientId was provided, will use service principal login."
|
Write-Verbose "AzureClientId was provided, will use service principal login."
|
||||||
az login --service-principal --username $AzureClientId --password $AzureClientSecret --tenant $AzureTenantId --output none
|
az login --service-principal --username $AzureClientId --password=$AzureClientSecret --tenant $AzureTenantId --output none
|
||||||
}
|
}
|
||||||
az account set --subscription $SubscriptionId
|
az account set --subscription $SubscriptionId
|
||||||
if ($LastExitCode -ne 0) {
|
if ($LastExitCode -ne 0) {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ param(
|
|||||||
[Parameter (Mandatory=$true)] [string] $TenantId
|
[Parameter (Mandatory=$true)] [string] $TenantId
|
||||||
)
|
)
|
||||||
|
|
||||||
az login --service-principal --username $ClientId --password $ClientSecret --tenant $TenantId | Out-Null
|
az login --service-principal --username $ClientId --password=$ClientSecret --tenant $TenantId | Out-Null
|
||||||
az account set --subscription $SubscriptionId | Out-Null
|
az account set --subscription $SubscriptionId | Out-Null
|
||||||
|
|
||||||
$groupExist = az group exists --name $TempResourceGroupName
|
$groupExist = az group exists --name $TempResourceGroupName
|
||||||
|
|||||||
Reference in New Issue
Block a user