Skip to content

Commit 9c95c9a

Browse files
committed
Updated sample output for VIP configuration
1 parent 760232e commit 9c95c9a

File tree

1 file changed

+74
-16
lines changed

1 file changed

+74
-16
lines changed

articles/databox-online/azure-stack-edge-powershell-based-configuration.md

Lines changed: 74 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,7 @@ The example below shows a static ACS configuration, followed by an example that
10751075
acsVIP nfsVIP
10761076
------ ------
10771077
@{type=ACS; name=Azure Consistent Services; address=192.168.181.10; network=; isDhcpEnabled=False} @{type=NFS; name=Network File Syst...
1078+
}
10781079
```
10791080
10801081
1. Fetch the updated `DeviceVIP` configuration.
@@ -1146,26 +1147,71 @@ The example below shows a DHCP configuration.
11461147
Get-DeviceVip | to-json
11471148
```
11481149
1149-
1. Set the `DeviceVIP` property with DHCP enabled.
1150+
Here's sample output showing **nfsVIP setting "isDhcpEnabled": false** on the device:
1151+
1152+
```output
1153+
{
1154+
"acsVIP": {
1155+
"type": "ACS",
1156+
"name": "Azure Consistent Services",
1157+
"address": "192.168.181.10",
1158+
"network": {
1159+
"name": "Cluster Network 1",
1160+
"address": "192.168.0.0",
1161+
"subnet": "255.255.0.0",
1162+
"dhcpEnabled": true
1163+
},
1164+
"isDhcpEnabled": false
1165+
},
1166+
"nfsVIP": {
1167+
"type": "NFS",
1168+
"name": "Network File System",
1169+
"address": null,
1170+
"network": null,
1171+
"isDhcpEnabled": false
1172+
},
1173+
"clusterNetworks": [
1174+
{
1175+
"name": "Cluster Network 1",
1176+
"address": "192.168.0.0",
1177+
"subnet": "255.255.0.0",
1178+
"dhcpEnabled": true
1179+
},
1180+
{
1181+
"name": "Cluster Network 2",
1182+
"address": "10.139.218.0",
1183+
"subnet": "255.255.255.0",
1184+
"dhcpEnabled": false
1185+
},
1186+
{
1187+
"name": "Cluster Network 3",
1188+
"address": "10.126.72.0",
1189+
"subnet": "255.255.248.0",
1190+
"dhcpEnabled": true
1191+
}
1192+
]
1193+
}
1194+
```
1195+
1196+
1. Set the `DeviceVIP` property to enable DHCP.
11501197
11511198
```azurepowershell
1152-
$acsVip = New-Object PSObject -Property @{ Type = "ACS"; VipAddress = "192.168.181.10"; ClusterNetworkAddress = "192.168.0.0"; IsDhcpEnabled = $true }
1199+
$nfsVip = New-Object PSObject -Property @{ Type = "NFS"; VipAddress = "192.168.181.10"; ClusterNetworkAddress = "192.168.0.0"; IsDhcpEnabled = $true }
11531200
```
11541201
11551202
1. Update the device with the `DeviceVIP` property.
11561203
11571204
```azurepowershell
1158-
Set-DeviceVip -vip $acsVip
1205+
Set-DeviceVip -vip $nfsVip
11591206
```
11601207
1161-
Here is sample output:
1208+
Here's sample output:
11621209
11631210
```output
1164-
acsVIP nfsVIP
1165-
------ ------
1166-
@{type=ACS; name=Azure Consistent Services; address=192.168.2.8; network=; isDhcpEnabled=True} @{ty...
1167-
1168-
PS C:\>
1211+
acsVIP nfsVIP
1212+
------ ------
1213+
@{type=ACS; name=Azure Consistent Services; address=192.168.181.10; network=; isDhcpEnabled=False} @{type=NFS; name=Network File System; address=192.168.3.63; network=; ...
1214+
}
11691215
```
11701216
11711217
1. Fetch the updated `DeviceVIP` configuration.
@@ -1174,28 +1220,33 @@ The example below shows a DHCP configuration.
11741220
Get-DeviceVip | to-json
11751221
```
11761222
1177-
Here is sample output:
1223+
Here's sample output:
11781224
11791225
```output
11801226
{
11811227
"acsVIP": {
11821228
"type": "ACS",
11831229
"name": "Azure Consistent Services",
1184-
"address": "192.168.2.8",
1230+
"address": "192.168.181.10",
11851231
"network": {
11861232
"name": "Cluster Network 1",
11871233
"address": "192.168.0.0",
11881234
"subnet": "255.255.0.0",
11891235
"dhcpEnabled": true
11901236
},
1191-
"isDhcpEnabled": true
1237+
"isDhcpEnabled": false
11921238
},
11931239
"nfsVIP": {
11941240
"type": "NFS",
11951241
"name": "Network File System",
1196-
"address": null,
1197-
"network": null,
1198-
"isDhcpEnabled": false
1242+
"address": "192.168.3.63",
1243+
"network": {
1244+
"name": "Cluster Network 1",
1245+
"address": "192.168.0.0",
1246+
"subnet": "255.255.0.0",
1247+
"dhcpEnabled": true
1248+
},
1249+
"isDhcpEnabled": true
11991250
},
12001251
"clusterNetworks": [
12011252
{
@@ -1205,14 +1256,21 @@ The example below shows a DHCP configuration.
12051256
"dhcpEnabled": true
12061257
},
12071258
{
1208-
"name": "Cluster Network 4",
1259+
"name": "Cluster Network 2",
1260+
"address": "10.139.218.0",
1261+
"subnet": "255.255.255.0",
1262+
"dhcpEnabled": false
1263+
},
1264+
{
1265+
"name": "Cluster Network 3",
12091266
"address": "10.126.72.0",
12101267
"subnet": "255.255.248.0",
12111268
"dhcpEnabled": true
12121269
}
12131270
]
12141271
}
12151272
PS C:\>
1273+
12161274
```
12171275
12181276
## Troubleshooting

0 commit comments

Comments
 (0)