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
# How to use Commit Workflow v2 in Azure Operator Nexus
13
13
14
-
The **Commit Workflow v2** ensures that device-impacting changes to a Network Fabric instance are explicitly acknowledged and committed before being applied to the underlying infrastructure. This structured workflow increases reliability and control over configuration changes.
14
+
This article describes how to use Commit Workflow Version 2 (Commit V2) in Azure Operator Nexus to safely stage, review, commit, or discard configuration changes across supported resources. Commit V2 provides a more efficient and robust method of applying changes to Nexus fabric resources compared to the earlier commit model.
15
15
16
16
## Prerequisites
17
17
@@ -27,14 +27,39 @@ The **Commit Workflow v2** ensures that device-impacting changes to a Network Fa
27
27
28
28
## Commit Workflow v2 overview
29
29
30
-
Any `patch` operation on parent resources or `Create`/`Update`/`Delete` (CUD) operation on connected child resources now requires an explicit commit step. Changes are **batched** until you lock, validate (optional), and commit them.
30
+
Commit V2 enables you to update supported resources in a draft state, validate configuration changes, view configuration differences, and explicitly commit or discard the changes. It ensures atomicity, operational control, and improved user experience for complex network fabric operations.
31
31
32
-
### Step 1: Update resources
32
+
### Benefits of Commit V2
33
33
34
-
Make patch or CUD operations via Azure CLI, Portal, or ARM template.
35
-
Once these changes are made, the fabric's configuration state changes to `Accepted (Pending Commit)`.
34
+
- Faster commit operations: Reduces the time to apply configuration changes.
36
35
37
-
#### Example scenarios
36
+
- Review pending configuration: View and validate configuration differences before committing.
37
+
38
+
- Discard commit batch: Revert staged changes if necessary.
39
+
40
+
- Lock configuration: Prevent conflicting changes during staging and review.
41
+
42
+
- Foundation for advanced scenarios: Enables A/B commit strategy and multi-user sessions in future releases.
43
+
44
+
### Workflow summary
45
+
46
+
The Commit V2 workflow includes the following steps:
47
+
48
+
- Update supported resources in draft mode using PATCH operations.
49
+
50
+
- Lock the fabric configuration to review or discard staged changes.
51
+
52
+
- Optionally, view configuration differences for each device.
53
+
54
+
- Either commit or discard the changes.
55
+
56
+
- After commit/discard, the fabric and all related resources return to a Provisioned state.
57
+
58
+
### Step 1: Update resources in draft mode
59
+
60
+
Resources can be updated using PATCH operations that leave the resource in a draft (ConfigurationState: `Accepted`) until explicitly committed. These changes are not applied to the data plane until committed.
61
+
62
+
#### Example scenario
38
63
39
64
* Create a new **Route Policy** and attach it to **Internal Network 1**
40
65
@@ -43,7 +68,9 @@ Once these changes are made, the fabric's configuration state changes to `Accept
43
68
All these changes are **batched**, but **not applied** to devices yet.
44
69
45
70
46
-
### Step 2: Lock Configuration (Mandatory)
71
+
### Step 2: Lock fabric configuration
72
+
73
+
Before you can view the configuration diff or discard the commit, the fabric must be locked in configuration mode.
47
74
48
75
Lock the configuration to signal that all intended updates are completed. After this lock, **no further updates** can be made to any fabric-related resources until you unlock.
49
76
@@ -57,17 +84,21 @@ az networkfabric fabric lock-fabric \
57
84
--resource-group "example-rg"
58
85
```
59
86
60
-
- Successful execution transitions the fabric to a **locked state**.
61
-
62
-
- Check CLI output for success or failure status.
63
-
87
+
> [!Note]
88
+
> Ensure fabric configuration state is Accepted.<br>
89
+
> Fabric is not under maintenance due to unrelated (non-commit) operations.<br>
90
+
> Network Fabric version is >= 5.0.1.<br>
91
+
> Fabric is in ProvisioningState: Succeeded.<br>
64
92
65
93
### Step 3: Validate updates (Optional but recommended)
66
94
95
+
Another key functionality commit V2 provides is to view the pending commit configuration and last committed configuration for each device (except NPB devices) so that users can compare them to validate the intended configuration. In case of any discrepancy, users can unlock the fabric, make necessary change, lock fabric, review pending commit followed by commit operation.
96
+
67
97
Validate the configuration using the `view-device-configuration` post-action. This step provides insight into the expected configuration outcomes.
68
98
69
99
> [!Important]
70
-
> BYOS must be configured on the Network Fabric.
100
+
> The fabric must be locked in configuration mode.<br>
101
+
> [BYOS](/articles/operator-nexus/howto-configure-bring-your-own-storage-network-fabric.md) must be configured on the Network Fabric.
71
102
72
103
#### Azure CLI Command
73
104
@@ -78,19 +109,27 @@ az networkfabric fabric view-device-configuration \
78
109
--resource-group "example-rg"
79
110
```
80
111
81
-
-**Pre-Device Changes**: Current config for all devices (CE, TOR, Management Switches)
112
+
#### Configuration diff location
113
+
114
+
Configuration diff files are stored in the customer-provided storage account in the following format:
-**Post-Device Changes**: Preview of what will be applied after commit
120
+
Additionally, to retrieve the current CommitBatchId, perform a GET request on the fabric resource using API version `2024-06-15-preview` or above.
84
121
85
122
### Step 3a: Discard commit batch (Optional)
86
123
124
+
Commit Discard is a POST action on NetworkFabric, allowed before a commit is performed. This operation allows a user to revert the changes made to the resources via PATCH operations for a specific commit session.
87
125
After validating with ViewDeviceConfiguration, users may choose to discard pending configuration updates if issues are found. This operation restores the ARM resource state to its last known good configuration and resets the fabric state from Accepted & Locked to Succeeded.
0 commit comments