Skip to content

Commit 3e7b788

Browse files
add split function
1 parent a068ee6 commit 3e7b788

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Deployment/resourcedeployment.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ function LoginAzure([string]$subscriptionID) {
184184
Write-Host "Logged in to Azure with tenant ID '$tenantId' successfully." -ForegroundColor Green
185185
}
186186
Write-Host "manual deployment mode"
187-
$createdBy = $email
187+
$createdBy = $email.Split('@')[0]
188+
Write-Host "CreatedBy user is $createdBy"
188189
}
189190
az account set --subscription $subscriptionID
190191
Write-Host "Switched subscription to '$subscriptionID' `r`n" -ForegroundColor Yellow

0 commit comments

Comments
 (0)