From ad34f9c4eb779c69b0cedbc3d31bc7e947e25bd4 Mon Sep 17 00:00:00 2001 From: Henry Buckle Date: Mon, 14 Jan 2019 14:00:40 +0000 Subject: [PATCH] add additional subnet delegations --- azurerm/resource_arm_subnet.go | 8 ++++++++ website/docs/r/subnet.html.markdown | 6 +++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/azurerm/resource_arm_subnet.go b/azurerm/resource_arm_subnet.go index a182d66ad815..59408ea53bb3 100644 --- a/azurerm/resource_arm_subnet.go +++ b/azurerm/resource_arm_subnet.go @@ -87,7 +87,15 @@ func resourceArmSubnet() *schema.Resource { Type: schema.TypeString, Required: true, ValidateFunc: validation.StringInSlice([]string{ + "Microsoft.Batch/batchAccounts", "Microsoft.ContainerInstance/containerGroups", + "Microsoft.HardwareSecurityModules/dedicatedHSMs", + "Microsoft.Logic/integrationServiceEnvironments", + "Microsoft.Netapp/volumes", + "Microsoft.ServiceFabricMesh/networks", + "Microsoft.Sql/managedInstances", + "Microsoft.Sql/servers", + "Microsoft.Web/serverFarms", }, false), }, "actions": { diff --git a/website/docs/r/subnet.html.markdown b/website/docs/r/subnet.html.markdown index 1f249ccb4b14..227fb5ffe9f7 100644 --- a/website/docs/r/subnet.html.markdown +++ b/website/docs/r/subnet.html.markdown @@ -78,10 +78,10 @@ A `delegation` block supports the following: --- A `service_delegation` block supports the following: -* `name` - (Required) The name of service to delegate to. Possible values include: `Microsoft.ContainerInstance/containerGroups`. -* `actions` - (Optional) A list of Actions which should be delegated. Possible values include: `Microsoft.Network/virtualNetworks/subnets/action`. -[More information on Subnet Delegation can be found in the Azure CLI documentation](https://docs.microsoft.com/en-us/cli/azure/network/vnet/subnet?view=azure-cli-latest#az-network-vnet-subnet-list-available-delegations) +-> **NOTE:** Delegating to services may not be available in all regions. Check that the service you are delegating to is available in your region using the [Azure CLI](https://docs.microsoft.com/en-us/cli/azure/network/vnet/subnet?view=azure-cli-latest#az-network-vnet-subnet-list-available-delegations) +* `name` - (Required) The name of service to delegate to. Possible values include: `Microsoft.Batch/batchAccounts`, `Microsoft.ContainerInstance/containerGroups`, `Microsoft.HardwareSecurityModules/dedicatedHSMs`, `Microsoft.Logic/integrationServiceEnvironments`, `Microsoft.Netapp/volumes`, `Microsoft.ServiceFabricMesh/networks`, `Microsoft.Sql/managedInstances`, `Microsoft.Sql/servers` or `Microsoft.Web/serverFarms`. +* `actions` - (Optional) A list of Actions which should be delegated. Possible values include: `Microsoft.Network/virtualNetworks/subnets/action`. ## Attributes Reference