-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Complete Cross Tenant Peering with ARM #17407
Comments
Thank you for your feedback. This has been routed to the support team for assistance. |
This was raised after a support session with Microsoft, in which they were unable to provide a solution (only a workaround) and suggested that it does need to be tracked as a bug. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @armleads-azure. Issue DetailsDescriptionSimilar to issues reported in Azure CLI however different way to reproduce. Scenario The ARM Template:
Command being used to deploy:
Issue script & Debug outputNew-AzResourceGroupDeployment : 11:34:21 - The deployment 'VirtualNetworkDeployment' failed with error(s). Showing 1 out of 1 error(s).
Status Message: The client has permission to perform action 'Microsoft.Network/virtualNetworks/peer/action' on scope
'/subscriptions/<VnetASubID>/resourcegroups/<RgName>/providers/Microsoft.Network/virtualNetworks/<VnetName>/virtualNetworkPeerings/<PeeringName>', however the current tenant '<Source Tenant ID>' is not authorized to access linked subscription '<Destination Subscription ID>'. Environment dataName Value
---- -----
PSVersion 5.1.19041.1320
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1320
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1 Module versions4.2.0 Error outputNew-AzResourceGroupDeployment : 11:34:21 - The deployment 'VirtualNetworkDeployment' failed with error(s). Showing 1 out of 1 error(s).
Status Message: The client has permission to perform action 'Microsoft.Network/virtualNetworks/peer/action' on scope
'/subscriptions/<VnetASubID>/resourcegroups/<RgName>/providers/Microsoft.Network/virtualNetworks/<VnetName>/virtualNetworkPeerings/<PeeringName>', however the current tenant '<Source Tenant ID>' is not authorized to access linked subscription '<Destination Subscription ID>'.
|
@nazakathussain Thanks for sharing details. Could you please provide your support case number as well? I am redirecting this to services team to look into. Thanks |
2203030050002475 |
Is there any update on this issue? I am also Unable to Complete Cross Tenant Peering with ARM |
This also holds true for Bicep templates. The cause appears to be the requirement for separate authentication. Is there a method to address this without manual intervention in the portal? |
Any update on this issue would be appreciated. |
Apart from the template file and parameters, this cmdlet should ask for the ID of the extra tenants, then get extra tokens and put them in the header. The design will look like We are planning to support this soon. |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/deployments-owners. |
When will this be released? Any enterprise organisation with a multi tenant setup using ARM/Bicep will find this incredibly frustrating. Basically need to stop using templates for any cross tenant deployments and go back to powershell or CLI. |
Let me reopen this issue - fundamental changes were made to support cross-tenant token-acquiring. Now the engineering work left is to utilize it in deployment cmdlets - we are working with ARM team to get an ETA for that. |
Any movement on this issue? |
Description
Similar to issues reported in Azure CLI however different way to reproduce.
Scenario
Attempting to deploy an ARM Template as described in Article which will complete a peering between two Virtual Networks in different tenants which returns an error message. The same happens in CLI when using group deployment.
The ARM Template:
{ "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": {}, "variables": {}, "resources": [ { "apiVersion": "2017-10-01", "type": "Microsoft.Network/virtualNetworks/virtualNetworkPeerings", "name": "<PeeringName>", "location": "<VnetA RG>", "properties": { "allowVirtualNetworkAccess": true, "allowForwardedTraffic": true, "allowGatewayTransit": false, "useRemoteGateways": true, "remoteVirtualNetwork": { "id": "/subscriptions/<Destination Subscription>/resourceGroups/<VNet RG>/providers/Microsoft.Network/virtualNetworks/<Vnet>" } } } ], "outputs": {} }
Command being used to deploy:
New-AzResourceGroupDeployment -Name "VirtualNetworkDeployment" -ResourceGroupName "<VNetA RG>"
-TemplateFile .\virtualNetworkPeer.json -Verbose`Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: