Skip to content

Commit

Permalink
publishing.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergey-shandar committed Sep 6, 2017
1 parent 1d9486d commit 02692a7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
10 changes: 5 additions & 5 deletions experiments/Compute.Experiments/AzureRM.Compute.Experiments.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = ".\AzureRM.Compute.Experiments.psm1"

# Version number of this module.
ModuleVersion = '1.0'
ModuleVersion = '1.0.1'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand All @@ -30,7 +30,7 @@ CompanyName = 'Microsoft'
Copyright = 'Microsoft'

# Description of the functionality provided by this module
# Description = ''
Description = 'Azure Compute'

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

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(
@{ ModuleName = 'AzureRM.Resources'; ModuleVersion = '4.3.1'; },
@{ ModuleName = 'AzureRM.Network'; ModuleVersion = '4.3.1'; },
@{ ModuleName = 'AzureRM.Compute'; ModuleVersion = '3.3.1'; }
@{ ModuleName = "AzureRM.Resources"; ModuleVersion = "4.3.1"; },
@{ ModuleName = "AzureRM.Network"; ModuleVersion = "4.3.1"; },
@{ ModuleName = "AzureRM.Compute"; ModuleVersion = "3.3.1"; }
)

# Assemblies that must be loaded prior to importing this module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,8 @@ function New-AzVm {
throw "Unknown image: " + $ImageName
}

Write-Host $vmImage

# Location
Write-Host "Load locations..."
# $Location = (Get-AzureRmLocation | Select-Object -First 1 -Wait).Location
Write-Host "done"

# Resource Group
$resource = New-AzureRmResourceGroup -Name $ResourceGroupName -Location $Location
Expand Down Expand Up @@ -110,7 +106,6 @@ function New-AzVm {
}

$vmImageImage = $vmImage.Image
Write-Host $vmImageImage
$vmConfig = $vmConfig `
| Set-AzureRmVMSourceImage `
-PublisherName $vmImageImage.publisher `
Expand Down
13 changes: 13 additions & 0 deletions experiments/Compute.Experiments/publish-dev.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$out = "..\build\AzureRM.Compute.Experiments\"
$repository = "sergey"
$dep = @("AzureRM.Resources", "AzureRM.Network", "AzureRM.Compute")
mkdir $out
copy .\AzureRM.Compute.Experiments.psd1 $out
copy .\AzureRM.Compute.Experiments.psm1 $out
foreach ($d in $dep) {
Install-Module $d -Repository $repository
}
Publish-Module -Path $out -Repository $repository -NuGetApiKey somekey
foreach ($d in $dep) {
Uninstall-Module $d
}

0 comments on commit 02692a7

Please sign in to comment.