Skip to content

Commit

Permalink
updating tests
Browse files Browse the repository at this point in the history
  • Loading branch information
markcowl committed Sep 16, 2017
1 parent 6a2a9cc commit d9527e5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +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
New-AzVm -Name myVm1234 -Credential $pscredentials -WhatIf
$vm = New-AzVm -Name myVm1234 -Credential $pscredentials
$vm

#Cleanup
Remove-AzureRmResourceGroup -ResourceId $vm.ResourceGroupId
Remove-AzureRmResourceGroup -ResourceId $vm.ResourceGroupId -Force

0 comments on commit d9527e5

Please sign in to comment.