@@ -13,7 +13,7 @@ Invoke-LiveTestScenario -Name "Network interface CRUD with public IP address" -D
13
13
14
14
$snet = New-AzVirtualNetworkSubnetConfig - Name $snetName - AddressPrefix 10.0 .1.0 / 24
15
15
$vnet = New-AzVirtualNetwork - ResourceGroupName $rgName - Name $vnetName - Location $location - AddressPrefix 10.0 .0.0 / 16 - Subnet $snet
16
- $pip = New-AzPublicIpAddress - ResourceGroupName $rgName - Name $pipName - Location $location - AllocationMethod Dynamic - DomainNameLabel $domainNameLabel
16
+ $pip = New-AzPublicIpAddress - ResourceGroupName $rgName - Name $pipName - Location $location - AllocationMethod Static - DomainNameLabel $domainNameLabel
17
17
$ipcfg = New-AzNetworkInterfaceIpConfig - Name $ipcfgName - Subnet $vnet.Subnets [0 ] - PublicIpAddress $pip
18
18
New-AzNetworkInterface - ResourceGroupName $rgName - Name $nicName - Location $location - IpConfiguration $ipcfg
19
19
$actualNic = Get-AzNetworkInterface - ResourceGroupName $rgName - Name $nicName
@@ -33,7 +33,7 @@ Invoke-LiveTestScenario -Name "Network interface CRUD with public IP address" -D
33
33
$actualPip = Get-AzPublicIpAddress - ResourceGroupName $rgName - Name $pipName
34
34
Assert-AreEqual $rgName $actualPip.ResourceGroupName
35
35
Assert-AreEqual $pipName $actualPip.Name
36
- Assert-AreEqual " Dynamic " $actualPip.PublicIpAllocationMethod
36
+ Assert-AreEqual " Static " $actualPip.PublicIpAllocationMethod
37
37
Assert-AreEqual $actualPip.Id $actualNic.IpConfigurations [0 ].PublicIpAddress.Id
38
38
39
39
$actualVnet = Get-AzVirtualNetwork - Name $vnetName - ResourceGroupName $rgName
@@ -96,7 +96,7 @@ Invoke-LiveTestScenario -Name "Network interface CRUD with IP configuration" -De
96
96
$snet = New-AzVirtualNetworkSubnetConfig - Name $snetName - AddressPrefix 10.0 .1.0 / 24
97
97
$vnet = New-AzVirtualNetwork - ResourceGroupName $rgName - Name $vnetName - Location $location - AddressPrefix 10.0 .0.0 / 16 - Subnet $snet
98
98
99
- $pip = New-AzPublicIpAddress - ResourceGroupName $rgName - Name $pipName - Location $location - AllocationMethod Dynamic - DomainNameLabel $domainNameLabel
99
+ $pip = New-AzPublicIpAddress - ResourceGroupName $rgName - Name $pipName - Location $location - AllocationMethod Static - DomainNameLabel $domainNameLabel
100
100
$ipconfig1 = New-AzNetworkInterfaceIpConfig - Name $ipconfig1Name - Subnet $vnet.Subnets [0 ] - PublicIpAddress $pip
101
101
$ipconfig2 = New-AzNetworkInterfaceIpConfig - Name $ipconfig2Name - PrivateIpAddressVersion IPv6
102
102
@@ -110,7 +110,7 @@ Invoke-LiveTestScenario -Name "Network interface CRUD with IP configuration" -De
110
110
$actualPip = Get-AzPublicIpAddress - ResourceGroupName $rgName - Name $pipName
111
111
Assert-AreEqual $rgName $actualPip.ResourceGroupName
112
112
Assert-AreEqual $pipName $actualPip.Name
113
- Assert-AreEqual " Dynamic " $actualPip.PublicIpAllocationMethod
113
+ Assert-AreEqual " Static " $actualPip.PublicIpAllocationMethod
114
114
Assert-AreEqual $actualPip.Id $actualNic.IpConfigurations [0 ].PublicIpAddress.Id
115
115
116
116
$actualVnet = Get-AzVirtualNetwork - ResourceGroupName $rgName - Name $vnetName
@@ -123,7 +123,6 @@ Invoke-LiveTestScenario -Name "Network interface CRUD with IP configuration" -De
123
123
Assert-AreEqual $ipconfig1Name $actualNic.IpConfigurations [0 ].Name
124
124
Assert-AreEqual $pip.Id $actualNic.IpConfigurations [0 ].PublicIpAddress.Id
125
125
Assert-AreEqual $actualVnet.Subnets [0 ].Id $actualNic.IpConfigurations [0 ].Subnet.Id
126
- Assert-AreEqual " Dynamic" $actualNic.IpConfigurations [0 ].PrivateIpAllocationMethod
127
126
Assert-AreEqual IPv4 $actualNic.IpConfigurations [0 ].PrivateIpAddressVersion
128
127
129
128
Assert-AreEqual $ipconfig2Name $actualNic.IpConfigurations [1 ].Name
@@ -150,7 +149,7 @@ Invoke-LiveTestScenario -Name "Network interface CRUD with accelerated networkin
150
149
151
150
$snet = New-AzVirtualNetworkSubnetConfig - Name $snetName - AddressPrefix 10.0 .1.0 / 24
152
151
$vnet = New-AzVirtualNetwork - ResourceGroupName $rgName - Name $vnetName - Location $location - AddressPrefix 10.0 .0.0 / 16 - Subnet $snet
153
- $pip = New-AzPublicIpAddress - ResourceGroupName $rgName - Name $pipName - Location $location - AllocationMethod Dynamic - DomainNameLabel $domainNameLabel
152
+ $pip = New-AzPublicIpAddress - ResourceGroupName $rgName - Name $pipName - Location $location - AllocationMethod Static - DomainNameLabel $domainNameLabel
154
153
$ipcfg = New-AzNetworkInterfaceIpConfig - Name $ipcfgName - Subnet $vnet.Subnets [0 ] - PublicIpAddress $pip
155
154
New-AzNetworkInterface - ResourceGroupName $rgName - Name $nicName - Location $location - IpConfiguration $ipcfg - EnableAcceleratedNetworking
156
155
@@ -166,7 +165,7 @@ Invoke-LiveTestScenario -Name "Network interface CRUD with accelerated networkin
166
165
$actualPip = Get-AzPublicIpAddress - ResourceGroupName $rgname - name $pipName
167
166
Assert-AreEqual $rgName $actualPip.ResourceGroupName
168
167
Assert-AreEqual $pipName $actualPip.Name
169
- Assert-AreEqual " Dynamic " $actualPip.PublicIpAllocationMethod
168
+ Assert-AreEqual " Static " $actualPip.PublicIpAllocationMethod
170
169
Assert-AreEqual $actualPip.Id $actualNic.IpConfigurations [0 ].PublicIpAddress.Id
171
170
172
171
$actualVnet = Get-AzVirtualNetwork - Name $vnetName - ResourceGroupName $rgName
@@ -230,7 +229,7 @@ Invoke-LiveTestScenario -Name "Create network load balancer" -Description "Test
230
229
$lbRuleName = New-LiveTestResourceName
231
230
$lbName = New-LiveTestResourceName
232
231
233
- $publicIp = New-AzPublicIpAddress - ResourceGroupName $rgName - Name $publicIpName - Location $location - AllocationMethod Dynamic
232
+ $publicIp = New-AzPublicIpAddress - ResourceGroupName $rgName - Name $publicIpName - Location $location - AllocationMethod Static
234
233
$feIpCfg = New-AzLoadBalancerFrontendIpConfig - Name $feIpCfgName - PublicIpAddress $publicIp
235
234
$bePoolCfg = New-AzLoadBalancerBackendAddressPoolConfig - Name $bePoolCfgName
236
235
$probe = New-AzLoadBalancerProbeConfig - Name $probeName - Protocol " Http" - Port 80 - RequestPath " healthcheck.aspx" - IntervalInSeconds 15 - ProbeCount 5 - ProbeThreshold 5
@@ -269,7 +268,7 @@ Invoke-LiveTestScenario -Name "Update network load balancer" -Description "Test
269
268
$lbName = New-LiveTestResourceName
270
269
$natRuleName = New-LiveTestResourceName
271
270
272
- $publicIp = New-AzPublicIpAddress - ResourceGroupName $rgName - Name $publicIpName - Location $location - AllocationMethod Dynamic
271
+ $publicIp = New-AzPublicIpAddress - ResourceGroupName $rgName - Name $publicIpName - Location $location - AllocationMethod Static
273
272
$feIpCfg = New-AzLoadBalancerFrontendIpConfig - Name $feIpCfgName - PublicIpAddress $publicIp
274
273
$bePoolCfg = New-AzLoadBalancerBackendAddressPoolConfig - Name $bePoolCfgName
275
274
$probe = New-AzLoadBalancerProbeConfig - Name $probeName1 - Protocol " Http" - Port 80 - RequestPath " healthcheck80.aspx" - IntervalInSeconds 15 - ProbeCount 5 - ProbeThreshold 5
@@ -315,7 +314,7 @@ Invoke-LiveTestScenario -Name "Remove network load balancer" -Description "Test
315
314
$lbRuleName = New-LiveTestResourceName
316
315
$lbName = New-LiveTestResourceName
317
316
318
- $publicIp = New-AzPublicIpAddress - ResourceGroupName $rgName - Name $publicIpName - Location $location - AllocationMethod Dynamic
317
+ $publicIp = New-AzPublicIpAddress - ResourceGroupName $rgName - Name $publicIpName - Location $location - AllocationMethod Static
319
318
$feIpCfg = New-AzLoadBalancerFrontendIpConfig - Name $feIpCfgName - PublicIpAddress $publicIp
320
319
$bePoolCfg = New-AzLoadBalancerBackendAddressPoolConfig - Name $bePoolCfgName
321
320
$probe = New-AzLoadBalancerProbeConfig - Name $probeName - Protocol " Http" - Port 80 - RequestPath " healthcheck.aspx" - IntervalInSeconds 15 - ProbeCount 5 - ProbeThreshold 5
0 commit comments