Skip to content

Commit 30747d5

Browse files
committed
Added three required assemblies for the AzAttestation PowerShell cmdlets. (Microsoft.IdentityModel.*)
1 parent 9813b78 commit 30747d5

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<runtime>
4+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
5+
<dependentAssembly>
6+
<assemblyIdentity name="Microsoft.IdentityModel.Tokens" publicKeyToken="31bf3856ad364e35" culture="neutral" />
7+
<bindingRedirect oldVersion="5.1.2.0-5.6.0.0" newVersion="5.6.0.0" />
8+
</dependentAssembly>
9+
</assemblyBinding>
10+
</runtime>
11+
</configuration>

src/Attestation/Attestation.Test/Attestation.Test.csproj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@
1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Attestation" Version="0.10.0-preview" />
1515
<PackageReference Include="Microsoft.Azure.Management.Attestation" Version="0.11.0-preview" />
16+
<PackageReference Include="Microsoft.IdentityModel.Tokens" Version="5.6.0">
17+
<NoWarn>NU1608</NoWarn>
18+
</PackageReference>
1619
</ItemGroup>
1720

18-
<ItemGroup>
19-
<Reference Include="Microsoft.Azure.Management.Attestation">
20-
</Reference>
21-
</ItemGroup>
22-
2321
<ItemGroup>
2422
<None Update="PemFiles\*.*" CopyToOutputDirectory="PreserveNewest" />
2523
<None Update="SamplePolicyFiles\*.*" CopyToOutputDirectory="PreserveNewest" />

src/Attestation/Attestation/Az.Attestation.psd1

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ DotNetFrameworkVersion = '4.7.2'
5656
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.7.2'; })
5757

5858
# Assemblies that must be loaded prior to importing this module
59-
RequiredAssemblies = 'Microsoft.Azure.Management.Attestation.dll',
60-
'Microsoft.Azure.Attestation.dll'
59+
RequiredAssemblies = 'Microsoft.Azure.Management.Attestation.dll',
60+
'Microsoft.Azure.Attestation.dll',
61+
'Microsoft.IdentityModel.JsonWebTokens.dll',
62+
'Microsoft.IdentityModel.Tokens.dll',
63+
'Microsoft.IdentityModel.Logging.dll'
6164

6265
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
6366
# ScriptsToProcess = @()
@@ -75,8 +78,8 @@ NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.Attestation.dll')
7578
FunctionsToExport = @()
7679

7780
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
78-
CmdletsToExport = 'New-AzAttestation', 'Get-AzAttestation', 'Remove-AzAttestation',
79-
'Get-AzAttestationPolicy', 'Set-AzAttestationPolicy',
81+
CmdletsToExport = 'New-AzAttestation', 'Get-AzAttestation', 'Remove-AzAttestation',
82+
'Get-AzAttestationPolicy', 'Set-AzAttestationPolicy',
8083
'Reset-AzAttestationPolicy',
8184
'Get-AzAttestationPolicySigners', 'Add-AzAttestationPolicySigner',
8285
'Remove-AzAttestationPolicySigner'

0 commit comments

Comments
 (0)