diff --git a/src/Az.BootStrapper/Az.BootStrapper.nuspec b/src/Az.BootStrapper/Az.BootStrapper.nuspec
index 721540ab..70d4c13d 100644
--- a/src/Az.BootStrapper/Az.BootStrapper.nuspec
+++ b/src/Az.BootStrapper/Az.BootStrapper.nuspec
@@ -6,14 +6,14 @@
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
Microsoft Corporation. All rights reserved.
Az.BootStrapper PSModule AzureStack
-
\ No newline at end of file
+
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