Skip to content

Commit

Permalink
AzPreview use latest Az.Accounts version
Browse files Browse the repository at this point in the history
  • Loading branch information
BethanyZhou committed May 26, 2021
1 parent 6d85b80 commit 327c062
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/AzPreview/AzPreview.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(@{ModuleName = 'Az.Accounts'; RequiredVersion = '2.3.0'; },
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.3.0'; },
@{ModuleName = 'Az.ADDomainServices'; RequiredVersion = '0.1.0'; },
@{ModuleName = 'Az.Advisor'; RequiredVersion = '1.1.1'; },
@{ModuleName = 'Az.Aks'; RequiredVersion = '2.1.0'; },
Expand Down
9 changes: 7 additions & 2 deletions tools/RunVersionController.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,13 @@ function Generate-AzPreview
$Psd1Object = Import-PowerShellDataFile $Psd1FilePath
$moduleName = "Az.${ModuleName}"
$moduleVersion = $Psd1Object.ModuleVersion.ToString()
$requiredModulesString += "@{ModuleName = '$moduleName'; RequiredVersion = '$moduleVersion'; },
"
if('Az.Accounts' -eq $moduleName)
{
$requiredModulesString += "@{ModuleName = '$moduleName'; ModuleVersion = '$moduleVersion'; }, `n "
}
else{
$requiredModulesString += "@{ModuleName = '$moduleName'; RequiredVersion = '$moduleVersion'; }, `n "
}
}
}
$requiredModulesString = $requiredModulesString.Trim()
Expand Down

0 comments on commit 327c062

Please sign in to comment.