This commit is contained in:
Martin Merdes 2022-12-21 10:17:12 +01:00
Родитель 041b4e9e5e
Коммит 3243720eff
2 изменённых файлов: 16 добавлений и 3 удалений

Просмотреть файл

@ -1,6 +1,6 @@
<#
rgcopy.ps1: Copy Azure Resource Group
version: 0.9.40
version: 0.9.42
version date: December 2022
Author: Martin Merdes
Public Github: https://github.com/Azure/RGCOPY
@ -9486,7 +9486,7 @@ function new-templateTarget {
# start output resource changes
Write-logFile 'Resource Changes by RGCOPY' -ForegroundColor 'Green'
Write-logFile '-------- -----------------' -ForegroundColor 'Green'
write-logFileUpdates '*' '*' 'set location' $targetLocation '' ' (for all resources except sapMonitors)'
write-logFileUpdates '*' '*' 'set location' $targetLocation
write-logFileUpdates 'storageAccounts' '*' 'delete'
write-logFileUpdates 'snapshots' '*' 'delete'
write-logFileUpdates 'disks' '*' 'delete'
@ -9509,6 +9509,14 @@ function new-templateTarget {
update-paramSetDiskCaching
update-paramSetAcceleratedNetworking
# change LOCATION
$script:resourcesALL
| ForEach-Object -Process {
if ($_.location.length -ne 0) {
$_.location = $targetLocation
}
}
# remove identity
$script:resourcesALL
| ForEach-Object -Process {

Просмотреть файл

@ -90,7 +90,7 @@ feature| Improved quota check
documentation|Clarification about moving customer SAP landscapes to a different region using RGCOPY.
bug fix| RGCOPY exports an ARM template from the source RG and modifies it.<BR>**The structure of this exported ARM template has changed:**. It now contains `circular dependencies` between:<UL><LI>vnets and their subnet</LI><LI>network security groups and their rules</LI><LI>NAT Gateways and their Public IP Prefixes</LI></UL>Therefore, a workaround had to be implemented in RGCOPY. All older versions of RGCOPY do not work anymore.
#### RGCOPY 0.9.40 December 2023
#### RGCOPY 0.9.40 December 2022
type|change
:---|:---
warning|**Always install the newest version of PowerShell *and* az-cmdlets!** <BR>When installing the newest PowerShell (7.3.0) with older az-cmdlets then RGCOPY might terminate with the following error:<BR>`GenericArguments[0], 'Microsoft.Azure.Management.Compute.Models.VirtualMachine', on 'T MaxInteger[T](System.Collections.Generic.IEnumerable1[T])' violates the constraint of type 'T'.`<BR>If you install the newest az version 9.1.1 then RGCOPY works fine even with the newest PowerShell version 7.3.0
@ -111,6 +111,11 @@ Cmdlet invocation changes :
all the zones in the region. For example, Zone = [1, 2, 3].
```
#### RGCOPY 0.9.42 December 2022
type|change
:---|:---
bug fix| regression in RGCOPY 0.9.40 resulted in deployment errors when copying to a different region