Update Get-AzureService-Replication-Resilience.ps1

This commit is contained in:
ichiche 2023-04-03 11:10:33 +08:00
Родитель b84bf6dfc5
Коммит 57c5ac0d65
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -1,5 +1,5 @@
# Global Parameter
$TenantId = ""
#$TenantId = ""
$ExcelOutputFolder = "C:\Temp"
$ExcelFileName = "Replication-Assessment.xlsx" # Export Result to Excel file
@ -397,7 +397,7 @@ foreach ($Subscription in $Global:Subscriptions) {
Add-Record -SubscriptionName $Subscription.Name -SubscriptionId $Subscription.Id -ResourceGroup $SqlFlexibleServerRG -Location $SqlFlexibleServer.Location -InstanceName $SqlFlexibleServer.Name -InstanceType $InstanceType -CurrentRedundancyType $RedundancyConfig -Remark $InstanceTypeDetail
}
#Region Event Hub
# Event Hub
Write-Host ("`nEvent Hub") -ForegroundColor Blue
$EventHubs = Get-AzEventHubNamespace | Sort-Object Name
$InstanceType = "Event Hub"
@ -447,7 +447,7 @@ foreach ($Subscription in $Global:Subscriptions) {
}
Add-Record -SubscriptionName $Subscription.Name -SubscriptionId $Subscription.Id -ResourceGroup $EventHub.ResourceGroupName -Location $EventHub.Location -InstanceName $EventHub.Name -InstanceType $InstanceType -CurrentRedundancyType $RedundancyConfig -Remark $InstanceTypeDetail
}
#EndRegion Event Hub
# Event Hub
}
#Region Export