Skip to content

Commit 33b7032

Browse files
Merge pull request #225023 from mumian/0124-ds-private-vm
Deployment script: access private VMs
2 parents 9777074 + 4cf9772 commit 33b7032

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

articles/azure-resource-manager/bicep/deployment-script-bicep.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: azure-resource-manager
55
author: mumian
66
ms.service: azure-resource-manager
77
ms.topic: conceptual
8-
ms.date: 01/18/2023
8+
ms.date: 01/25/2023
99
ms.author: jgao
1010
---
1111

@@ -630,6 +630,10 @@ When you use Azure PowerShell deployment scripts, you can use the `Invoke-RestMe
630630

631631
The identity that your deployment script uses needs to be authorized to work with the Microsoft Graph API, with the appropriate permissions for the operations it performs. You must authorize the identity outside of your Bicep file, such as by pre-creating a user-assigned managed identity and assigning it an app role for Microsoft Graph. For more information, [see this quickstart example](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.resources/deployment-script-azcli-graph-azure-ad).
632632

633+
## Access private virtual network
634+
635+
The supporting resources including the container instance can't be deployed to a private virtual network. To access a private virtual network from your deployment script, you can create another virtual network with a publicly accessible virtual machine or a container instance, and create a peering from this virtual network to the private virtual network.
636+
633637
## Next steps
634638

635639
In this article, you learned how to use deployment scripts. To walk through a Learn module:

articles/azure-resource-manager/templates/deployment-script-template.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: azure-resource-manager
55
author: mumian
66
ms.service: azure-resource-manager
77
ms.topic: conceptual
8-
ms.date: 01/19/2022
8+
ms.date: 01/25/2022
99
ms.author: jgao
1010
ms.custom: devx-track-azurepowershell
1111
---
@@ -641,6 +641,10 @@ When you use Azure PowerShell deployment scripts, you can use the `Invoke-RestMe
641641

642642
The identity that your deployment script uses needs to be authorized to work with the Microsoft Graph API, with the appropriate permissions for the operations it performs. You must authorize the identity outside of your template deployment, such as by pre-creating a user-assigned managed identity and assigning it an app role for Microsoft Graph. For more information, [see this quickstart example](https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.resources/deployment-script-azcli-graph-azure-ad).
643643

644+
## Access private virtual network
645+
646+
The supporting resources including the container instance can't be deployed to a private virtual network. To access a private virtual network from your deployment script, you can create another virtual network with a publicly accessible virtual machine or a container instance, and create a peering from this virtual network to the private virtual network.
647+
644648
## Next steps
645649

646650
In this article, you learned how to use deployment scripts. To walk through a deployment script tutorial:

0 commit comments

Comments
 (0)