File tree Expand file tree Collapse file tree 2 files changed +174
-104
lines changed
experiments/Compute.Experiments Expand file tree Collapse file tree 2 files changed +174
-104
lines changed Original file line number Diff line number Diff line change 1
- # $build = "..\build\"
2
- # $out = $build + "AzureRM.Compute.Experiments\"
3
- # Copy-Item .\AzureRM.Compute.Experiments.psd1 $out
4
- # Copy-Item .\AzureRM.Compute.Experiments.psm1 $out
1
+ $build = Resolve-Path " ..\build\"
2
+ $out = Join-Path $build " AzureRM.Compute.Experiments\"
3
+ Copy-Item .\AzureRM.Compute.Experiments.psd1 $out
4
+ Copy-Item .\AzureRM.Compute.Experiments.psm1 $out
5
5
6
- $env: PSModulePath = $env: PSModulePath + " ;" + $build
6
+ $env: PSModulePath = $env: PSModulePath + " ;" + $build.ToString ()
7
7
8
8
# Login
9
9
$credentials = Get-Content - Path " C:\Users\sergey\Desktop\php-test.json" | ConvertFrom-Json
@@ -25,19 +25,16 @@ New-AzVm -Name MyVM -Credential $vmCredential -WhatIf
25
25
26
26
# $vm = New-AzVm
27
27
# $vm = New-AzVm -Credential $vmCredential
28
- # $vm = New-AzVm -Name MyVMA -Credential $vmCredential
28
+ $vm = New-AzVm - Name MyVMA1 - Credential $vmCredential - ResourceGroupName Crocodile
29
29
# $vm = New-AzVm -Name MyVMA
30
30
31
31
$vm
32
32
33
- Write-Host " <async>"
34
-
35
- $job = New-AzVm - Name MyVMA2 - Credential $vmCredential - AsJob
36
- $vm = Receive-Job $job
37
-
38
- $vm
39
-
40
- Write-Host " </async>"
33
+ # Write-Host "<async>"
34
+ # $job = New-AzVm -Name MyVMA3 -Credential $vmCredential -AsJob
35
+ # $vm = Receive-Job $job -Wait
36
+ # $vm
37
+ # Write-Host "</async>"
41
38
42
39
# clean-up
43
40
Remove-AzureRmResourceGroup - ResourceId $vm.ResourceGroupId
You can’t perform that action at this time.
0 commit comments