Skip to content

Commit

Permalink
update module dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOnlyWei committed Mar 30, 2021
1 parent f816659 commit b7917f4
Show file tree
Hide file tree
Showing 24 changed files with 46 additions and 38 deletions.
4 changes: 2 additions & 2 deletions src/Azs.AzureBridge.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ directive:
# Add Az.Accounts/Az.Resources as dependencies
- from: Azs.Azurebridge.Admin.nuspec
where: $
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="[2.1.2]" />\n <dependency id="Az.Resources" version="[1.10.0]" />');
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="2.2.4" />\n <dependency id="Az.Resources" version="[1.10.0]" />');

# PSD1 changes for RequiredModules
- from: source-file-csharp
where: $
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Azurebridge.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Azurebridge.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.1.2\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Azurebridge.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Azurebridge.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.2.4\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');

# PSD1 changes for ReleaseNotes
- from: source-file-csharp
Expand Down
4 changes: 2 additions & 2 deletions src/Azs.Backup.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,12 @@ directive:
# Add Az.Accounts/Az.Resources as dependencies
- from: Azs.Backup.Admin.nuspec
where: $
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="[2.1.2]" />\n <dependency id="Az.Resources" version="[1.10.0]" />');
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="2.2.4" />\n <dependency id="Az.Resources" version="[1.10.0]" />');

# PSD1 Changes for RequiredModules
- from: source-file-csharp
where: $
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.AzureBridge.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.AzureBridge.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.1.2\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.AzureBridge.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.AzureBridge.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.2.4\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');

# PSD1 Changes for ReleaseNotes
- from: source-file-csharp
Expand Down
4 changes: 2 additions & 2 deletions src/Azs.Commerce.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ directive:
# Add Az.Accounts/Az.Resources as dependencies
- from: Azs.Commerce.Admin.nuspec
where: $
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="[2.1.2]" />\n <dependency id="Az.Resources" version="[1.10.0]" />');
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="2.2.4" />\n <dependency id="Az.Resources" version="[1.10.0]" />');

# PSD1 Changes for RequiredModules
- from: source-file-csharp
where: $
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Commerce.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Commerce.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.1.2\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Commerce.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Commerce.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.2.4\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');

# PSD1 Changes for ReleaseNotes
- from: source-file-csharp
Expand Down
4 changes: 2 additions & 2 deletions src/Azs.Compute.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,12 @@ directive:
# Add Az.Accounts/Az.Resources as dependencies
- from: Azs.Compute.Admin.nuspec
where: $
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="[2.1.2]" />\n <dependency id="Az.Resources" version="[1.10.0]" />');
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="2.2.4" />\n <dependency id="Az.Resources" version="[1.10.0]" />');

# PSD1 Changes for RequiredModules
- from: source-file-csharp
where: $
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Compute.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Compute.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.1.2\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Compute.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Compute.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.2.4\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');

# PSD1 Changes for ReleaseNotes
- from: source-file-csharp
Expand Down
3 changes: 3 additions & 0 deletions src/Azs.Compute.Admin/test/Common.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$global:SkippedTests = @(
"TestDeleteNonExistingQuota"
)
2 changes: 1 addition & 1 deletion src/Azs.Compute.Admin/test/Get-AzsComputeQuota.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ while (-not $mockingPath) {
. ($mockingPath | Select-Object -First 1).FullName

Describe "Quota" -Tags @('Quota', 'Azs.Compute.Admin') {

. $PSScriptRoot\Common.ps1
BeforeEach {

function ValidateComputeQuota {
Expand Down
2 changes: 1 addition & 1 deletion src/Azs.Deployment.Admin/Azs.Deployment.Admin.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<copyright>Microsoft Corporation. All rights reserved.</copyright>
<tags>Azs.Deployment.Admin PSModule AzureStack</tags>
<dependencies>
<dependency id="Az.Accounts" version="[2.1.2]" />
<dependency id="Az.Accounts" version="2.2.4" />
<dependency id="Az.Resources" version="[1.10.0]" />
</dependencies>
</metadata>
Expand Down
2 changes: 1 addition & 1 deletion src/Azs.Deployment.Admin/Module/Azs.Deployment.Admin.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CompatiblePSEditions = 'Core', 'Desktop'
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.1.2'; }, @{ModuleName = 'Az.Resources'; RequiredVersion = '1.10.0'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.2.4'; }, @{ModuleName = 'Az.Resources'; RequiredVersion = '1.10.0'; })

# Assemblies that must be loaded prior to importing this module
# RequiredAssemblies = @()
Expand Down
4 changes: 2 additions & 2 deletions src/Azs.Fabric.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -663,12 +663,12 @@ directive:
# Add Az.Accounts/Az.Resources as dependencies
- from: Azs.Fabric.Admin.nuspec
where: $
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="[2.1.2]" />\n <dependency id="Az.Resources" version="[1.10.0]" />');
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="2.2.4" />\n <dependency id="Az.Resources" version="[1.10.0]" />');

# PSD1 Changes for RequiredModules
- from: source-file-csharp
where: $
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Fabric.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Fabric.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.1.2\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Fabric.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Fabric.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.2.4\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');

# PSD1 Changes for ReleaseNotes
- from: source-file-csharp
Expand Down
5 changes: 4 additions & 1 deletion src/Azs.Fabric.Admin/test/Common.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
$global:SkippedTests = @(
"TestGetDriveByInputObject",
"TestSetAzsScaleUnit"
"TestSetAzsScaleUnit",
"TestGetInvalidVolume",
"TestGetInvalidStorageSubSystem",
"TestGetInvalidDrive"
)

if ($global:TestMode -eq "Live") {
Expand Down
4 changes: 2 additions & 2 deletions src/Azs.Fabric.Admin/test/Get-AzsDrive.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ Describe 'Get-AzsDrive' {
}
}

It "TestGetInvaildDrive" -Skip:$('TestGetInvaildDrive' -in $global:SkippedTests) {
$global:TestName = 'TestGetInvaildDrive'
It "TestGetInvalidDrive" -Skip:$('TestGetInvalidDrive' -in $global:SkippedTests) {
$global:TestName = 'TestGetInvalidDrive'

$scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $global:Location
foreach ($scaleUnit in $scaleUnits) {
Expand Down
4 changes: 2 additions & 2 deletions src/Azs.Fabric.Admin/test/Get-AzsStorageSubSystem.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ Describe 'Get-AzsStorageSubSystem' {
}
}

It "TestGetInvaildStorageSubSystem" -Skip:$('TestGetInvaildStorageSubSystem' -in $global:SkippedTests) {
$global:TestName = 'TestGetInvaildStorageSubSystem'
It "TestGetInvalidStorageSubSystem" -Skip:$('TestGetInvalidStorageSubSystem' -in $global:SkippedTests) {
$global:TestName = 'TestGetInvalidStorageSubSystem'

$scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $global:Location
foreach ($scaleUnit in $scaleUnits) {
Expand Down
4 changes: 2 additions & 2 deletions src/Azs.Fabric.Admin/test/Get-AzsVolume.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ Describe 'Get-AzsVolume' {
}
}

It "TestGetInvaildVolume" -Skip:$('TestGetInvaildVolume' -in $global:SkippedTests) {
$global:TestName = 'TestGetInvaildVolume'
It "TestGetInvalidVolume" -Skip:$('TestGetInvalidVolume' -in $global:SkippedTests) {
$global:TestName = 'TestGetInvalidVolume'

$scaleUnits = Get-AzsScaleUnit -ResourceGroupName $global:ResourceGroupName -Location $global:Location
foreach ($scaleUnit in $scaleUnits) {
Expand Down
4 changes: 2 additions & 2 deletions src/Azs.Gallery.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ directive:
# Add Az.Accounts/Az.Resources as dependencies
- from: Azs.Gallery.Admin.nuspec
where: $
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="[2.1.2]" />\n <dependency id="Az.Resources" version="[1.10.0]" />');
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="2.2.4" />\n <dependency id="Az.Resources" version="[1.10.0]" />');

# PSD1 changes for RequiredModules
- from: source-file-csharp
where: $
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Gallery.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Gallery.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.1.2\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Gallery.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Gallery.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.2.4\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');

# PSD1 changes for ReleaseNotes
- from: source-file-csharp
Expand Down
4 changes: 2 additions & 2 deletions src/Azs.InfrastructureInsights.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ directive:
# Add Az.Accounts/Az.Resources as dependencies
- from: Azs.Infrastructureinsights.Admin.nuspec
where: $
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="[2.1.2]" />\n <dependency id="Az.Resources" version="[1.10.0]" />');
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="2.2.4" />\n <dependency id="Az.Resources" version="[1.10.0]" />');

# PSD1 changes for RequiredModules
- from: source-file-csharp
where: $
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Infrastructureinsights.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Infrastructureinsights.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.1.2\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Infrastructureinsights.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Infrastructureinsights.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.2.4\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');

# PSD1 changes for ReleaseNotes
- from: source-file-csharp
Expand Down
4 changes: 3 additions & 1 deletion src/Azs.InfrastructureInsights.Admin/test/common.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
$global:SkippedTests = @()
$global:SkippedTests = @(
"TestRepairAlert"
)

function ValidateMetrics{
param(
Expand Down
4 changes: 2 additions & 2 deletions src/Azs.KeyVault.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ directive:
# Add Az.Accounts/Az.Resources as dependencies
- from: Azs.Keyvault.Admin.nuspec
where: $
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="[2.1.2]" />\n <dependency id="Az.Resources" version="[1.10.0]" />');
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="2.2.4" />\n <dependency id="Az.Resources" version="[1.10.0]" />');

# PSD1 changes for RequiredModules
- from: source-file-csharp
where: $
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Keyvault.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Keyvault.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.1.2\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Keyvault.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Keyvault.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.2.4\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');

# PSD1 changes for ReleaseNotes
- from: source-file-csharp
Expand Down
4 changes: 2 additions & 2 deletions src/Azs.Network.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,12 @@ directive:
# Add Az.Accounts/Az.Resources as dependencies
- from: Azs.Network.Admin.nuspec
where: $
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="[2.1.2]" />\n <dependency id="Az.Resources" version="[1.10.0]" />');
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="2.2.4" />\n <dependency id="Az.Resources" version="[1.10.0]" />');

# PSD1 changes for RequiredModules
- from: source-file-csharp
where: $
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Network.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Network.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.1.2\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Network.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Network.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.2.4\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');

# PSD1 changes for ReleaseNotes
- from: source-file-csharp
Expand Down
4 changes: 2 additions & 2 deletions src/Azs.Storage.Admin/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,12 @@ directive:
# Add Az.Accounts/Az.Resources as dependencies
- from: Azs.Storage.Admin.nuspec
where: $
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="[2.1.2]" />\n <dependency id="Az.Resources" version="[1.10.0]" />');
transform: $ = $.replace('<dependency id=\"Az.Accounts\" version=\"1.6.0\" />', '<dependency id="Az.Accounts" version="2.2.4" />\n <dependency id="Az.Resources" version="[1.10.0]" />');

# PSD1 changes for RequiredModules
- from: source-file-csharp
where: $
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Storage.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Storage.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.1.2\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');
transform: $ = $.replace('sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Storage.Admin.private.dll\"\}\'\"\);', 'sb.AppendLine\(\$@\"\{Indent\}RequiredAssemblies = \'\{\"./bin/Azs.Storage.Admin.private.dll\"\}\'\"\);\n sb.AppendLine\(\$@\"\{Indent\}RequiredModules = @\(@\{\{ModuleName = \'Az.Accounts\'; ModuleVersion = \'2.2.4\'; \}\}, @\{\{ModuleName = \'Az.Resources\'; RequiredVersion = \'1.10.0\'; \}\}\)\"\);');

# PSD1 changes for ReleaseNotes
- from: source-file-csharp
Expand Down
Loading

0 comments on commit b7917f4

Please sign in to comment.