Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed Sep 14, 2017
1 parent 90ab0fa commit 82731a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $vmCredential = New-Object System.Management.Automation.PSCredential ($vmCompute

# $vm = New-AzVm
# $vm = New-AzVm -Credential $vmCredential
$vm = New-AzVm -Credential $vmCredential
$vm = New-AzVm -Name MyVM -Credential $vmCredential

$vm

Expand Down
10 changes: 5 additions & 5 deletions experiments/Compute.Experiments/AzureRM.Compute.Experiments.psm1
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
function New-AzVm {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)][string] $Name = "VM",
[Parameter()][PSCredential] $Credential,
[Parameter()][string] $Name = "VM",
[Parameter()][string] $ImageName = "Win2012R2Datacenter",
[Parameter()][string] $ResourceGroupName,
[Parameter()][string] $Location = "eastus",
[Parameter()][string] $Location,
[Parameter()][string] $VirtualNetworkName,
[Parameter()][string] $PublicIpAddressName,
[Parameter()][string] $SecurityGroupName,
[Parameter()][string] $NetworkInterfaceName
# [Parameter()][string] $NetworkInterfaceName
)

PROCESS {
Expand All @@ -18,7 +18,7 @@ function New-AzVm {
$piai = [PublicIpAddress]::new($PublicIpAddressName);
$sgi = [SecurityGroup]::new($SecurityGroupName);
$nii = [NetworkInterface]::new(
$NetworkInterfaceName,
$null, # $NetworkInterfaceName,
$vni,
$piai,
$sgi);
Expand All @@ -39,7 +39,7 @@ function New-AzVm {

New-PsObject @{
ResourceId = $resourceGroup.ResourceId;
Response = $vmResponse
Response = $vmResponse;
}
}
}
Expand Down

0 comments on commit 82731a3

Please sign in to comment.