Skip to content

Commit e414f3b

Browse files
authored
Bugfix for updating profile map cache automatically for new profiles (#115)
* Bugfix for updating profile map cache automatically for new profiles * license url change
1 parent 5b02d60 commit e414f3b

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

src/Az.BootStrapper/Az.BootStrapper.nuspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
<authors>Microsoft Corporation</authors>
77
<owners>Microsoft Corporation</owners>
88
<requireLicenseAcceptance>true</requireLicenseAcceptance>
9-
<licenseUrl>https://aka.ms/azps-license</licenseUrl>
9+
<licenseUrl>https://aka.ms/azsps-license</licenseUrl>
1010
<projectUrl>https://github.com/Azure/azurestack-powershell</projectUrl>
1111
<description>Microsoft Azure PowerShell: Az.BootStrapper cmdlets</description>
12-
<releaseNotes></releaseNotes>
12+
<releaseNotes>BugFix - Updating Profile Map cache automatically for new profiles</releaseNotes>
1313
<copyright>Microsoft Corporation. All rights reserved.</copyright>
1414
<tags>Az.BootStrapper PSModule AzureStack</tags>
1515
</metadata>
1616
<files>
1717
<file src="Module\**\*" />
1818
</files>
19-
</package>
19+
</package>

src/Az.BootStrapper/Module/Az.BootStrapper.psd1

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 7/6/2017
7-
#
86

97
@{
108

119
# Script module or binary module file associated with this manifest.
1210
RootModule = 'Az.Bootstrapper.psm1'
1311

1412
# Version number of this module.
15-
ModuleVersion = '1.0.0'
13+
ModuleVersion = '1.0.1'
1614

1715
# Supported PSEditions
1816
# CompatiblePSEditions = @()
@@ -107,7 +105,7 @@ PrivateData = @{
107105
Tags = 'Azure','Az','AzureStack','PSModule','Profile','ResourceManager'
108106

109107
# A URL to the license for this module.
110-
LicenseUri = 'https://aka.ms/azps-license'
108+
LicenseUri = 'https://aka.ms/azsps-license'
111109

112110
# A URL to the main website for this project.
113111
ProjectUri = 'https://github.com/Azure/azurestack-powershell'
@@ -116,7 +114,7 @@ PrivateData = @{
116114
# IconUri = ''
117115

118116
# ReleaseNotes of this module
119-
ReleaseNotes = '* 0.1.0: Initial release Az.BootStrapper, Module to assist in installing the required Az modules for AzureStack Hub'
117+
ReleaseNotes = 'BugFix - Updating Profile Map cache automatically for new profiles'
120118

121119
# External dependent modules of this module
122120
# ExternalModuleDependencies = ''

src/Az.BootStrapper/Module/Az.Bootstrapper.psm1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,8 @@ function Add-ScopeParam
803803
function Add-ProfileParam
804804
{
805805
param([System.Management.Automation.RuntimeDefinedParameterDictionary]$params, [string]$set = "__AllParameterSets")
806-
$ProfileMap = (Get-AzProfileMap)
806+
# Update Profile Map cache from the blob endpoint
807+
$ProfileMap = (Get-AzProfileMap -Update)
807808
$AllProfiles = ($ProfileMap | Get-Member -MemberType NoteProperty).Name
808809
$profileAttribute = New-Object -Type System.Management.Automation.ParameterAttribute
809810
$profileAttribute.ParameterSetName = $set
@@ -1014,7 +1015,7 @@ function Use-AzProfile
10141015
PROCESS
10151016
{
10161017
$Force = $PSBoundParameters.Force
1017-
$ProfileMap = (Get-AzProfileMap -update)
1018+
$ProfileMap = Get-AzProfileMap
10181019
$Profile = $PSBoundParameters.Profile
10191020
$Scope = $PSBoundParameters.Scope
10201021
$Modules = $PSBoundParameters.Module
@@ -1111,7 +1112,7 @@ function Install-AzProfile
11111112
}
11121113

11131114
PROCESS {
1114-
$ProfileMap = (Get-AzProfileMap -update)
1115+
$ProfileMap = Get-AzProfileMap
11151116
$Profile = $PSBoundParameters.Profile
11161117
$Scope = $PSBoundParameters.Scope
11171118
$Modules = ($ProfileMap.$Profile | Get-Member -MemberType NoteProperty).Name

0 commit comments

Comments
 (0)