在 Virtual Hub 中停止 Azure firewall
PS /home/jacky> Set-AzContext -Subscription “Your Subscription Id”
PS /home/jacky> $firewall = Get-AzFirewall -Name “AzureFirewall_vhub-prod-jpe” -ResourceGroupName “rg-lab-candel”
PS /home/jacky> $firewall.Deallocate()
PS /home/jacky> $firewall | Set-AzFirewall
需要稍等一下會看到 FQDNs , IpAddresses 為 null.
Name : AzureFirewall_vhub-prod-jpe
ResourceGroupName : rg-lab-candel
Location : japaneast
ThreatIntelWhitelist : {
“FQDNs”: null,
“IpAddresses”: null
}
Portal 上也會自到 相同的狀態.
在 Virtual Hub 中啟動 Azure Firewall
Set-AzContext -Subscription “Your Subscription Id”
$virtualhub = get-azvirtualhub -ResourceGroupName “rg-lab-candel” -name vhub-prod-jpe
$firewall = Get-AzFirewall -Name “AzureFirewall_vhub-prod-jpe” -ResourceGroupName “rg-lab-candel”
$firewall.Allocate($virtualhub.Id)
$firewall | Set-AzFirewall