diff --git a/config/ModuleMetadata.json b/config/ModuleMetadata.json
index 342e1e1125e..ce11d03d49c 100644
--- a/config/ModuleMetadata.json
+++ b/config/ModuleMetadata.json
@@ -22,5 +22,5 @@
],
"releaseNotes": "See https://aka.ms/GraphPowerShell-Release.",
"assemblyOriginatorKeyFile": "35MSSharedLib1024.snk",
- "version": "1.9.4"
+ "version": "1.9.5"
}
diff --git a/src/Applications/Applications/readme.md b/src/Applications/Applications/readme.md
index 64e94c566db..d9a5142cb8b 100644
--- a/src/Applications/Applications/readme.md
+++ b/src/Applications/Applications/readme.md
@@ -99,6 +99,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj
index 7eeb4c233bf..0ffcd29b9b5 100644
--- a/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj
+++ b/src/Authentication/Authentication.Core/Microsoft.Graph.Authentication.Core.csproj
@@ -3,7 +3,7 @@
netstandard2.0;netcoreapp2.1;net461
Microsoft.Graph.PowerShell.Authentication.Core
- 1.4.3
+ 1.9.5
diff --git a/src/Authentication/Authentication/Helpers/HttpHelpers.cs b/src/Authentication/Authentication/Helpers/HttpHelpers.cs
index a5a447c4598..196cec0c7f4 100644
--- a/src/Authentication/Authentication/Helpers/HttpHelpers.cs
+++ b/src/Authentication/Authentication/Helpers/HttpHelpers.cs
@@ -42,6 +42,16 @@ private static void PrependSDKHeader(HttpClient httpClient, string headerName, s
httpClient.DefaultRequestHeaders.Add(headerName, previousSDKHeaders.Prepend(headerValue));
}
}
+
+ private static void ReplaceSDKHeader(HttpClient httpClient, string headerName, string headerValue)
+ {
+ if (!httpClient.DefaultRequestHeaders.Contains(headerName)) {
+ httpClient.DefaultRequestHeaders.Add(headerName, headerValue);
+ } else {
+ httpClient.DefaultRequestHeaders.Remove(headerName);
+ httpClient.DefaultRequestHeaders.Add(headerName, headerValue);
+ }
+ }
public static HttpClient GetGraphHttpClient(InvocationInfo invocationInfo, IAuthContext authContext = null)
{
@@ -49,7 +59,7 @@ public static HttpClient GetGraphHttpClient(InvocationInfo invocationInfo, IAuth
if (authContext is null) { throw new AuthenticationException(Core.ErrorConstants.Message.MissingAuthContext); }
var httpClient = GetGraphHttpClient(authContext);
var requestUserAgent = new RequestUserAgent(authContext.PSHostVersion, invocationInfo);
- PrependSDKHeader(httpClient, HttpKnownHeaderNames.UserAgent, requestUserAgent.UserAgent);
+ ReplaceSDKHeader(httpClient, HttpKnownHeaderNames.UserAgent, requestUserAgent.UserAgent);
return httpClient;
}
diff --git a/src/Authentication/Authentication/Microsoft.Graph.Authentication.csproj b/src/Authentication/Authentication/Microsoft.Graph.Authentication.csproj
index 2e11431eae2..e46fab763a9 100644
--- a/src/Authentication/Authentication/Microsoft.Graph.Authentication.csproj
+++ b/src/Authentication/Authentication/Microsoft.Graph.Authentication.csproj
@@ -1,6 +1,6 @@
- 1.7.0
+ 1.9.5
7.1
netstandard2.0
Library
diff --git a/src/Authentication/Authentication/Microsoft.Graph.Authentication.nuspec b/src/Authentication/Authentication/Microsoft.Graph.Authentication.nuspec
index 95058b91b03..d0216fc640b 100644
--- a/src/Authentication/Authentication/Microsoft.Graph.Authentication.nuspec
+++ b/src/Authentication/Authentication/Microsoft.Graph.Authentication.nuspec
@@ -1,7 +1,7 @@
- 1.7.0
+ 1.9.5
Microsoft.Graph.Authentication
Microsoft Graph PowerShell authentication module
Microsoft
diff --git a/src/Authentication/Authentication/Microsoft.Graph.Authentication.psd1 b/src/Authentication/Authentication/Microsoft.Graph.Authentication.psd1
index b2c7d7d9904..b61e2b17f2a 100644
--- a/src/Authentication/Authentication/Microsoft.Graph.Authentication.psd1
+++ b/src/Authentication/Authentication/Microsoft.Graph.Authentication.psd1
@@ -3,7 +3,7 @@
#
# Generated by: Microsoft
#
-# Generated on: 3/30/2022
+# Generated on: 4/13/2022
#
@{
@@ -12,7 +12,7 @@
RootModule = './Microsoft.Graph.Authentication.psm1'
# Version number of this module.
-ModuleVersion = '1.9.4'
+ModuleVersion = '1.9.5'
# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'
diff --git a/src/Bookings/Bookings/readme.md b/src/Bookings/Bookings/readme.md
index 09aa288ab48..60b9b39cfec 100644
--- a/src/Bookings/Bookings/readme.md
+++ b/src/Bookings/Bookings/readme.md
@@ -50,6 +50,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Calendar/Calendar/readme.md b/src/Calendar/Calendar/readme.md
index c761c95ee34..e5e67d09fc9 100644
--- a/src/Calendar/Calendar/readme.md
+++ b/src/Calendar/Calendar/readme.md
@@ -52,6 +52,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/ChangeNotifications/ChangeNotifications/readme.md b/src/ChangeNotifications/ChangeNotifications/readme.md
index 42b790c5003..01f3341ff4a 100644
--- a/src/ChangeNotifications/ChangeNotifications/readme.md
+++ b/src/ChangeNotifications/ChangeNotifications/readme.md
@@ -34,6 +34,6 @@ subject-prefix: ''
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/CloudCommunications/CloudCommunications/readme.md b/src/CloudCommunications/CloudCommunications/readme.md
index fd7cc5df0af..bcc17db9dc6 100644
--- a/src/CloudCommunications/CloudCommunications/readme.md
+++ b/src/CloudCommunications/CloudCommunications/readme.md
@@ -59,6 +59,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Compliance/Compliance/readme.md b/src/Compliance/Compliance/readme.md
index b29e7217720..f0b98662317 100644
--- a/src/Compliance/Compliance/readme.md
+++ b/src/Compliance/Compliance/readme.md
@@ -47,6 +47,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/CrossDeviceExperiences/CrossDeviceExperiences/readme.md b/src/CrossDeviceExperiences/CrossDeviceExperiences/readme.md
index ac0fff1e8e9..81fec293aba 100644
--- a/src/CrossDeviceExperiences/CrossDeviceExperiences/readme.md
+++ b/src/CrossDeviceExperiences/CrossDeviceExperiences/readme.md
@@ -34,6 +34,6 @@ subject-prefix: ''
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/DeviceManagement.Actions/DeviceManagement.Actions/readme.md b/src/DeviceManagement.Actions/DeviceManagement.Actions/readme.md
index 3431853fa6c..e940a38ee36 100644
--- a/src/DeviceManagement.Actions/DeviceManagement.Actions/readme.md
+++ b/src/DeviceManagement.Actions/DeviceManagement.Actions/readme.md
@@ -100,6 +100,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/DeviceManagement.Administration/DeviceManagement.Administration/readme.md b/src/DeviceManagement.Administration/DeviceManagement.Administration/readme.md
index 58541a87d42..613e748e812 100644
--- a/src/DeviceManagement.Administration/DeviceManagement.Administration/readme.md
+++ b/src/DeviceManagement.Administration/DeviceManagement.Administration/readme.md
@@ -64,6 +64,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/readme.md b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/readme.md
index d682ee7d4fc..b85568b0a62 100644
--- a/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/readme.md
+++ b/src/DeviceManagement.Enrolment/DeviceManagement.Enrolment/readme.md
@@ -49,6 +49,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/DeviceManagement.Functions/DeviceManagement.Functions/readme.md b/src/DeviceManagement.Functions/DeviceManagement.Functions/readme.md
index 15bbcc03469..8741300f83b 100644
--- a/src/DeviceManagement.Functions/DeviceManagement.Functions/readme.md
+++ b/src/DeviceManagement.Functions/DeviceManagement.Functions/readme.md
@@ -57,6 +57,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/DeviceManagement/DeviceManagement/readme.md b/src/DeviceManagement/DeviceManagement/readme.md
index 72da99d7eb5..6e3a42d8b40 100644
--- a/src/DeviceManagement/DeviceManagement/readme.md
+++ b/src/DeviceManagement/DeviceManagement/readme.md
@@ -86,6 +86,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Devices.CloudPrint/Devices.CloudPrint/readme.md b/src/Devices.CloudPrint/Devices.CloudPrint/readme.md
index cdcd260b3e0..ba264db446b 100644
--- a/src/Devices.CloudPrint/Devices.CloudPrint/readme.md
+++ b/src/Devices.CloudPrint/Devices.CloudPrint/readme.md
@@ -48,6 +48,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Devices.CorporateManagement/Devices.CorporateManagement/readme.md b/src/Devices.CorporateManagement/Devices.CorporateManagement/readme.md
index 47b95058915..3ac96296042 100644
--- a/src/Devices.CorporateManagement/Devices.CorporateManagement/readme.md
+++ b/src/Devices.CorporateManagement/Devices.CorporateManagement/readme.md
@@ -86,6 +86,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/readme.md b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/readme.md
index c5d6559c74d..b330a375a3e 100644
--- a/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/readme.md
+++ b/src/Devices.ServiceAnnouncement/Devices.ServiceAnnouncement/readme.md
@@ -49,6 +49,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/DirectoryObjects/DirectoryObjects/readme.md b/src/DirectoryObjects/DirectoryObjects/readme.md
index 9b43ecdc99b..346e5dcb89e 100644
--- a/src/DirectoryObjects/DirectoryObjects/readme.md
+++ b/src/DirectoryObjects/DirectoryObjects/readme.md
@@ -54,6 +54,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Education/Education/readme.md b/src/Education/Education/readme.md
index 8ad466a4b3c..dfa6a0c5313 100644
--- a/src/Education/Education/readme.md
+++ b/src/Education/Education/readme.md
@@ -35,6 +35,6 @@ subject-prefix: ''
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Files/Files/readme.md b/src/Files/Files/readme.md
index 8928cb2f9a6..1db9379b355 100644
--- a/src/Files/Files/readme.md
+++ b/src/Files/Files/readme.md
@@ -43,6 +43,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Financials/Financials/readme.md b/src/Financials/Financials/readme.md
index aadc5f02e86..945b1677451 100644
--- a/src/Financials/Financials/readme.md
+++ b/src/Financials/Financials/readme.md
@@ -57,6 +57,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Groups/Groups/readme.md b/src/Groups/Groups/readme.md
index 317c3fbcd5f..f88967b1067 100644
--- a/src/Groups/Groups/readme.md
+++ b/src/Groups/Groups/readme.md
@@ -142,6 +142,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/readme.md b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/readme.md
index 6a912908658..da67d55a3f4 100644
--- a/src/Identity.DirectoryManagement/Identity.DirectoryManagement/readme.md
+++ b/src/Identity.DirectoryManagement/Identity.DirectoryManagement/readme.md
@@ -132,6 +132,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Identity.Governance/Identity.Governance/readme.md b/src/Identity.Governance/Identity.Governance/readme.md
index 730cfc0157f..b6ac3b679ed 100644
--- a/src/Identity.Governance/Identity.Governance/readme.md
+++ b/src/Identity.Governance/Identity.Governance/readme.md
@@ -335,6 +335,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Identity.SignIns/Identity.SignIns/readme.md b/src/Identity.SignIns/Identity.SignIns/readme.md
index 11a798175c0..dcd037ae397 100644
--- a/src/Identity.SignIns/Identity.SignIns/readme.md
+++ b/src/Identity.SignIns/Identity.SignIns/readme.md
@@ -63,6 +63,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Mail/Mail/readme.md b/src/Mail/Mail/readme.md
index f8079841ddc..59751e2588c 100644
--- a/src/Mail/Mail/readme.md
+++ b/src/Mail/Mail/readme.md
@@ -34,6 +34,6 @@ subject-prefix: ''
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Notes/Notes/readme.md b/src/Notes/Notes/readme.md
index c72e247cae3..a2061a5d0e2 100644
--- a/src/Notes/Notes/readme.md
+++ b/src/Notes/Notes/readme.md
@@ -44,6 +44,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/People/People/readme.md b/src/People/People/readme.md
index 0ba8068162f..d3c19c0a1c5 100644
--- a/src/People/People/readme.md
+++ b/src/People/People/readme.md
@@ -74,6 +74,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/PersonalContacts/PersonalContacts/readme.md b/src/PersonalContacts/PersonalContacts/readme.md
index dfebf55d79b..daf2f63508f 100644
--- a/src/PersonalContacts/PersonalContacts/readme.md
+++ b/src/PersonalContacts/PersonalContacts/readme.md
@@ -34,6 +34,6 @@ subject-prefix: ''
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Planner/Planner/readme.md b/src/Planner/Planner/readme.md
index f8e6cee5d7d..cc525117cd4 100644
--- a/src/Planner/Planner/readme.md
+++ b/src/Planner/Planner/readme.md
@@ -75,6 +75,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Reports/Reports/readme.md b/src/Reports/Reports/readme.md
index 053dd6c1010..157cf5225aa 100644
--- a/src/Reports/Reports/readme.md
+++ b/src/Reports/Reports/readme.md
@@ -81,6 +81,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/SchemaExtensions/SchemaExtensions/readme.md b/src/SchemaExtensions/SchemaExtensions/readme.md
index 77d003b41b6..381b20b7cf9 100644
--- a/src/SchemaExtensions/SchemaExtensions/readme.md
+++ b/src/SchemaExtensions/SchemaExtensions/readme.md
@@ -35,6 +35,6 @@ subject-prefix: ''
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Search/Search/readme.md b/src/Search/Search/readme.md
index 0fbc5077bbb..a0dfff38a8c 100644
--- a/src/Search/Search/readme.md
+++ b/src/Search/Search/readme.md
@@ -35,6 +35,6 @@ subject-prefix: ''
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Security/Security/readme.md b/src/Security/Security/readme.md
index cac1211ec03..d327c654e7e 100644
--- a/src/Security/Security/readme.md
+++ b/src/Security/Security/readme.md
@@ -79,6 +79,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Sites/Sites/readme.md b/src/Sites/Sites/readme.md
index 02c2f68a8de..c6145c699dc 100644
--- a/src/Sites/Sites/readme.md
+++ b/src/Sites/Sites/readme.md
@@ -110,6 +110,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Teams/Teams/readme.md b/src/Teams/Teams/readme.md
index dbbeb3345e7..a69581c407f 100644
--- a/src/Teams/Teams/readme.md
+++ b/src/Teams/Teams/readme.md
@@ -57,6 +57,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Users.Actions/Users.Actions/readme.md b/src/Users.Actions/Users.Actions/readme.md
index a3376cded37..8e4810231a1 100644
--- a/src/Users.Actions/Users.Actions/readme.md
+++ b/src/Users.Actions/Users.Actions/readme.md
@@ -128,6 +128,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Users.Functions/Users.Functions/readme.md b/src/Users.Functions/Users.Functions/readme.md
index 25e5689d5b6..e3c34621372 100644
--- a/src/Users.Functions/Users.Functions/readme.md
+++ b/src/Users.Functions/Users.Functions/readme.md
@@ -61,6 +61,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/Users/Users/readme.md b/src/Users/Users/readme.md
index 58f722c8c28..cf5a3253a82 100644
--- a/src/Users/Users/readme.md
+++ b/src/Users/Users/readme.md
@@ -58,6 +58,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```
diff --git a/src/WindowsUpdates/WindowsUpdates/readme.md b/src/WindowsUpdates/WindowsUpdates/readme.md
index 4faa9805f78..2da995cf19c 100644
--- a/src/WindowsUpdates/WindowsUpdates/readme.md
+++ b/src/WindowsUpdates/WindowsUpdates/readme.md
@@ -108,6 +108,6 @@ directive:
### Versioning
``` yaml
-module-version: 1.9.4
+module-version: 1.9.5
release-notes: See https://aka.ms/GraphPowerShell-Release.
```