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
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)
Copy file name to clipboardExpand all lines: articles/application-gateway/rewrite-url-portal.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
@@ -5,7 +5,7 @@ services: application-gateway
5
5
author: greg-lindsay
6
6
ms.service: azure-application-gateway
7
7
ms.topic: how-to
8
-
ms.date: 4/05/2021
8
+
ms.date: 10/22/2024
9
9
ms.author: greglin
10
10
---
11
11
@@ -72,7 +72,7 @@ In the below example whenever the request URL contains */article*, the URL path
72
72
73
73
f. Enter a regular expression pattern. In this example, we'll use the pattern `.*article/(.*)/(.*)`
74
74
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).
Copy file name to clipboardExpand all lines: articles/data-factory/connector-mariadb.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: jianleishen
6
6
ms.subservice: data-movement
7
7
ms.custom: synapse
8
8
ms.topic: conceptual
9
-
ms.date: 10/09/2024
9
+
ms.date: 10/24/2024
10
10
ms.author: jianleishen
11
11
---
12
12
@@ -82,6 +82,8 @@ If you use the recommended driver version, the following properties are supporte
82
82
| database | Your MariaDB database name. | Yes |
83
83
| username | Your user name. | Yes |
84
84
| 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 |
85
87
| 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 |
86
88
87
89
**Example:**
@@ -100,7 +102,9 @@ If you use the recommended driver version, the following properties are supporte
100
102
"type": "SecureString",
101
103
"value": "<password>"
102
104
},
103
-
"driverVersion": "v2"
105
+
"driverVersion": "v2",
106
+
"sslMode": <sslmode>,
107
+
"useSystemTrustStore": <UseSystemTrustStore>
104
108
},
105
109
"connectVia": {
106
110
"referenceName": "<name of Integration Runtime>",
@@ -130,7 +134,9 @@ If you use the recommended driver version, the following properties are supporte
@@ -16,11 +16,11 @@ This article provides details of the metadata discovered by Azure Migrate applia
16
16
17
17
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.
18
18
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.
20
20
21
21
## Collected metadata for VMware servers
22
22
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.
24
24
25
25
Here's the full list of server metadata that the appliance collects and sends to Azure:
26
26
@@ -88,7 +88,7 @@ NIC writes throughput (MB per second) | net.transmitted.average |Calculation fo
88
88
89
89
## Collected metadata for Hyper-V servers
90
90
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.
92
92
93
93
Here's the full list of server metadata that the appliance collects and sends to Azure.
94
94
@@ -100,7 +100,7 @@ Server type (Gen 1 or 2) | Msvm_VirtualSystemSettingData | VirtualSystemSubType
100
100
Server display name | Msvm_VirtualSystemSettingData | ElementName
101
101
Server version | Msvm_ProcessorSettingData | VirtualQuantity
Operating system name/version/FQDN | Msvm_KvpExchangeComponent | GuestIntrinsicExchangeItems Name Data
106
106
Server power status | Msvm_ComputerSystem | EnabledState
@@ -136,7 +136,7 @@ Hyper-V Virtual Network Adapter | Bytes Sent/Second | Calculation for server siz
136
136
137
137
## Collected data for Physical servers
138
138
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.
140
140
141
141
### Windows server metadata
142
142
@@ -180,7 +180,7 @@ Here's the full list of Linux server metadata that the appliance collects and se
BIOS serial number | lshw \| grep "serial:" \| head -n1 \| awk '{print $2}' <br/> /usr/sbin/dmidecode -t 1 \| grep 'Serial' \| awk '{ $1="" ; $2=""; print}'
186
186
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
210
210
211
211
## Software inventory data
212
212
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.
Copy file name to clipboardExpand all lines: includes/iot-central-connect-device-c.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ gcc --version
43
43
To complete this tutorial on Windows, install the following software on your local Windows environment:
44
44
45
45
*[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.
Copy file name to clipboardExpand all lines: includes/iot-pnp-connect-device-c.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ gcc --version
43
43
To complete this tutorial on Windows, install the following software in your local Windows environment:
44
44
45
45
*[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.
Copy file name to clipboardExpand all lines: includes/iot-pnp-connect-device-csharp.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ This tutorial shows you how to build a sample IoT Plug and Play device applicati
17
17
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 '`\`'.
18
18
19
19
* The latest [.NET SDK](https://dotnet.microsoft.com/download) for your platform.
0 commit comments