Skip to content

Commit 50bbb6b

Browse files
authored
Merge branch 'MicrosoftDocs:main' into main
2 parents a055d48 + 3980234 commit 50bbb6b

File tree

458 files changed

+2742
-7929
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

458 files changed

+2742
-7929
lines changed

.openpublishing.redirection.azure-monitor.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6176,7 +6176,7 @@
61766176
"redirect_url": "/azure/azure-monitor/app/javascript-sdk-configuration",
61776177
"redirect_document_id": false
61786178
},
6179-
{
6179+
{
61806180
"source_path_from_root": "/articles/azure-monitor/agents/data-collection-firewall.md",
61816181
"redirect_url": "/azure/azure-monitor/agents/data-collection-rule-azure-monitor-agent",
61826182
"redirect_document_id": false
@@ -6185,6 +6185,16 @@
61856185
"source_path_from_root": "/articles/azure-monitor/autoscale/tutorial-autoscale-performance-schedule.md",
61866186
"redirect_url": "/previous-versions/azure/azure-monitor/autoscale/tutorial-autoscale-performance-schedule",
61876187
"redirect_document_id": false
6188+
},
6189+
{
6190+
"source_path_from_root": "/azure/azure-monitor/essentials/metrics-supported.md",
6191+
"redirect_url": "/azure/azure-monitor/reference/supported-metrics/metrics-index",
6192+
"redirect_document_id": false
6193+
},
6194+
{
6195+
"source_path_from_root": "/azure/azure-monitor/essentials/resource-logs-categories.md",
6196+
"redirect_url": "/azure/azure-monitor/reference/supported-logs/logs-index",
6197+
"redirect_document_id": false
61886198
}
61896199
]
61906200
}

.openpublishing.redirection.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24036,7 +24036,12 @@
2403624036
{
2403724037
"source_path_from_root": "/articles/virtual-machines/virtual-machines-reliability.md",
2403824038
"redirect_url": "/azure/virtual-machines/reliability-virtual-machines",
24039-
"redirect_document_id": true
24039+
"redirect_document_id": false
24040+
},
24041+
{
24042+
"source_path_from_root": "/articles/private-link/tutorial-private-endpoint-webapp-portal.md",
24043+
"redirect_url": "/azure/private-link/create-private-endpoint-portal",
24044+
"redirect_document_id": false
2404024045
}
2404124046
]
2404224047
}

articles/active-directory/conditional-access/how-to-app-protection-policy-windows.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,7 @@ App protection policies apply mobile application management (MAM) to specific ap
2323

2424
## Prerequisites
2525

26-
The following requirements must be met before you can apply an [app protection policy] to Windows client devices:
27-
28-
- Ensure your Windows client version is Windows 11, build 10.0.22621 (22H2) or newer.
29-
- Ensure your device isn't managed, including:
30-
- Not Azure AD joined or enrolled in Mobile Device Management (MDM) for the same tenant
31-
as your MAM user.
32-
- Not Azure AD registered (workplace joined) with more than two users besides the MAM user. There's a limit of no more than [three Azure AD registered users to a device](../devices/faq.yml#i-can-t-add-more-than-3-azure-ad-user-accounts-under-the-same-user-session-on-a-windows-10-11-device--why).
33-
- Clients must be running Microsoft Edge build v115.0.1901.155 or newer.
34-
- You can check the version by going to `edge://settings/help` in the address bar.
35-
- Clients must have the **Enable MAM on Edge desktop platforms** flag enabled.
36-
- You can enable this going to `edge://flags/#edge-desktop-mam` in the address bar.
37-
- Enable **Enable MAM on Edge desktop platforms**
38-
- Click the **Restart** button at the bottom of the window.
26+
Customers interested in the public preview will need to opt-in using the [MAM for Windows Public Preview Sign Up Form](https://aka.ms/MAMforWindowsPublic).
3927

4028
## User exclusions
4129
[!INCLUDE [active-directory-policy-exclusions](../../../includes/active-directory-policy-exclude-user.md)]

articles/active-directory/develop/msal-net-migration-confidential-client.md

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,21 @@ public partial class AuthWrapper
134134

135135
public async Task<AuthenticationResult> GetAuthenticationResult()
136136
{
137-
if (app == null)
138-
{
139-
app = ConfidentialClientApplicationBuilder.Create(ClientId)
137+
138+
var app = ConfidentialClientApplicationBuilder.Create(ClientId)
140139
.WithCertificate(certificate)
141140
.WithAuthority(authority)
142141
.Build();
142+
143+
// Setup token caching https://learn.microsoft.com/azure/active-directory/develop/msal-net-token-cache-serialization?tabs=aspnet
144+
// For example, for an in-memory cache with 1GB limit, use
145+
app.AddInMemoryTokenCache(services =>
146+
{
147+
// Configure the memory cache options
148+
services.Configure<MemoryCacheOptions>(options =>
149+
{
150+
options.SizeLimit = 1024 * 1024 * 1024; // in bytes (1 GB of memory)
151+
});
143152
}
144153

145154
var authResult = await app.AcquireTokenForClient(
@@ -158,9 +167,9 @@ public partial class AuthWrapper
158167

159168
#### Benefit from token caching
160169

161-
To benefit from the in-memory cache, the instance of `IConfidentialClientApplication` must be kept in a member variable. If you re-create the confidential client app each time you request a token, you won't benefit from the token cache.
170+
If you don't setup token caching, the token issuer will throttle you, resulting in errors. It also takes a lot less to get a token from the cache (10-20ms) than it is from ESTS (500-30000ms).
162171

163-
You'll need to serialize `AppTokenCache` if you don't use the default in-memory app token cache. Similarly, If you want to implement a distributed token cache, serialize `AppTokenCache`. For details, see [Token cache for a web app or web API (confidential client application)](msal-net-token-cache-serialization.md?tabs=aspnet) and the sample [active-directory-dotnet-v1-to-v2/ConfidentialClientTokenCache](https://github.com/Azure-Samples/active-directory-dotnet-v1-to-v2/tree/master/ConfidentialClientTokenCache).
172+
If you want to implement a distributed token cache, see [Token cache for a web app or web API (confidential client application)](msal-net-token-cache-serialization.md?tabs=aspnet) and the sample [active-directory-dotnet-v1-to-v2/ConfidentialClientTokenCache](https://github.com/Azure-Samples/active-directory-dotnet-v1-to-v2/tree/master/ConfidentialClientTokenCache).
164173

165174
[Learn more about the daemon scenario](scenario-daemon-overview.md) and how it's implemented with MSAL.NET or Microsoft.Identity.Web in new applications.
166175

@@ -255,14 +264,22 @@ public partial class AuthWrapper
255264
string resourceId,
256265
string tokenUsedToCallTheWebApi)
257266
{
258-
if (app == null)
259-
{
260-
app = ConfidentialClientApplicationBuilder.Create(ClientId)
267+
268+
var app = ConfidentialClientApplicationBuilder.Create(ClientId)
261269
.WithCertificate(certificate)
262270
.WithAuthority(authority)
263271
.Build();
264-
}
265272

273+
// Setup token caching https://learn.microsoft.com/azure/active-directory/develop/msal-net-token-cache-serialization?tabs=aspnet
274+
// For example, for an in-memory cache with 1GB limit. For OBO, it is recommended to use a distributed cache like Redis.
275+
app.AddInMemoryTokenCache(services =>
276+
{
277+
// Configure the memory cache options
278+
services.Configure<MemoryCacheOptions>(options =>
279+
{
280+
options.SizeLimit = 1024 * 1024 * 1024; // in bytes (1 GB of memory)
281+
});
282+
}
266283

267284
var userAssertion = new UserAssertion(tokenUsedToCallTheWebApi);
268285

articles/active-directory/external-identities/customers/samples-ciam-all.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: active-directory
88
ms.workload: identity
99
ms.subservice: ciam
1010
ms.topic: sample
11-
ms.date: 05/10/2023
11+
ms.date: 07/17/2023
1212
ms.author: mimart
1313
ms.custom: it-pro
1414

@@ -73,7 +73,7 @@ These samples and how-to guides demonstrate how to write a desktop application t
7373
> | Language/<br/>Platform | Code sample guide | Build and integrate guide |
7474
> | ------- | -------- | ------------- |
7575
> | JavaScript, Electron | &#8226; [Sign in users](how-to-desktop-app-electron-sample-sign-in.md) | --- |
76-
> | ASP.NET (MAUI) | &#8226; [Sign in users](how-to-desktop-app-maui-sample-sign-in.md) | --- |
76+
> | ASP.NET (MAUI) | &#8226; [Sign in users](how-to-desktop-app-maui-sample-sign-in.md) |&#8226; [Sign in users](tutorial-desktop-app-maui-sign-in-prepare-tenant.md)|
7777
7878
### Mobile
7979

@@ -82,7 +82,7 @@ These samples and how-to guides demonstrate how to write a public client mobile
8282
> [!div class="mx-tdCol2BreakAll"]
8383
> | Language/<br/>Platform | Code sample guide | Build and integrate guide |
8484
> | ----------- | ----------- |----------- |
85-
> | ASP.NET Core MAUI | &#8226; [Sign in users](how-to-mobile-app-maui-sample-sign-in.md) | --- |
85+
> | ASP.NET Core MAUI | &#8226; [Sign in users](how-to-mobile-app-maui-sample-sign-in.md) | &#8226; [Sign in users](tutorial-mobile-app-maui-sign-in-prepare-tenant.md)|
8686
8787
### Daemon
8888

@@ -92,6 +92,8 @@ These samples and how-to guides demonstrate how to write a daemon application th
9292
> | Language/<br/>Platform | Code sample guide | Build and integrate guide |
9393
> | ----------- | ----------- |----------- |
9494
> | Node.js | &#8226; [Call an API](how-to-daemon-node-sample-call-api.md) | &#8226; [Call an API](how-to-daemon-node-call-api-overview.md) |
95+
> | .NET | &#8226; [Call an API](sample-daemon-dotnet-call-api.md) | &#8226; [Call an API](tutorial-daemon-dotnet-call-api-prepare-tenant.md) |
96+
9597

9698
# [**By language/platform**](#tab/language)
9799

@@ -101,6 +103,7 @@ These samples and how-to guides demonstrate how to write a daemon application th
101103
> | App type | Code sample guide | Build and integrate guide |
102104
> | ------- | -------- | ------------- |
103105
> | Browserless | &#8226; [Sign in users](how-to-browserless-app-dotnet-sample-sign-in.md) | &#8226; [Sign in users](how-to-browserless-app-dotnet-sign-in-overview.md) |
106+
> | Daemon | &#8226; [Call an API](sample-daemon-dotnet-call-api.md) | &#8226; [Call an API](tutorial-daemon-dotnet-call-api-prepare-tenant.md) |
104107
105108

106109
### ASP.NET Core
@@ -116,8 +119,8 @@ These samples and how-to guides demonstrate how to write a daemon application th
116119
> [!div class="mx-tdCol2BreakAll"]
117120
> | App type | Code sample guide | Build and integrate guide |
118121
> | ------- | -------- | ------------- |
119-
> | Desktop | &#8226; [Sign in users](how-to-desktop-app-maui-sample-sign-in.md) | --- |
120-
> | Mobile | &#8226; [Sign in users](how-to-mobile-app-maui-sample-sign-in.md) | --- |
122+
> | Desktop | &#8226; [Sign in users](how-to-desktop-app-maui-sample-sign-in.md) | &#8226; [Sign in users](tutorial-desktop-app-maui-sign-in-prepare-tenant.md) |
123+
> | Mobile | &#8226; [Sign in users](how-to-mobile-app-maui-sample-sign-in.md) | &#8226; [Sign in users](tutorial-mobile-app-maui-sign-in-prepare-tenant.md) |
121124
122125

123126
### JavaScript, Vanilla

0 commit comments

Comments
 (0)