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
Copy file name to clipboardExpand all lines: src/agentid/Add-MsIdPermissionToCreateAgentUsersToAgentIdentityBlueprintPrincipal.ps1
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ function Add-MsIdPermissionToCreateAgentUsersToAgentIdentityBlueprintPrincipal {
29
29
[string]$AgentBlueprintId
30
30
)
31
31
32
-
# Use provided ID or fall back to stored ID
32
+
# Use provided ID or fall back to stored ID
33
33
if (-not$AgentBlueprintId) {
34
34
if (-not$script:CurrentAgentBlueprintId) {
35
35
throw"No Agent Blueprint ID provided and no stored ID available. Please run New-MsIdAgentIdentityBlueprint first or provide the AgentBlueprintId parameter."
@@ -50,15 +50,21 @@ function Add-MsIdPermissionToCreateAgentUsersToAgentIdentityBlueprintPrincipal {
50
50
else {
51
51
Write-Host"Connected to Microsoft Graph as: $($context.Account)"-ForegroundColor Green
52
52
}
53
-
53
+
54
54
try {
55
55
Write-Host"Adding permission to create Agent Users to Agent Identity Blueprint Principal..."-ForegroundColor Green
56
+
Write-Verbose"Retrieving Blueprint Service Principal ID from tenant..."
Write-Verbose"Blueprint Service Principal found - ID: $script:CurrentAgentBlueprintServicePrincipalId, Display Name: $($blueprintServicePrincipal.DisplayName)"
0 commit comments