Skip to content

Commit 55f14fa

Browse files
committed
move roleassignment warning message after roleassignment confirmed
1 parent b2ce7eb commit 55f14fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Resources/Resources/ActiveDirectory/Cmdlets/NewAzureADServicePrincipalCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ private void CreateSimpleServicePrincipal()
334334
Role = "Contributor";
335335
WriteVerbose(string.Format("No role provided - using the default role '{0}'", Role));
336336
}
337-
WriteWarning(string.Format("Assigning role '{0}' over scope '{1}' to the new service principal.", this.Role, this.Scope));
338337

339338
shouldProcessMessage = string.Format("Adding a new service principal to be associated with an application " +
340339
"having AppId '{0}' with '{1}' role over scope '{2}'.", createParameters.ApplicationId, this.Role, this.Scope);
@@ -352,6 +351,7 @@ private void CreateSimpleServicePrincipal()
352351
}
353352

354353
var subscriptionId = DefaultContext.Subscription.Id;
354+
WriteWarning(string.Format("Assigning role '{0}' over scope '{1}' to the new service principal.", this.Role, this.Scope));
355355
FilterRoleAssignmentsOptions parameters = new FilterRoleAssignmentsOptions()
356356
{
357357
Scope = this.Scope,

0 commit comments

Comments
 (0)