Skip to content

Commit

Permalink
parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed Sep 5, 2017
1 parent d63a3e9 commit 539bbe1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ function New-AzVm {
[CmdletBinding()]
param (
[PSCredential] $credential,
[string] $imageName = "Win2012R2Datacenter",
[string] $name = "vmTest"
)

Expand All @@ -11,7 +12,7 @@ function New-AzVm {
}

# Find VM Image
$vmImageName = "openSUSE-Leap" # "Win2012R2Datacenter"
$vmImageName = $imageName
$vmImage = $images | Where-Object { $_.Name -eq $vmImageName } | Select-Object -First 1

Write-Host $vmImage
Expand Down

0 comments on commit 539bbe1

Please sign in to comment.