Skip to content

Commit 4f7e36b

Browse files
authored
Merge pull request #8284 from cormacpayne/update-authorization-sdk
Update version of Authorization SDK used in Resources
2 parents ed84eb7 + 7fd5dab commit 4f7e36b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Resources/Resources.Test/Resources.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.5.0-preview" />
15-
<PackageReference Include="Microsoft.Azure.Management.Authorization" Version="2.9.0-preview" />
15+
<PackageReference Include="Microsoft.Azure.Management.Authorization" Version="2.11.0-preview" />
1616
<PackageReference Include="Microsoft.Azure.Management.ManagementGroups" Version="1.1.1-preview" />
1717
</ItemGroup>
1818

src/Resources/Resources/Models.Authorization/AuthorizationClientExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ private static IEnumerable<PSPrincipal> ToPSPrincipals(this IEnumerable<Principa
214214
}
215215
else
216216
{
217-
var adObject = adObjects.SingleOrDefault(o => string.Equals(o.Id, p.Id)) ?? new PSADObject() { Id = p.Id };
217+
var adObject = adObjects.SingleOrDefault(o => o.Id == pid.ToString()) ?? new PSADObject() { Id = pid.ToString() };
218218

219219
if ((adObject is PSADUser)
220220
|| (adObject is PSADGroup)

src/Resources/Resources/Resources.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.5.0-preview" />
15-
<PackageReference Include="Microsoft.Azure.Management.Authorization" Version="2.9.0-preview" />
15+
<PackageReference Include="Microsoft.Azure.Management.Authorization" Version="2.11.0-preview" />
1616
<PackageReference Include="Microsoft.Azure.Management.ManagementGroups" Version="1.1.1-preview" />
1717
</ItemGroup>
1818

0 commit comments

Comments
 (0)