Skip to content

Instantly share code, notes, and snippets.

@JamesDLD
Created April 13, 2020 10:42
Show Gist options
  • Save JamesDLD/45c171c80176a9fd1f5ef5fd0f534f54 to your computer and use it in GitHub Desktop.
Save JamesDLD/45c171c80176a9fd1f5ef5fd0f534f54 to your computer and use it in GitHub Desktop.
A Private Endpoint in the Hub and it's Resource in an Application Resource Group.
New-AzResourceGroupDeployment -Name "mystorageaccountname-pe1" -ResourceGroupName "MyHubRgName" `
-TemplateUri https://raw.githubusercontent.com/JamesDLD/AzureRm-Template/master/Create-AzPrivateEnpoints/azuredeploy.json `
-tags "{""MyTagKey1"":""MyTagKey1Value"",""MyTagKey2"":""MyTagKey2Value""}""" `
-existingVirtualNetworkName "hub-vnet1" `
-existingVirtualNetworkSubnetName "endpoint-snet1" `
-existingResourceSubscriptionId "xxxxx-xxxxx-xxxxx-xxxxx" `
-existingResourceResourceGroupName "MyAppRgName" `
-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