Skip to content

Commit 02692a7

Browse files
publishing.
1 parent 1d9486d commit 02692a7

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

experiments/Compute.Experiments/AzureRM.Compute.Experiments.psd1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = ".\AzureRM.Compute.Experiments.psm1"
1313

1414
# Version number of this module.
15-
ModuleVersion = '1.0'
15+
ModuleVersion = '1.0.1'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()
@@ -30,7 +30,7 @@ CompanyName = 'Microsoft'
3030
Copyright = 'Microsoft'
3131

3232
# Description of the functionality provided by this module
33-
# Description = ''
33+
Description = 'Azure Compute'
3434

3535
# Minimum version of the Windows PowerShell engine required by this module
3636
PowerShellVersion = '5.0'
@@ -52,9 +52,9 @@ PowerShellVersion = '5.0'
5252

5353
# Modules that must be imported into the global environment prior to importing this module
5454
RequiredModules = @(
55-
@{ ModuleName = 'AzureRM.Resources'; ModuleVersion = '4.3.1'; },
56-
@{ ModuleName = 'AzureRM.Network'; ModuleVersion = '4.3.1'; },
57-
@{ ModuleName = 'AzureRM.Compute'; ModuleVersion = '3.3.1'; }
55+
@{ ModuleName = "AzureRM.Resources"; ModuleVersion = "4.3.1"; },
56+
@{ ModuleName = "AzureRM.Network"; ModuleVersion = "4.3.1"; },
57+
@{ ModuleName = "AzureRM.Compute"; ModuleVersion = "3.3.1"; }
5858
)
5959

6060
# Assemblies that must be loaded prior to importing this module

experiments/Compute.Experiments/AzureRM.Compute.Experiments.psm1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,8 @@ function New-AzVm {
2323
throw "Unknown image: " + $ImageName
2424
}
2525

26-
Write-Host $vmImage
27-
2826
# Location
29-
Write-Host "Load locations..."
3027
# $Location = (Get-AzureRmLocation | Select-Object -First 1 -Wait).Location
31-
Write-Host "done"
3228

3329
# Resource Group
3430
$resource = New-AzureRmResourceGroup -Name $ResourceGroupName -Location $Location
@@ -110,7 +106,6 @@ function New-AzVm {
110106
}
111107

112108
$vmImageImage = $vmImage.Image
113-
Write-Host $vmImageImage
114109
$vmConfig = $vmConfig `
115110
| Set-AzureRmVMSourceImage `
116111
-PublisherName $vmImageImage.publisher `
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
$out = "..\build\AzureRM.Compute.Experiments\"
2+
$repository = "sergey"
3+
$dep = @("AzureRM.Resources", "AzureRM.Network", "AzureRM.Compute")
4+
mkdir $out
5+
copy .\AzureRM.Compute.Experiments.psd1 $out
6+
copy .\AzureRM.Compute.Experiments.psm1 $out
7+
foreach ($d in $dep) {
8+
Install-Module $d -Repository $repository
9+
}
10+
Publish-Module -Path $out -Repository $repository -NuGetApiKey somekey
11+
foreach ($d in $dep) {
12+
Uninstall-Module $d
13+
}

0 commit comments

Comments
 (0)