Skip to content

Commit

Permalink
Add simple validation test
Browse files Browse the repository at this point in the history
  • Loading branch information
markcowl committed Sep 16, 2017
1 parent 26c1ffe commit 6a2a9cc
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

$clientSecret = ConvertTo-SecureString ([Guid]::NewGuid().ToString().Substring(1,10)) -AsPlainText -Force
$pscredentials = New-Object System.Management.Automation.PSCredential("vmadmin", $clientSecret)
New-AzVm -Name MyVM -Credential $pscredentials -WhatIf
$vm = New-AzVm -Name myVm1234 -Credential $pscredentials
$vm

#Cleanup
Remove-AzureRmResourceGroup -ResourceId $vm.ResourceGroupId

0 comments on commit 6a2a9cc

Please sign in to comment.