Skip to content

Commit 2bcf6a6

Browse files
committed
updated with VIP config syntax and sample output
1 parent ce633fc commit 2bcf6a6

File tree

1 file changed

+55
-38
lines changed

1 file changed

+55
-38
lines changed

articles/databox-online/azure-stack-edge-zero-touch-provisioning.md

Lines changed: 55 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -196,18 +196,18 @@ Run the following cmdlets in PowerShell:
196196
Set-Login "https://<IP address>" "<Password>"
197197
```
198198

199-
1. Before you run the device configuration operation, ensure that the JSON file uses the `node.name` of the device to be changed.
199+
1. Before you run the device configuration operation, ensure that the JSON file uses the `nodeName` of the device to be changed.
200200

201201
> [!NOTE]
202-
> Each device has a unique `node.name`. To change device configuration settings, the `node.name` in the JSON file must match the `node.name` of the device to be changed.
202+
> Each device has a unique `nodeName`. To change device configuration settings, the `nodeName` in the JSON file must match the `nodeName` of the device to be changed.
203203
204-
Fetch the `node.name` from the device with the following command in PowerShell:
204+
Fetch the `nodeName` from the device with the following command in PowerShell:
205205

206206
```azurepowershell
207207
Get-DeviceConfiguration | To-json
208208
```
209209

210-
Here's an example of output showing `node.name` for the device:
210+
Here's an example of output showing `nodeName` for the device:
211211

212212
```output
213213
@@ -608,61 +608,78 @@ Use the following steps to set the VIP configuration on a two-node Azure Stack E
608608
Get-DeviceConfiguration | To-json
609609
```
610610
611-
1. Set the VIP property, with a static ACS configuration.
611+
1. Fetch the device VIP configuration.
612612
613613
```azurepowershell
614-
$acsVip = New-Object PSObject -Property @{ Type = "ACS"; VipAddress = "192.168.181.10"; ClusterNetworkAddress = "192.168.0.0"; IsDhcpEnabled = $false }
615-
```
616-
617-
Here is sample output:
618-
619-
620-
1. Create a VIP object with the VIP properties and DHCP configuration.
621-
622-
```azurepowershell
623-
$nfsVip = New-Object PSObject -Property @{ Type = "NFS"; VipAddress = "192.168.181.11"; ClusterNetworkAddress = "192.168.0.0"; IsDhcpEnabled = $false }
624-
```
625-
For a DHCP configuration:
626-
627-
```azurepowershell
628-
$acsVip = New-Object PSObject -Property @{ Type = "ACS"; VipAddress = $null; ClusterNetworkAddress = "192.168.0.0"; IsDhcpEnabled = $true }
629-
$nfsVip = New-Object PSObject -Property @{ Type = "NFS"; VipAddress = $null; ClusterNetworkAddress = "192.168.0.0"; IsDhcpEnabled = $true }
630-
```
631-
632-
1. Create a package.
633-
634-
```azurepowershell
635-
$p = New-Package -VIP $nfsvip
614+
Get-DeviceVip | to-json
636615
```
637616
638-
1. Run the package.
617+
1. Set the VIP property with a static ACS configuration.
639618
640619
```azurepowershell
641-
$newCfg = Set-DeviceVip -vip $nfsVip $p
620+
$acsVip = New-Object PSObject -Property @{ Type = "ACS"; VipAddress = "192.168.181.10"; ClusterNetworkAddress = "192.168.0.0"; IsDhcpEnabled = $false }
642621
```
643622
644-
Here's a sample output:
645-
646-
1. Monitor status of the operation. It may take 10 minutes or more for the changes to complete.
623+
1. Update the device with the VIP property.
647624
648625
```azurepowershell
649-
Get-DeviceConfigurationStatus | To-json
626+
Set-DeviceVip -vip $acsVip
650627
```
651628
652-
1. Fetch the updated device configuration.
629+
Here is sample output:
653630
654-
```azurepowershell
655-
Get-DeviceConfiguration | To-json
631+
```output
632+
acsVIP nfsVIP
633+
------ ------
634+
@{type=ACS; name=Azure Consistent Services; address=192.168.181.10; network=; isDhcpEnabled=False} @{type=NFS; name=Network File Syst...
656635
```
657636
658-
1. Fetch the updated VIP configuration property.
637+
1. Fetch the updated device VIP configuration.
659638
660639
```azurepowershell
661640
Get-DeviceVip | to-json
662641
```
663642
664-
Here's a sample output:
643+
Here is sample output:
665644
645+
```output
646+
{
647+
"acsVIP": {
648+
"type": "ACS",
649+
"name": "Azure Consistent Services",
650+
"address": "192.168.181.10",
651+
"network": {
652+
"name": "Cluster Network 1",
653+
"address": "192.168.0.0",
654+
"subnet": "255.255.0.0",
655+
"dhcpEnabled": true
656+
},
657+
"isDhcpEnabled": false
658+
},
659+
"nfsVIP": {
660+
"type": "NFS",
661+
"name": "Network File System",
662+
"address": null,
663+
"network": null,
664+
"isDhcpEnabled": false
665+
},
666+
"clusterNetworks": [
667+
{
668+
"name": "Cluster Network 1",
669+
"address": "192.168.0.0",
670+
"subnet": "255.255.0.0",
671+
"dhcpEnabled": true
672+
},
673+
{
674+
"name": "Cluster Network 4",
675+
"address": "10.126.72.0",
676+
"subnet": "255.255.248.0",
677+
"dhcpEnabled": true
678+
}
679+
]
680+
}
681+
PS C:\ztp>
682+
```
666683
667684
## Troubleshooting
668685

0 commit comments

Comments
 (0)