Skip to content

Commit

Permalink
-Warning SilentlyContinue
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed Sep 15, 2017
1 parent b8950d4 commit 63bf4b0
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions experiments/Compute.Experiments/AzureRM.Compute.Experiments.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ class ResourceGroup: AzureObject {
}

[object] Create([string] $name, [string] $location, [string] $resourceGroupName) {
return New-AzureRmResourceGroup -Name $name -Location $location;
return New-AzureRmResourceGroup `
-Name $name `
-Location $location `
-WarningAction SilentlyContinue;
}
}

Expand All @@ -149,7 +152,8 @@ class VirtualNetwork: Resource1 {
-Location $location `
-Name $name `
-AddressPrefix "192.168.0.0/16" `
-Subnet $subnetConfig
-Subnet $subnetConfig `
-WarningAction SilentlyContinue
}
}

Expand All @@ -166,7 +170,8 @@ class PublicIpAddress: Resource1 {
-ResourceGroupName $resourceGroupName `
-Location $location `
-AllocationMethod Static `
-Name $name
-Name $name `
-WarningAction SilentlyContinue
}
}

Expand Down Expand Up @@ -194,7 +199,8 @@ class SecurityGroup: Resource1 {
-ResourceGroupName $resourceGroupName `
-Location $location `
-Name $name `
-SecurityRules $securityRuleConfig
-SecurityRules $securityRuleConfig `
-WarningAction SilentlyContinue
}
}

Expand Down Expand Up @@ -228,7 +234,8 @@ class NetworkInterface: AzureObject {
-Name $name `
-PublicIpAddressId $xpublicIpAddress.Id `
-SubnetId $xvirtualNetwork.Subnets[0].Id `
-NetworkSecurityGroupId $xsecurityGroup.Id
-NetworkSecurityGroupId $xsecurityGroup.Id `
-WarningAction SilentlyContinue
}
}

Expand Down Expand Up @@ -300,7 +307,8 @@ class VirtualMachine: AzureObject {
return New-AzureRmVm `
-ResourceGroupName $resourceGroupName `
-Location $location `
-VM $vmConfig
-VM $vmConfig `
-WarningAction SilentlyContinue
}
}

Expand Down

0 comments on commit 63bf4b0

Please sign in to comment.