From 6b35c6540ba8df7d273c16967cf2b5850701f912 Mon Sep 17 00:00:00 2001 From: bganapa Date: Fri, 18 Jun 2021 14:59:05 -0700 Subject: [PATCH 1/2] Bugfix for updating profile map cache automatically for new profiles --- src/Az.BootStrapper/Az.BootStrapper.nuspec | 2 +- src/Az.BootStrapper/Module/Az.BootStrapper.psd1 | 8 +++----- src/Az.BootStrapper/Module/Az.Bootstrapper.psm1 | 7 ++++--- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/Az.BootStrapper/Az.BootStrapper.nuspec b/src/Az.BootStrapper/Az.BootStrapper.nuspec index 721540ab..3f45b7b7 100644 --- a/src/Az.BootStrapper/Az.BootStrapper.nuspec +++ b/src/Az.BootStrapper/Az.BootStrapper.nuspec @@ -9,7 +9,7 @@ https://aka.ms/azps-license https://github.com/Azure/azurestack-powershell Microsoft Azure PowerShell: Az.BootStrapper cmdlets - + BugFix - Updating Profile Map cache automatically for new profiles Microsoft Corporation. All rights reserved. Az.BootStrapper PSModule AzureStack diff --git a/src/Az.BootStrapper/Module/Az.BootStrapper.psd1 b/src/Az.BootStrapper/Module/Az.BootStrapper.psd1 index 8f841256..9d75b34b 100644 --- a/src/Az.BootStrapper/Module/Az.BootStrapper.psd1 +++ b/src/Az.BootStrapper/Module/Az.BootStrapper.psd1 @@ -3,8 +3,6 @@ # # Generated by: Microsoft Corporation # -# Generated on: 7/6/2017 -# @{ @@ -12,7 +10,7 @@ RootModule = 'Az.Bootstrapper.psm1' # Version number of this module. -ModuleVersion = '1.0.0' +ModuleVersion = '1.0.1' # Supported PSEditions # CompatiblePSEditions = @() @@ -107,7 +105,7 @@ PrivateData = @{ Tags = 'Azure','Az','AzureStack','PSModule','Profile','ResourceManager' # A URL to the license for this module. - LicenseUri = 'https://aka.ms/azps-license' + LicenseUri = 'https://aka.ms/azsps-license' # A URL to the main website for this project. ProjectUri = 'https://github.com/Azure/azurestack-powershell' @@ -116,7 +114,7 @@ PrivateData = @{ # IconUri = '' # ReleaseNotes of this module - ReleaseNotes = '* 0.1.0: Initial release Az.BootStrapper, Module to assist in installing the required Az modules for AzureStack Hub' + ReleaseNotes = 'BugFix - Updating Profile Map cache automatically for new profiles' # External dependent modules of this module # ExternalModuleDependencies = '' diff --git a/src/Az.BootStrapper/Module/Az.Bootstrapper.psm1 b/src/Az.BootStrapper/Module/Az.Bootstrapper.psm1 index a99d8f29..b9cc4aa0 100644 --- a/src/Az.BootStrapper/Module/Az.Bootstrapper.psm1 +++ b/src/Az.BootStrapper/Module/Az.Bootstrapper.psm1 @@ -803,7 +803,8 @@ function Add-ScopeParam function Add-ProfileParam { param([System.Management.Automation.RuntimeDefinedParameterDictionary]$params, [string]$set = "__AllParameterSets") - $ProfileMap = (Get-AzProfileMap) + # Update Profile Map cache from the blob endpoint + $ProfileMap = (Get-AzProfileMap -Update) $AllProfiles = ($ProfileMap | Get-Member -MemberType NoteProperty).Name $profileAttribute = New-Object -Type System.Management.Automation.ParameterAttribute $profileAttribute.ParameterSetName = $set @@ -1014,7 +1015,7 @@ function Use-AzProfile PROCESS { $Force = $PSBoundParameters.Force - $ProfileMap = (Get-AzProfileMap -update) + $ProfileMap = Get-AzProfileMap $Profile = $PSBoundParameters.Profile $Scope = $PSBoundParameters.Scope $Modules = $PSBoundParameters.Module @@ -1111,7 +1112,7 @@ function Install-AzProfile } PROCESS { - $ProfileMap = (Get-AzProfileMap -update) + $ProfileMap = Get-AzProfileMap $Profile = $PSBoundParameters.Profile $Scope = $PSBoundParameters.Scope $Modules = ($ProfileMap.$Profile | Get-Member -MemberType NoteProperty).Name From 8c6ceda350452df6af9ca2ae665f9522bd2f094a Mon Sep 17 00:00:00 2001 From: bganapa Date: Fri, 18 Jun 2021 15:02:05 -0700 Subject: [PATCH 2/2] license url change --- src/Az.BootStrapper/Az.BootStrapper.nuspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Az.BootStrapper/Az.BootStrapper.nuspec b/src/Az.BootStrapper/Az.BootStrapper.nuspec index 3f45b7b7..70d4c13d 100644 --- a/src/Az.BootStrapper/Az.BootStrapper.nuspec +++ b/src/Az.BootStrapper/Az.BootStrapper.nuspec @@ -6,7 +6,7 @@ Microsoft Corporation Microsoft Corporation true - https://aka.ms/azps-license + https://aka.ms/azsps-license https://github.com/Azure/azurestack-powershell Microsoft Azure PowerShell: Az.BootStrapper cmdlets BugFix - Updating Profile Map cache automatically for new profiles @@ -16,4 +16,4 @@ - \ No newline at end of file +