Skip to content

Commit 63bf4b0

Browse files
-Warning SilentlyContinue
1 parent b8950d4 commit 63bf4b0

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

experiments/Compute.Experiments/AzureRM.Compute.Experiments.psm1

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ class ResourceGroup: AzureObject {
123123
}
124124

125125
[object] Create([string] $name, [string] $location, [string] $resourceGroupName) {
126-
return New-AzureRmResourceGroup -Name $name -Location $location;
126+
return New-AzureRmResourceGroup `
127+
-Name $name `
128+
-Location $location `
129+
-WarningAction SilentlyContinue;
127130
}
128131
}
129132

@@ -149,7 +152,8 @@ class VirtualNetwork: Resource1 {
149152
-Location $location `
150153
-Name $name `
151154
-AddressPrefix "192.168.0.0/16" `
152-
-Subnet $subnetConfig
155+
-Subnet $subnetConfig `
156+
-WarningAction SilentlyContinue
153157
}
154158
}
155159

@@ -166,7 +170,8 @@ class PublicIpAddress: Resource1 {
166170
-ResourceGroupName $resourceGroupName `
167171
-Location $location `
168172
-AllocationMethod Static `
169-
-Name $name
173+
-Name $name `
174+
-WarningAction SilentlyContinue
170175
}
171176
}
172177

@@ -194,7 +199,8 @@ class SecurityGroup: Resource1 {
194199
-ResourceGroupName $resourceGroupName `
195200
-Location $location `
196201
-Name $name `
197-
-SecurityRules $securityRuleConfig
202+
-SecurityRules $securityRuleConfig `
203+
-WarningAction SilentlyContinue
198204
}
199205
}
200206

@@ -228,7 +234,8 @@ class NetworkInterface: AzureObject {
228234
-Name $name `
229235
-PublicIpAddressId $xpublicIpAddress.Id `
230236
-SubnetId $xvirtualNetwork.Subnets[0].Id `
231-
-NetworkSecurityGroupId $xsecurityGroup.Id
237+
-NetworkSecurityGroupId $xsecurityGroup.Id `
238+
-WarningAction SilentlyContinue
232239
}
233240
}
234241

@@ -300,7 +307,8 @@ class VirtualMachine: AzureObject {
300307
return New-AzureRmVm `
301308
-ResourceGroupName $resourceGroupName `
302309
-Location $location `
303-
-VM $vmConfig
310+
-VM $vmConfig `
311+
-WarningAction SilentlyContinue
304312
}
305313
}
306314

0 commit comments

Comments
 (0)