Skip to content

Commit 6b908c3

Browse files
authored
Merge pull request #289209 from MicrosoftDocs/main
Publish to live, Friday 4 AM PST, 10/25
2 parents 991db89 + 975e368 commit 6b908c3

13 files changed

+151
-103
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: Setting HTTPOnly or Secure flag for Session Affinity cookie
3+
titleSuffix: Azure Application Gateway
4+
description: Learn how to set HTTPOnly or Secure flag for Session Affinity cookie
5+
services: application-gateway
6+
author: jaesoni
7+
ms.service: azure-application-gateway
8+
ms.topic: how-to
9+
ms.date: 10/22/2024
10+
ms.author: jaysoni
11+
---
12+
13+
# Setting HTTPOnly or Secure flag for Session Affinity cookie
14+
In this guide you learn to create a Rewrite set for your Application Gateway and configure Secure and HttpOnly [ApplicationGatewayAffinity cookie](configuration-http-settings.md#cookie-based-affinity).
15+
16+
17+
## Prerequisites
18+
* You must have an Azure subscription. You can create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
19+
* An existing Application Gateway resource configured with at least one Listener, Rule, Backend Setting and Backend Pool configuration. If you don't have one, you can create one by following the [QuickStart guide](quick-create-portal.md).
20+
21+
## Creating a Rewrite set
22+
23+
1. Sign in to the Azure portal.
24+
1. Navigate to the required Application Gateway resource.
25+
1. Select Rewrites in the left pane.
26+
1. Select Rewrite set.
27+
1. Under the Name and Association tab
28+
1. Specify a name for this new rewrite set.
29+
1. Select the routing rules for which you wish to rewrite the ApplicationGatewayAffinity cookie's flag.
30+
1. Select Next.
31+
1. Select "Add rewrite rule"
32+
1. Enter a name for the rewrite rule.
33+
1. Enter a numeric value for Rule Sequence field.
34+
1. Select "Add condition"
35+
1. Now open the "If" condition box and use the following details.
36+
1. Type of variable to check - HTTP header
37+
1. Header type - Response header
38+
1. Header name - Common header
39+
1. Common header - Set-Cookie
40+
1. Case-sensitive - No
41+
1. Operator - equal (=)
42+
1. Pattern to match - (.*)
43+
1. To save these details, select **OK**.
44+
1. Go to the **Then** box to specify action details.
45+
1. Rewrite type - Response header
46+
1. Action type - Set
47+
1. Header name - Common header
48+
1. Common header - Set-Cookie
49+
1. Header value - {http_resp_Set-Cookie_1}; HttpOnly; Secure
50+
1. Select **OK**
51+
1. Select Update to save the rewrite set configurations.
52+
53+
54+
## Next steps
55+
[Visit other configurations of a Backend Setting](configuration-http-settings.md)

articles/application-gateway/rewrite-http-headers-url.md

Lines changed: 68 additions & 83 deletions
Large diffs are not rendered by default.

articles/application-gateway/rewrite-url-portal.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: application-gateway
55
author: greg-lindsay
66
ms.service: azure-application-gateway
77
ms.topic: how-to
8-
ms.date: 4/05/2021
8+
ms.date: 10/22/2024
99
ms.author: greglin
1010
---
1111

@@ -72,7 +72,7 @@ In the below example whenever the request URL contains */article*, the URL path
7272

7373
f. Enter a regular expression pattern. In this example, we'll use the pattern `.*article/(.*)/(.*)`
7474

75-
( ) is used to capture the substring for later use in composing the expression for rewriting the URL path. For more information, see [here](rewrite-http-headers-url.md#capturing).
75+
( ) is used to capture the substring for later use in composing the expression for rewriting the URL path. For more information, see [Pattern matching and capturing](rewrite-http-headers-url.md#pattern-matching-and-capturing).
7676

7777
g. Select **OK**.
7878

articles/application-gateway/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@
267267
href: add-http-header-rewrite-rule-powershell.md
268268
- name: Create and rewrite HTTP headers
269269
href: tutorial-http-header-rewrite-powershell.md
270+
- name: Add secure flag for cookies
271+
href: application-gateway-secure-flag-session-affinity.md
270272
- name: URL rewrite
271273
items:
272274
- name: Azure portal

articles/data-factory/connector-mariadb.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: jianleishen
66
ms.subservice: data-movement
77
ms.custom: synapse
88
ms.topic: conceptual
9-
ms.date: 10/09/2024
9+
ms.date: 10/24/2024
1010
ms.author: jianleishen
1111
---
1212

@@ -82,6 +82,8 @@ If you use the recommended driver version, the following properties are supporte
8282
| database | Your MariaDB database name. | Yes |
8383
| username | Your user name. | Yes |
8484
| password | The password for the user name. Mark this field as SecureString to store it securely. Or, you can [reference a secret stored in Azure Key Vault](store-credentials-in-key-vault.md). | Yes |
85+
| sslMode | This option specifies whether the driver uses TLS encryption and verification when connecting to MariaDB. E.g., `SSLMode=<0/1/2/3/4>`.<br/>Options: DISABLED (0) / PREFERRED (1) / REQUIRED (2) / VERIFY_CA (3) / VERIFY_IDENTITY (4) **(Default)** | Yes |
86+
| useSystemTrustStore | This option specifies whether to use a CA certificate from the system trust store, or from a specified PEM file. E.g. `UseSystemTrustStore=<0/1>`;<br/>Options: Enabled (1) / Disabled (0) **(Default)** | No |
8587
| connectVia | The [Integration Runtime](concepts-integration-runtime.md) to be used to connect to the data store. Learn more from [Prerequisites](#prerequisites) section. If not specified, it uses the default Azure Integration Runtime. |No |
8688

8789
**Example:**
@@ -100,7 +102,9 @@ If you use the recommended driver version, the following properties are supporte
100102
"type": "SecureString",
101103
"value": "<password>"
102104
},
103-
"driverVersion": "v2"
105+
"driverVersion": "v2",
106+
"sslMode": <sslmode>,
107+
"useSystemTrustStore": <UseSystemTrustStore>
104108
},
105109
"connectVia": {
106110
"referenceName": "<name of Integration Runtime>",
@@ -130,7 +134,9 @@ If you use the recommended driver version, the following properties are supporte
130134
},
131135
"secretName": "<secretName>"
132136
},
133-
"driverVersion": "v2"
137+
"driverVersion": "v2",
138+
"sslMode": <sslmode>,
139+
"useSystemTrustStore": <UseSystemTrustStore>
134140
},
135141
"connectVia": {
136142
"referenceName": "<name of Integration Runtime>",
4.18 KB
Loading

articles/migrate/discovered-metadata.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ ms.author: vibansa
66
ms.manager: abhemraj
77
ms.service: azure-migrate
88
ms.topic: conceptual
9-
ms.date: 02/24/2023
10-
ms.custom: engagement-fy23, devx-track-extended-java
9+
ms.date: 10/25/2024
10+
ms.custom: engagement-fy25, devx-track-extended-java
1111
---
1212

1313
# Metadata discovered by Azure Migrate appliance
@@ -16,11 +16,11 @@ This article provides details of the metadata discovered by Azure Migrate applia
1616

1717
The [Azure Migrate appliance](migrate-appliance.md) is a lightweight appliance that the Azure Migrate: Discovery and assessment tool uses to discover servers running in your environment and send server configuration and performance metadata to Azure.
1818

19-
Metadata discovered by the Azure Migrate appliance helps you to assess server readiness for migration to Azure, right-size servers and plans costs. Microsoft doesn't use this data in any license compliance audit.
19+
Metadata discovered by the Azure Migrate appliance helps you to assess server readiness for migration to Azure, right-size servers, and plan costs. Microsoft doesn't use this data in any license compliance audit.
2020

2121
## Collected metadata for VMware servers
2222

23-
The appliance collects configuration, performance metadata, data about installed applications, roles and features (software inventory) and dependency data (if agentless dependency analysis is enabled) from servers running in your VMware environment.
23+
The appliance collects configuration, performance metadata, data about installed applications, roles, and features (software inventory) and dependency data (if agentless dependency analysis is enabled) from servers running in your VMware environment.
2424

2525
Here's the full list of server metadata that the appliance collects and sends to Azure:
2626

@@ -88,7 +88,7 @@ NIC writes throughput (MB per second) | net.transmitted.average |Calculation fo
8888

8989
## Collected metadata for Hyper-V servers
9090

91-
The appliance collects configuration, performance metadata, data about installed applications, roles and features (software inventory) and dependency data (if agentless dependency analysis is enabled) from servers running in your Hyper-V environment.
91+
The appliance collects configuration, performance metadata, data about installed applications, roles, and features (software inventory) and dependency data (if agentless dependency analysis is enabled) from servers running in your Hyper-V environment.
9292

9393
Here's the full list of server metadata that the appliance collects and sends to Azure.
9494

@@ -100,7 +100,7 @@ Server type (Gen 1 or 2) | Msvm_VirtualSystemSettingData | VirtualSystemSubType
100100
Server display name | Msvm_VirtualSystemSettingData | ElementName
101101
Server version | Msvm_ProcessorSettingData | VirtualQuantity
102102
Memory (bytes) | Msvm_MemorySettingData | VirtualQuantity
103-
Maximum memory that can be consumed by server | Msvm_MemorySettingData | Limit
103+
Maximum memory that the server can consume | Msvm_MemorySettingData | Limit
104104
Dynamic memory enabled | Msvm_MemorySettingData | DynamicMemoryEnabled
105105
Operating system name/version/FQDN | Msvm_KvpExchangeComponent | GuestIntrinsicExchangeItems Name Data
106106
Server power status | Msvm_ComputerSystem | EnabledState
@@ -136,7 +136,7 @@ Hyper-V Virtual Network Adapter | Bytes Sent/Second | Calculation for server siz
136136

137137
## Collected data for Physical servers
138138

139-
The appliance collects configuration, performance metadata, data about installed applications, roles and features (software inventory) and dependency data (if agentless [dependency analysis](concepts-dependency-visualization.md) is enabled) from physical servers or server running on other clouds like AWS, GCP, etc.
139+
The appliance collects configuration, performance metadata, data about installed applications, roles, and features (software inventory) and dependency data (if agentless [dependency analysis](concepts-dependency-visualization.md) is enabled) from physical servers or server running on other clouds like AWS, GCP, etc.
140140

141141
### Windows server metadata
142142

@@ -180,7 +180,7 @@ Here's the full list of Linux server metadata that the appliance collects and se
180180
**Data** | **Commands**
181181
--- | ---
182182
FQDN | cat /proc/sys/kernel/hostname, hostname -f
183-
Processor core count | cat/proc/cpuinfo \| awk '/^processor/{print $3}' \| wc -l
183+
Processor core count | cat /proc/cpuinfo \| awk '/^processor/{print $3}' \| wc -l
184184
Memory allocated | cat /proc/meminfo \| grep MemTotal \| awk '{printf "%.0f", $2/1024}'
185185
BIOS serial number | lshw \| grep "serial:" \| head -n1 \| awk '{print $2}' <br/> /usr/sbin/dmidecode -t 1 \| grep 'Serial' \| awk '{ $1="" ; $2=""; print}'
186186
BIOS GUID | cat /sys/class/dmi/id/product_uuid
@@ -210,7 +210,7 @@ Here's the Linux server performance data that the appliance collects and sends t
210210

211211
## Software inventory data
212212

213-
The appliance collects data about installed applications, roles and features (software inventory) from servers running in VMware environment/Hyper-V environment/physical servers or servers running on other clouds like AWS, GCP etc.
213+
The appliance collects data about installed applications, roles, and features (software inventory) from servers running in VMware environment/Hyper-V environment/physical servers or servers running on other clouds like AWS, GCP etc.
214214

215215
### Windows server applications data
216216

includes/iot-central-connect-device-c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ gcc --version
4343
To complete this tutorial on Windows, install the following software on your local Windows environment:
4444

4545
* [Visual Studio (Community, Professional, or Enterprise)](https://visualstudio.microsoft.com/downloads/) - make sure you include the **Desktop Development with C++** workload when you [install](/cpp/build/vscpp-step-0-installation?preserve-view=true&view=vs-2019) Visual Studio.
46-
* [Git](https://git-scm.com/download/).
46+
* [Git](https://git-scm.com/downloads).
4747
* [CMake](https://cmake.org/download/).
4848

4949
## Download the code

includes/iot-pnp-connect-device-c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ gcc --version
4343
To complete this tutorial on Windows, install the following software in your local Windows environment:
4444

4545
* [Visual Studio (Community, Professional, or Enterprise)](https://visualstudio.microsoft.com/downloads/) - make sure you include the **Desktop Development with C++** workload when you [install](/cpp/build/vscpp-step-0-installation?preserve-view=true&view=vs-2019) Visual Studio.
46-
* [Git](https://git-scm.com/download/).
46+
* [Git](https://git-scm.com/downloads).
4747
* [CMake](https://cmake.org/download/).
4848

4949
## Download the code

includes/iot-pnp-connect-device-csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This tutorial shows you how to build a sample IoT Plug and Play device applicati
1717
You can run this tutorial on Linux or Windows. The shell commands in this tutorial follow the Linux convention for path separators '`/`', if you're following along on Windows be sure to swap these separators for '`\`'.
1818

1919
* The latest [.NET SDK](https://dotnet.microsoft.com/download) for your platform.
20-
* [Git](https://git-scm.com/download/).
20+
* [Git](https://git-scm.com/downloads).
2121

2222
## Download the code
2323

0 commit comments

Comments
 (0)