This article provides a complete, step-by-step guide to creating and applying a Power Platform Enterprise Policy (Network Injection) using two Azure regions in the UK geography: UK South and UK West.
The Power Platform environment is a Managed Environment.
You have Azure Network Contributor (or higher) permissions.
You are a Power Platform Administrator.
Your environment is in the UK geography (paired Azure regions: UK South & UK West).
Connect-AzAccount
Select-AzSubscription -SubscriptionId $SubscriptionId
$vnetUks = Get-AzVirtualNetwork -Name $VnetNameUKS -ResourceGroupName $ResourceGroup
$vnetUkw = Get-AzVirtualNetwork -Name $VnetNameUKW -ResourceGroupName $ResourceGroup
$vnetIdUks = $vnetUks.Id
$vnetIdUkw = $vnetUkw.Id
$PolicyName = "pp-ep-networkinjection-uk"
$PolicyLocation = "unitedkingdom"
New-SubnetInjectionEnterprisePolicy `
-SubscriptionId $SubscriptionId `
-ResourceGroupName $ResourceGroup `
-PolicyName $PolicyName `
-PolicyLocation $PolicyLocation `
-VirtualNetworkId $vnetIdUks `
-SubnetName $SubnetUKS `
-VirtualNetworkId2 $vnetIdUkw `
-SubnetName2 $SubnetUKW