Replies: 5 comments 5 replies
-
|
Can you provide the complete error? Which resource is not found? |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Yes the Vnet exists. I cannot share the exact Vnet I’d due to security reasons but it is similar to what is mentioned in the error that says resource id not found. It seems the cross subscription deployment is not working as the scope on privateEndpoint is different than where Vnet exists. Both are in different subscriptions and that’s why I have mentioned the target scope as ‘managementGroup’
Thanks
Pooja Garg
…________________________________
From: Alex Frankel ***@***.***>
Sent: Wednesday, May 25, 2022 10:18:12 PM
To: Azure/bicep ***@***.***>
Cc: Garg, Pooja ***@***.***>; Author ***@***.***>
Subject: [External] Re: [Azure/bicep] Resource not found error in cross subscription resources in Bicep (Discussion #6947)
This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links and attachments.
________________________________
Looks like that corresponds to this section of your code:
resource vnet ***@***.***' existing = {
scope: resourceGroup('yyyyyyyyyyyyyyyyy','Networking_RG')
name: 'Vnet1'
}
Is it your intention to use the existing syntax? Are you confident that the vnet vnet already exists? Can you share the resource ID of that vnet?
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Azure_bicep_discussions_6947-23discussioncomment-2D2821758&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=Zi9vMma3qcPVCJikjXl2ruj1WvaLBZ0IKPrrfXsrvSY&m=dchneqZv4jsoWMtGgxivcQ655TDhajVM3xSf5tY3fy7zYRIguX4j6G25rF-rZV_h&s=xxQNl8VhpxWeJjMOAwnPRpHA0oHlnk__iqVxM9DnRRk&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AESDIGUDHUHACLUZA6XDUSLVLZKUZANCNFSM5W346FWA&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=Zi9vMma3qcPVCJikjXl2ruj1WvaLBZ0IKPrrfXsrvSY&m=dchneqZv4jsoWMtGgxivcQ655TDhajVM3xSf5tY3fy7zYRIguX4j6G25rF-rZV_h&s=Pej5sT0PNHoOUasvl2pe8G-9l3NeEMDXofDhM2m2eSY&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy.
______________________________________________________________________________________
www.accenture.com
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Also if it would not have found the Vnet, the error would have been in that resource but not while deploying privateEndpoint. There are other resources in the code that gets deployed successfully as they do not have cross subscription reference like Storage Account
Thanks
Pooja Garg
…________________________________
From: Garg, Pooja ***@***.***>
Sent: Thursday, May 26, 2022 10:53:10 AM
To: Azure/bicep ***@***.***>; Azure/bicep ***@***.***>
Cc: Author ***@***.***>
Subject: Re: [External] Re: [Azure/bicep] Resource not found error in cross subscription resources in Bicep (Discussion #6947)
Yes the Vnet exists. I cannot share the exact Vnet I’d due to security reasons but it is similar to what is mentioned in the error that says resource id not found. It seems the cross subscription deployment is not working as the scope on privateEndpoint is different than where Vnet exists. Both are in different subscriptions and that’s why I have mentioned the target scope as ‘managementGroup’
Thanks
Pooja Garg
________________________________
From: Alex Frankel ***@***.***>
Sent: Wednesday, May 25, 2022 10:18:12 PM
To: Azure/bicep ***@***.***>
Cc: Garg, Pooja ***@***.***>; Author ***@***.***>
Subject: [External] Re: [Azure/bicep] Resource not found error in cross subscription resources in Bicep (Discussion #6947)
This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links and attachments.
________________________________
Looks like that corresponds to this section of your code:
resource vnet ***@***.***' existing = {
scope: resourceGroup('yyyyyyyyyyyyyyyyy','Networking_RG')
name: 'Vnet1'
}
Is it your intention to use the existing syntax? Are you confident that the vnet vnet already exists? Can you share the resource ID of that vnet?
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Azure_bicep_discussions_6947-23discussioncomment-2D2821758&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=Zi9vMma3qcPVCJikjXl2ruj1WvaLBZ0IKPrrfXsrvSY&m=dchneqZv4jsoWMtGgxivcQ655TDhajVM3xSf5tY3fy7zYRIguX4j6G25rF-rZV_h&s=xxQNl8VhpxWeJjMOAwnPRpHA0oHlnk__iqVxM9DnRRk&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AESDIGUDHUHACLUZA6XDUSLVLZKUZANCNFSM5W346FWA&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=Zi9vMma3qcPVCJikjXl2ruj1WvaLBZ0IKPrrfXsrvSY&m=dchneqZv4jsoWMtGgxivcQ655TDhajVM3xSf5tY3fy7zYRIguX4j6G25rF-rZV_h&s=Pej5sT0PNHoOUasvl2pe8G-9l3NeEMDXofDhM2m2eSY&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy.
______________________________________________________________________________________
www.accenture.com
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hey,
Just wanted to check if there is any feedback on this yet.
Thanks
Pooja
From: Garg, Pooja ***@***.***>
Sent: Thursday, May 26, 2022 10:55 AM
To: Azure/bicep ***@***.***>; Azure/bicep ***@***.***>
Cc: Author ***@***.***>
Subject: Re: [External] Re: [Azure/bicep] Resource not found error in cross subscription resources in Bicep (Discussion #6947)
Also if it would not have found the Vnet, the error would have been in that resource but not while deploying privateEndpoint. There are other resources in the code that gets deployed successfully as they do not have cross subscription reference like Storage Account
Thanks
Pooja Garg
…________________________________
From: Garg, Pooja ***@***.******@***.***>>
Sent: Thursday, May 26, 2022 10:53:10 AM
To: Azure/bicep ***@***.******@***.***>>; Azure/bicep ***@***.******@***.***>>
Cc: Author ***@***.******@***.***>>
Subject: Re: [External] Re: [Azure/bicep] Resource not found error in cross subscription resources in Bicep (Discussion #6947)
Yes the Vnet exists. I cannot share the exact Vnet I'd due to security reasons but it is similar to what is mentioned in the error that says resource id not found. It seems the cross subscription deployment is not working as the scope on privateEndpoint is different than where Vnet exists. Both are in different subscriptions and that's why I have mentioned the target scope as 'managementGroup'
Thanks
Pooja Garg
________________________________
From: Alex Frankel ***@***.******@***.***>>
Sent: Wednesday, May 25, 2022 10:18:12 PM
To: Azure/bicep ***@***.******@***.***>>
Cc: Garg, Pooja ***@***.******@***.***>>; Author ***@***.******@***.***>>
Subject: [External] Re: [Azure/bicep] Resource not found error in cross subscription resources in Bicep (Discussion #6947)
This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links and attachments.
________________________________
Looks like that corresponds to this section of your code:
resource vnet ***@***.***' existing = {
scope: resourceGroup('yyyyyyyyyyyyyyyyy','Networking_RG')
name: 'Vnet1'
}
Is it your intention to use the existing syntax? Are you confident that the vnet vnet already exists? Can you share the resource ID of that vnet?
-
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Azure_bicep_discussions_6947-23discussioncomment-2D2821758&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=Zi9vMma3qcPVCJikjXl2ruj1WvaLBZ0IKPrrfXsrvSY&m=dchneqZv4jsoWMtGgxivcQ655TDhajVM3xSf5tY3fy7zYRIguX4j6G25rF-rZV_h&s=xxQNl8VhpxWeJjMOAwnPRpHA0oHlnk__iqVxM9DnRRk&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AESDIGUDHUHACLUZA6XDUSLVLZKUZANCNFSM5W346FWA&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=Zi9vMma3qcPVCJikjXl2ruj1WvaLBZ0IKPrrfXsrvSY&m=dchneqZv4jsoWMtGgxivcQ655TDhajVM3xSf5tY3fy7zYRIguX4j6G25rF-rZV_h&s=Pej5sT0PNHoOUasvl2pe8G-9l3NeEMDXofDhM2m2eSY&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy.
______________________________________________________________________________________
www.accenture.com
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Hi,
Looks like I need to deploy Priavte Endpoint under same subscription as Vnet. Will do and let you know for any issues.
Reference link: What is a private endpoint? | Microsoft Docs<https://docs.microsoft.com/en-us/azure/private-link/private-endpoint-overview#private-endpoint-properties>
“The private endpoint must be deployed in the same region and subscription as the virtual network.”
Thanks
Pooja
From: Alex Frankel ***@***.***>
Sent: Wednesday, May 25, 2022 10:18 PM
To: Azure/bicep ***@***.***>
Cc: Garg, Pooja ***@***.***>; Author ***@***.***>
Subject: [External] Re: [Azure/bicep] Resource not found error in cross subscription resources in Bicep (Discussion #6947)
This message is from an EXTERNAL SENDER - be CAUTIOUS, particularly with links and attachments.
…________________________________
Looks like that corresponds to this section of your code:
resource vnet ***@***.***' existing = {
scope: resourceGroup('yyyyyyyyyyyyyyyyy','Networking_RG')
name: 'Vnet1'
}
Is it your intention to use the existing syntax? Are you confident that the vnet vnet already exists? Can you share the resource ID of that vnet?
—
Reply to this email directly, view it on GitHub<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_Azure_bicep_discussions_6947-23discussioncomment-2D2821758&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=Zi9vMma3qcPVCJikjXl2ruj1WvaLBZ0IKPrrfXsrvSY&m=dchneqZv4jsoWMtGgxivcQ655TDhajVM3xSf5tY3fy7zYRIguX4j6G25rF-rZV_h&s=xxQNl8VhpxWeJjMOAwnPRpHA0oHlnk__iqVxM9DnRRk&e=>, or unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AESDIGUDHUHACLUZA6XDUSLVLZKUZANCNFSM5W346FWA&d=DwMCaQ&c=eIGjsITfXP_y-DLLX0uEHXJvU8nOHrUK8IrwNKOtkVU&r=Zi9vMma3qcPVCJikjXl2ruj1WvaLBZ0IKPrrfXsrvSY&m=dchneqZv4jsoWMtGgxivcQ655TDhajVM3xSf5tY3fy7zYRIguX4j6G25rF-rZV_h&s=Pej5sT0PNHoOUasvl2pe8G-9l3NeEMDXofDhM2m2eSY&e=>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
________________________________
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise confidential information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the e-mail by you is prohibited. Where allowed by local law, electronic communications with Accenture and its affiliates, including e-mail and instant messaging (including content), may be scanned by our systems for the purposes of information security and assessment of internal compliance with Accenture policy. Your privacy is important to us. Accenture uses your personal data only in compliance with data protection laws. For further information on how Accenture processes your personal data, please see our privacy statement at https://www.accenture.com/us-en/privacy-policy.
______________________________________________________________________________________
www.accenture.com
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
brwilkinson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a private endpoint in one subscription (say xxxx) and my Vnet is in another subscription (say YYYYY). both are managed under a management group. So, i am deploying at management group level. But while creating the endpoint it is giving error that Resource is not found. Please suggest how to solve this issue.
Below is my code for main file:
And my privateendpoint module file looks like:
Command to execute the script is:
Beta Was this translation helpful? Give feedback.
All reactions