Skip to content

Commit cfe105b

Browse files
authored
Update private-vnet.md
1 parent a6a07fa commit cfe105b

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

articles/cloud-shell/private-vnet.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,18 @@ As in standard Cloud Shell, a storage account is required while using Cloud Shel
6464

6565
* [Azure Relay](https://docs.microsoft.com/azure/azure-relay/relay-what-is-it) is not a free service, please view their [pricing](https://azure.microsoft.com/pricing/details/service-bus/). In the Cloud Shell scenario, one hybrid connection is used for each administrator while they are using Cloud Shell. The connection will automatically be shut down after the Cloud Shell session is complete.
6666

67+
## Register resource provider
68+
The Microsoft.ContainerInstances resource provider needs to be registered in the subscription which holds the virtual network you want to use. Select the appropriate subscription with `Set-AzContext -Subscription {subscriptionName}` then
69+
70+
```PS> Get-AzResourceProvider -ProviderNamespace Microsoft.ContainerInstance | select ResourceTypes,RegistrationState
71+
72+
ResourceTypes RegistrationState
73+
------------- -----------------
74+
{containerGroups} Registered
75+
...
76+
```
77+
78+
If the RegistrationState is `Registered` no action is required. If it is `NotRegistered`, run `Register-AzResourceProvider -ProviderNamespace Microsoft.ContainerInstance`.
6779

6880
## Deploy network resources
6981

@@ -79,7 +91,7 @@ In the Azure portal, or using Azure CLI, Azure PowerShell, etc. create a resourc
7991
Utilize the [Azure Quickstart Template](https://aka.ms/cloudshell/docs/vnet/template) for creating Cloud Shell resources in a virtual network, and the [Azure Quickstart Template](https://aka.ms/cloudshell/docs/vnet/template/storage) for creating necessary storage. Take note of your resource names, primarily your file share name.
8092

8193
### Open relay firewall
82-
Navigate to the relay created using the above template, select "Networking" in settings, allow access from your browser network to the relay.
94+
Navigate to the relay created using the above template, select "Networking" in settings, allow access from your browser network to the relay. By default the relay is only accessible from the virtual network it has been created in.
8395

8496
### Configuring Cloud Shell to use a virtual network.
8597
> [!NOTE]
@@ -95,6 +107,5 @@ Connect to Cloud Shell, you will be prompted with the first run experience. Sele
95107

96108
![Illustrates the Cloud Shell isolated VNET first experience settings.](media/private-vnet/vnet-settings.png)
97109

98-
99110
## Next steps
100111
[Learn about Azure Virtual Networks](https://docs.microsoft.com/azure/virtual-network/virtual-networks-overview)

0 commit comments

Comments
 (0)