Skip to content

Commit 967bf8e

Browse files
committed
Fixes for Nov 17 platform updates
1 parent ea72c3c commit 967bf8e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/agentid/Add-MsIdRedirectURIToAgentIdentityBlueprint.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function Add-MsIdRedirectURIToAgentIdentityBlueprint {
6565

6666
while ($retryCount -lt $maxRetries -and -not $success) {
6767
try {
68-
$currentApp = Invoke-MgRestMethod -Method GET -Uri "https://graph.microsoft.com/v1.0/applications/$AgentBlueprintId" -ContentType "application/json" -ErrorAction Stop
68+
$currentApp = Invoke-MgRestMethod -Method GET -Uri "https://graph.microsoft.com/beta/applications/$AgentBlueprintId" -ContentType "application/json" -ErrorAction Stop
6969
$success = $true
7070
}
7171
catch {
@@ -123,7 +123,7 @@ function Add-MsIdRedirectURIToAgentIdentityBlueprint {
123123

124124
while ($retryCount -lt $maxRetries -and -not $success) {
125125
try {
126-
$updateResult = Invoke-MgRestMethod -Method PATCH -Uri "https://graph.microsoft.com/v1.0/applications/$AgentBlueprintId" -Body $JsonBody -ContentType "application/json" -ErrorAction Stop
126+
$updateResult = Invoke-MgRestMethod -Method PATCH -Uri "https://graph.microsoft.com/beta/applications/$AgentBlueprintId" -Body $JsonBody -ContentType "application/json" -ErrorAction Stop
127127
$success = $true
128128
}
129129
catch {

src/agentid/Add-MsIdScopeToAgentIdentityBlueprint.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function Add-MsIdScopeToAgentIdentityBlueprint {
134134

135135
while ($retryCount -lt $maxRetries -and -not $success) {
136136
try {
137-
$scopeResult = Invoke-MgRestMethod -Method PATCH -Uri "https://graph.microsoft.com/v1.0/applications/$AgentBlueprintId" -Body $JsonBody -ContentType "application/json" -ErrorAction Stop
137+
$scopeResult = Invoke-MgRestMethod -Method PATCH -Uri "https://graph.microsoft.com/beta/applications/$AgentBlueprintId" -Body $JsonBody -ContentType "application/json" -ErrorAction Stop
138138
$success = $true
139139
}
140140
catch {

src/agentid/Connect-MsIdEntraAsUser.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function Connect-MsIdEntraAsUser {
1919
[CmdletBinding()]
2020
param (
2121
[Parameter(Mandatory = $false)]
22-
[string[]]$Scopes = @('AgentIdentityBlueprint.Create', 'AgentIdentityBlueprintPrincipal.Create', 'AppRoleAssignment.ReadWrite.All', 'Application.ReadWrite.All', 'User.ReadWrite.All')
22+
[string[]]$Scopes = @('AgentIdentityBlueprint.Create', 'AgentIdentityBlueprintPrincipal.Create', 'AppRoleAssignment.ReadWrite.All', 'Application.ReadWrite.All', 'User.ReadWrite.All', 'AgentIdentityBlueprint.ReadWrite.All', 'AgentIdentityBlueprint.AddRemoveCreds.All')
2323
)
2424

2525
# Ensure required modules are available

src/agentid/Invoke-MsIdAgentIdInteractive.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function Invoke-MsIdAgentIdInteractive {
6060
Write-Host "Agent Identity Blueprints and Agent Users" -ForegroundColor Yellow
6161

6262
# Ensure required modules are available and connect as admin
63-
Connect-MsIdEntraAsUser -Scopes @('AgentIdentityBlueprint.Create', 'AgentIdentityBlueprintPrincipal.Create', 'AppRoleAssignment.ReadWrite.All', 'Application.ReadWrite.All', 'User.ReadWrite.All') | Out-Null
63+
Connect-MsIdEntraAsUser | Out-Null
6464

6565
$bluePrintDisplayName = Read-Host "Enter a display name for the Agent Identity Blueprint (or press Enter for default)"
6666
if (-not $bluePrintDisplayName -or $bluePrintDisplayName.Trim() -eq "") {

0 commit comments

Comments
 (0)