Skip to content

Commit b0ba99f

Browse files
author
Hovsep
committed
Merge pull request Azure#1786 from SudhakaraReddyEvuri/dev
Prompt user for AAD client secret if the app was already created
2 parents 82440b7 + 9447865 commit b0ba99f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption/Scripts/AzureDiskEncryptionPreRequisiteSetup.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ Param(
8282
}
8383
else
8484
{
85+
if(-not $aadClientSecret)
86+
{
87+
$aadClientSecret = Read-Host -Prompt "Aad application ($aadAppName) was alerady created, input corresponding aadClientSecret and hit ENTER. It can be retrieved from https://manage.windowsazure.com portal" ;
88+
}
8589
if(-not $aadClientSecret)
8690
{
8791
Write-Error "Aad application ($aadAppName) was alerady created. Re-run the script by supplying aadClientSecret parameter with corresponding secret from https://manage.windowsazure.com portal";

0 commit comments

Comments
 (0)