Commit 3d3fda8
authored
Fix az CLI query in ISA-95 pipeline (#7479)
There's an Azure CLI command in the setup for the ISA-95 smoke test pipeline which gets the NSG for a given NIC. It needs this information so it can add a rule to the NSG to block outbound traffic during the smoke test. The JMESPath query in the Azure CLI command was wrong; it is supposed to find any NSGs associated with the NIC via network interface _or_ subnet, but it was only finding the former. This update fixes the query to find both.
I also replaced some hard-coded proxy URLs with pipeline variables. In the future we can replace those with Azure CLI commands that get the IP address for each proxy server given their VM name (which is currently still hard-coded into the tests), but this incremental improvement is a reasonable first step.
I ran the smoke test in a previously failing environment that has a subnet association instead of network interface, and it passed.
## Azure IoT Edge PR checklist:1 parent 3c1b551 commit 3d3fda8
File tree
2 files changed
+6
-7
lines changed- builds/e2e
- templates
2 files changed
+6
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | 23 | | |
26 | | - | |
| 24 | + | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
74 | | - | |
| 72 | + | |
75 | 73 | | |
76 | 74 | | |
77 | 75 | | |
| |||
154 | 152 | | |
155 | 153 | | |
156 | 154 | | |
157 | | - | |
| 155 | + | |
158 | 156 | | |
159 | 157 | | |
160 | 158 | | |
| |||
222 | 220 | | |
223 | 221 | | |
224 | 222 | | |
225 | | - | |
| 223 | + | |
226 | 224 | | |
227 | 225 | | |
228 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments