Skip to content

Instantly share code, notes, and snippets.

@JamesDLD
Created April 13, 2020 10:46
Show Gist options
  • Save JamesDLD/bbc2ebe1306ff7701f02da1e98924e18 to your computer and use it in GitHub Desktop.
Save JamesDLD/bbc2ebe1306ff7701f02da1e98924e18 to your computer and use it in GitHub Desktop.
A Private Endpoint with its Resource in the Application's Resource Group and its Ip address in a remote Virtual Network.
New-AzResourceGroupDeployment -Name "mystorageaccountname-pe1" -ResourceGroupName "MyAppRgName" `
-TemplateUri https://raw.githubusercontent.com/JamesDLD/AzureRm-Template/master/Create-AzPrivateEnpoints/azuredeploy.json `
-tags "{""MyTagKey1"":""MyTagKey1Value"",""MyTagKey2"":""MyTagKey2Value""}""" `
-existingVirtualNetworkResourceGroupName "MyHubRgName" `
-existingVirtualNetworkName "hub-vnet1" `
-existingVirtualNetworkSubnetName "endpoint-snet1" `
-existingResourceName "mystorageaccountname" `
-existingResourceType "Microsoft.Storage/storageAccounts" `
-groupIds @("blob")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment