Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to set a subnet delegation with service "Microsoft.Orbital/orbitalGateways" #17597

Closed
1 task done
astraios opened this issue Jul 12, 2022 · 4 comments · Fixed by #17854
Closed
1 task done

Comments

@astraios
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.2.4

AzureRM Provider Version

3.13.0

Affected Resource(s)/Data Source(s)

azurerm_subnet

Terraform Configuration Files

resource "azurerm_subnet" "orbital_delegated" {
  name                 = "snet-orbital-delegated"
  resource_group_name  = data.azurerm_resource_group.main.name
  virtual_network_name = azurerm_virtual_network.main.name
  address_prefixes     = ["172.20.0.0/24"]

  delegation {
    name = "orbital"
    service_delegation {
      name = "Microsoft.Orbital/orbitalGateways"
    }
  }
}

Debug Output/Panic Output

╷
│ Error: expected delegation.0.service_delegation.0.name to be one of [Microsoft.ApiManagement/service Microsoft.AzureCosmosDB/clusters Microsoft.BareMetal/AzureVMware Microsoft.BareMetal/CrayServers Microsoft.Batch/batchAccounts Microsoft.ContainerInstance/containerGroups Microsoft.ContainerService/managedClusters Microsoft.Databricks/workspaces Microsoft.DBforMySQL/flexibleServers Microsoft.DBforMySQL/serversv2 Microsoft.DBforPostgreSQL/flexibleServers Microsoft.DBforPostgreSQL/serversv2 Microsoft.DBforPostgreSQL/singleServers Microsoft.HardwareSecurityModules/dedicatedHSMs Microsoft.Kusto/clusters Microsoft.Logic/integrationServiceEnvironments Microsoft.MachineLearningServices/workspaces Microsoft.Netapp/volumes Microsoft.Network/managedResolvers Microsoft.PowerPlatform/vnetaccesslinks Microsoft.ServiceFabricMesh/networks Microsoft.Sql/managedInstances Microsoft.Sql/servers Microsoft.StoragePool/diskPools Microsoft.StreamAnalytics/streamingJobs Microsoft.Synapse/workspaces Microsoft.Web/hostingEnvironments Microsoft.Web/serverFarms], got Microsoft.Orbital/orbitalGateways
│
│   with azurerm_subnet.orbital_delegated,
│   on network.tf line 34, in resource "azurerm_subnet" "orbital_delegated":
│   34:       name = "Microsoft.Orbital/orbitalGateways"
│
╵

Expected Behaviour

I'm expecting the service delegation to be configured.

Actual Behaviour

I'm getting an error stoping the azurerm_subnet configuration.

Steps to Reproduce

  • Set a Resource Group
  • Set a Virtual Network
  • Create a TF so setup a subnet with a service delegation to "Microsoft.Orbital/orbitalGateways"
  • terraform plan

Important Factoids

No response

References

No response

@jiaweitao001
Copy link
Contributor

Hi, this is a known issue. We are actively working on it to add orbitalGateways to service delegation list. Thanks.

@github-actions
Copy link

github-actions bot commented Aug 5, 2022

This functionality has been released in v3.17.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@astraios
Copy link
Contributor Author

astraios commented Aug 5, 2022

While waiting for a fix, we deployed the subnet and configured the delegation manually. Now with this release, I decided to configure the subnet delegation via terraform. when running plan I get the following output:

~ delegation {
          ~ name = "Microsoft.Orbital.orbitalGateways" -> "orbital"

          ~ service_delegation {
              ~ actions = [
                  - "Microsoft.Network/publicIPAddresses/join/action",
                  - "Microsoft.Network/virtualNetworks/subnets/join/action",
                  - "Microsoft.Network/virtualNetworks/read",
                  - "Microsoft.Network/publicIPAddresses/read",
                ]
              ~ name    = "Microsoft.Orbital/orbitalGateways" -> "Microsoft.Orbital/orbitalGateway"
            }
        }

Moreover, when trying to use that value in the delegation service_delegation.name property, terraform apply returns with the following error:

The service name Microsoft.Orbital/orbitalGateway specified on delegation /subscriptions/<redacted>/resourceGroups/rg-redacted/providers/Microsoft.Network/virtualNetworks/vnet-redacted/subnets/snet-orbital-delegated/delegations/Microsoft.Orbital.orbitalGateways is not valid.

@github-actions
Copy link

github-actions bot commented Sep 5, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants