You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This cmdlet sends an invitation to the email addresses in invitations.csv. Additional features of this cmdlet include:
53
+
This cmdlet sends an invitation to the email addresses in invitations.csv. More features of this cmdlet include:
54
+
53
55
- Customized text in the email message
54
56
- Including a display name for the invited user
55
57
- Sending messages to CCs or suppressing email messages altogether
56
58
57
59
## Code sample
58
-
Here we illustrate how to call the invitation API, in "app-only" mode, to get the redemption URL for the resource to which you are inviting the B2B user. The goal is to send a custom invitation email. The email can be composed with an HTTP client, so you can customize how it looks and send it through the Microsoft Graph API.
60
+
61
+
The code sample illustrates how to call the invitation API and get the redemption URL. Use the redemption URL to send a custom invitation email. The email can be composed with an HTTP client, so you can customize how it looks and send it through the Microsoft Graph API.
// This is the application id of the application that is registered in the above tenant.
175
+
constCLIENT_ID=""
176
+
177
+
// Client secret of the application.
178
+
constCLIENT_SECRET=""
179
+
180
+
// This is the tenant ID of the tenant you want to invite users to. For example fabrikam.onmicrosoft.com
181
+
constTENANT_ID=""
182
+
183
+
asyncfunctionsendInvite() {
184
+
185
+
// Initialize a confidential client application. For more info, visit: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-a-service-principal-with-a-client-secret
// Initialize the Microsoft Graph authentication provider. For more info, visit: https://docs.microsoft.com/en-us/graph/sdks/choose-authentication-providers?tabs=Javascript#using--for-server-side-applications
// Create MS Graph client instance. For more info, visit: https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/docs/CreatingClientInstance.md
Copy file name to clipboardExpand all lines: articles/api-management/api-management-advanced-policies.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,15 +96,15 @@ The second control flow policy is in the outbound section and conditionally appl
96
96
97
97
#### Example
98
98
99
-
This example shows how to perform content filtering by removing data elements from the response received from the backend service when using the `Starter` product. For a demonstration of configuring and using this policy, see [Cloud Cover Episode 177: More API Management Features with Vlad Vinogradsky](https://azure.microsoft.com/documentation/videos/episode-177-more-api-management-features-with-vlad-vinogradsky/) and fast-forward to 34:30. Start at 31:50 to see an overview of [The Dark Sky Forecast API](https://developer.forecast.io/) used for this demo.
99
+
This example shows how to perform content filtering by removing data elements from the response received from the backend service when using the `Starter` product. The example backend response includes root-level properties similar to the [OpenWeather One Call API](https://openweathermap.org/api/one-call-api).
100
100
101
101
```xml
102
-
<!-- Copy this snippet into the outbound section to remove a number of data elements from the response received from the backend service based on the name of the api product -->
102
+
<!-- Copy this snippet into the outbound section to remove a number of data elements from the response received from the backend service based on the name of the product -->
Copy file name to clipboardExpand all lines: articles/api-management/api-management-caching-policies.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,7 +73,7 @@ Use the `cache-lookup` policy to perform cache look up and return a valid cached
73
73
```
74
74
75
75
#### Example using policy expressions
76
-
This example shows how to configure API Management response caching duration that matches the response caching of the backend service as specified by the backed service's `Cache-Control` directive. For a demonstration of configuring and using this policy, see [Cloud Cover Episode 177: More API Management Features with Vlad Vinogradsky](https://azure.microsoft.com/documentation/videos/episode-177-more-api-management-features-with-vlad-vinogradsky/) and fast-forward to 25:25.
76
+
This example shows how to configure API Management response caching duration that matches the response caching of the backend service as specified by the backend service's `Cache-Control` directive.
77
77
78
78
```xml
79
79
<!-- The following cache policy snippets demonstrate how to control API Management response cache duration with Cache-Control headers sent by the backend service. -->
@@ -152,7 +152,7 @@ The `cache-store` policy caches responses according to the specified cache setti
152
152
```
153
153
154
154
#### Example using policy expressions
155
-
This example shows how to configure API Management response caching duration that matches the response caching of the backend service as specified by the backed service's `Cache-Control` directive. For a demonstration of configuring and using this policy, see Cloud Cover Episode 177: More API Management Features with Vlad Vinogradsky and fast-forward to 25:25.
155
+
This example shows how to configure API Management response caching duration that matches the response caching of the backend service as specified by the backend service's `Cache-Control` directive.
156
156
157
157
```xml
158
158
<!-- The following cache policy snippets demonstrate how to control API Management response cache duration with Cache-Control headers sent by the backend service. -->
Copy file name to clipboardExpand all lines: articles/api-management/api-management-transformation-policies.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -337,15 +337,15 @@ In this example the policy routes the request to a service fabric backend, using
337
337
```
338
338
339
339
#### Filter response based on product
340
-
This example shows how to perform content filtering by removing data elements from the response received from the backend service when using the `Starter` product. For a demonstration of configuring and using this policy, see [Cloud Cover Episode 177: More API Management Features with Vlad Vinogradsky](https://azure.microsoft.com/documentation/videos/episode-177-more-api-management-features-with-vlad-vinogradsky/) and fast-forward to 34:30. Start at 31:50 to see an overview of [The Dark Sky Forecast API](https://developer.forecast.io/) used for this demo.
340
+
This example shows how to perform content filtering by removing data elements from the response received from a backend service when using the `Starter` product. The example backend response includes root-level properties similar to the [OpenWeather One Call API](https://openweathermap.org/api/one-call-api).
341
341
342
342
```xml
343
-
<!-- Copy this snippet into the outbound section to remove a number of data elements from the response received from the backend service based on the name of the api product -->
343
+
<!-- Copy this snippet into the outbound section to remove a number of data elements from the response received from the backend service based on the name of the product -->
var response = context.Response.Body.As<JObject>();
348
-
foreach (var key in new [] {"minutely", "hourly", "daily", "flags"}) {
348
+
foreach (var key in new [] {"current", "minutely", "hourly", "daily", "alerts"}) {
349
349
response.Property (key).Remove ();
350
350
}
351
351
return response.ToString();
@@ -479,7 +479,7 @@ OriginalUrl.
479
479
480
480
481
481
#### Forward context information to the backend service
482
-
This example shows how to apply policy at the API level to supply context information to the backend service. For a demonstration of configuring and using this policy, see [Cloud Cover Episode 177: More API Management Features with Vlad Vinogradsky](https://azure.microsoft.com/documentation/videos/episode-177-more-api-management-features-with-vlad-vinogradsky/) and fast-forward to 10:30. At 12:10 there is a demo of calling an operation in the developer portal where you can see the policy at work.
482
+
This example shows how to apply policy at the API level to supply context information to the backend service.
483
483
484
484
```xml
485
485
<!-- Copy this snippet into the inbound element to forward some context information, user id and the region the gateway is hosted in, to the backend service for logging or evaluation -->
@@ -495,7 +495,7 @@ OriginalUrl.
495
495
> Multiple values of a header are concatenated to a CSV string, for example:
496
496
> `headerName: value1,value2,value3`
497
497
>
498
-
> Exceptions include standardized headers, which values:
498
+
> Exceptions include standardized headers whose values:
499
499
> - may contain commas (`User-Agent`, `WWW-Authenticate`, `Proxy-Authenticate`),
500
500
> - may contain date (`Cookie`, `Set-Cookie`, `Warning`),
501
501
> - contain date (`Date`, `Expires`, `If-Modified-Since`, `If-Unmodified-Since`, `Last-Modified`, `Retry-After`).
@@ -548,7 +548,7 @@ OriginalUrl.
548
548
```
549
549
550
550
#### Forward context information to the backend service
551
-
This example shows how to apply policy at the API level to supply context information to the backend service. For a demonstration of configuring and using this policy, see [Cloud Cover Episode 177: More API Management Features with Vlad Vinogradsky](https://azure.microsoft.com/documentation/videos/episode-177-more-api-management-features-with-vlad-vinogradsky/) and fast-forward to 10:30. At 12:10 there is a demo of calling an operation in the developer portal where you can see the policy at work.
551
+
This example shows how to apply policy at the API level to supply context information to the backend service.
552
552
553
553
```xml
554
554
<!-- Copy this snippet into the inbound element to forward a piece of context, product name in this example, to the backend service for logging or evaluation -->
0 commit comments