Skip to content

Commit 526e9d5

Browse files
committed
Updated sample output in tabs
1 parent c16e375 commit 526e9d5

File tree

1 file changed

+111
-23
lines changed

1 file changed

+111
-23
lines changed

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

Lines changed: 111 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ You can set either an Azure Consistent Services or a Network File System configu
10821082
"name": "Cluster Network 1",
10831083
"address": "192.168.0.0",
10841084
"subnet": "255.255.0.0",
1085-
"dhcpEnabled": true
1085+
"dhcpEnabled": false
10861086
},
10871087
"isDhcpEnabled": false
10881088
},
@@ -1098,7 +1098,25 @@ You can set either an Azure Consistent Services or a Network File System configu
10981098
Get-DeviceVip | to-json
10991099
```
11001100
1101-
Here's sample output showing the initial state of **acsVIP setting "isDhcpEnabled": false** on the device:
1101+
1. Set the `DeviceVIP` property to enable DHCP.
1102+
1103+
```azurepowershell
1104+
$acsVip = New-Object PSObject -Property @{ Type = "ACS"; VipAddress = "192.168.181.10"; ClusterNetworkAddress = "192.168.0.0"; IsDhcpEnabled = $true }
1105+
```
1106+
1107+
1. Update the device with the `DeviceVIP` property.
1108+
1109+
```azurepowershell
1110+
Set-DeviceVip -vip $acsVip
1111+
```
1112+
1113+
1. Fetch the updated `DeviceVIP` configuration.
1114+
1115+
```azurepowershell
1116+
Get-DeviceVip | to-json
1117+
```
1118+
1119+
Here's sample output:
11021120
11031121
```output
11041122
{
@@ -1110,63 +1128,133 @@ You can set either an Azure Consistent Services or a Network File System configu
11101128
"name": "Cluster Network 1",
11111129
"address": "192.168.0.0",
11121130
"subnet": "255.255.0.0",
1113-
"dhcpEnabled": false
1131+
"dhcpEnabled": true
11141132
},
1115-
"isDhcpEnabled": false
1133+
"isDhcpEnabled": true
11161134
},
11171135
}
1136+
PS C:\>
1137+
```
1138+
1139+
### [Network File System](#tab/network-file-system)
1140+
1141+
### Set a static Network File System configuration
1142+
1143+
1. Fetch the `DeviceVIP` configuration.
1144+
```azurepowershell
1145+
Get-DeviceVip | to-json
11181146
```
11191147
11201148
1. Set the `DeviceVIP` property to enable DHCP.
11211149
11221150
```azurepowershell
1123-
$acsVip = New-Object PSObject -Property @{ Type = "ACS"; VipAddress = "192.168.181.10"; ClusterNetworkAddress = "192.168.0.0"; IsDhcpEnabled = $true }
1151+
$nfsVip = New-Object PSObject -Property @{ Type = "NFS"; VipAddress = $null; ClusterNetworkAddress = "192.168.0.0"; IsDhcpEnabled = $false }
11241152
```
11251153
11261154
1. Update the device with the `DeviceVIP` property.
11271155
11281156
```azurepowershell
1129-
Set-DeviceVip -vip $acsVip
1157+
Set-DeviceVip -vip $nfsVip
11301158
```
11311159
11321160
1. Fetch the updated `DeviceVIP` configuration.
11331161
11341162
```azurepowershell
11351163
Get-DeviceVip | to-json
11361164
```
1165+
Here is sample output:
11371166
1138-
Here's sample output showing the updated **acsVIP setting "isDhcpEnabled": true** on the device:
1139-
1140-
```output
1167+
```Output
11411168
{
1142-
"acsVIP": {
1143-
"type": "ACS",
1144-
"name": "Azure Consistent Services",
1145-
"address": "192.168.181.10",
1169+
"nfsVIP": {
1170+
"type": "NFS",
1171+
"name": "Network File System",
1172+
"address": "192.168.2.119",
11461173
"network": {
11471174
"name": "Cluster Network 1",
11481175
"address": "192.168.0.0",
11491176
"subnet": "255.255.0.0",
1150-
"dhcpEnabled": true
1177+
"dhcpEnabled": false
11511178
},
1152-
"isDhcpEnabled": true
1179+
"isDhcpEnabled": false
11531180
},
1154-
}
1181+
"clusterNetworks": [
1182+
{
1183+
"name": "Cluster Network 1",
1184+
"address": "192.168.0.0",
1185+
"subnet": "255.255.0.0",
1186+
"dhcpEnabled": false
1187+
},
1188+
{
1189+
"name": "Cluster Network 4",
1190+
"address": "10.126.72.0",
1191+
"subnet": "255.255.248.0",
1192+
"dhcpEnabled": false
1193+
}
1194+
]
1195+
}
11551196
PS C:\>
11561197
```
11571198
1158-
### [Network File System](#tab/network-file-system)
1199+
### Set a DHCP Network File System configuration
11591200
1160-
### Set a static Network File System configuration
1161-
NFS content...
1201+
1. Fetch the `DeviceVIP` configuration.
1202+
```azurepowershell
1203+
Get-DeviceVip | to-json
1204+
```
11621205
1163-
1. Step 1 for static NFS...
1206+
1. Set the `DeviceVIP` property to enable DHCP.
11641207
1165-
### Set a DHCP Network File System configuration
1208+
```azurepowershell
1209+
$nfsVip = New-Object PSObject -Property @{ Type = "NFS"; VipAddress = $null; ClusterNetworkAddress = "192.168.0.0"; IsDhcpEnabled = $true }
1210+
```
1211+
1212+
1. Update the device with the `DeviceVIP` property.
1213+
1214+
```azurepowershell
1215+
Set-DeviceVip -vip $nfsVip
1216+
```
11661217
1167-
NFS content for...
1218+
1. Fetch the updated `DeviceVIP` configuration.
1219+
1220+
```azurepowershell
1221+
Get-DeviceVip | to-json
1222+
```
1223+
1224+
Here's sample output:
1225+
1226+
```output
1227+
{
1228+
"nfsVIP": {
1229+
"type": "NFS",
1230+
"name": "Network File System",
1231+
"address": "192.168.2.119",
1232+
"network": {
1233+
"name": "Cluster Network 1",
1234+
"address": "192.168.0.0",
1235+
"subnet": "255.255.0.0",
1236+
"dhcpEnabled": true
1237+
},
1238+
"isDhcpEnabled": true
1239+
},
1240+
"clusterNetworks": [
1241+
{
1242+
"name": "Cluster Network 1",
1243+
"address": "192.168.0.0",
1244+
"subnet": "255.255.0.0",
1245+
"dhcpEnabled": true
1246+
},
1247+
{
1248+
"name": "Cluster Network 4",
1249+
"address": "10.126.72.0",
1250+
"subnet": "255.255.248.0",
1251+
"dhcpEnabled": true
1252+
}
1253+
]
1254+
}
1255+
PS C:\>
1256+
```
11681257
1169-
1. Step 1 for DHCP NFS...
11701258
---
11711259
11721260
## Troubleshooting

0 commit comments

Comments
 (0)