Skip to content

Commit

Permalink
network manager support Routing for scope_accesses (#28033)
Browse files Browse the repository at this point in the history
  • Loading branch information
teowa authored Nov 21, 2024
1 parent 56795f3 commit 956bb5a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions internal/services/network/network_manager_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func (r ManagerResource) Arguments() map[string]*pluginsdk.Schema {
Type: pluginsdk.TypeString,
ValidateFunc: validation.StringInSlice([]string{
string(networkmanagers.ConfigurationTypeConnectivity),
string(networkmanagers.ConfigurationTypeRouting),
string(networkmanagers.ConfigurationTypeSecurityAdmin),
}, false),
},
Expand Down
2 changes: 1 addition & 1 deletion internal/services/network/network_manager_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ resource "azurerm_network_manager" "test" {
scope {
subscription_ids = [data.azurerm_subscription.current.id]
}
scope_accesses = ["Connectivity", "SecurityAdmin"]
scope_accesses = ["Connectivity", "SecurityAdmin", "Routing"]
description = "test network manager"
tags = {
foo = "bar"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/network_manager.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The following arguments are supported:

* `scope` - (Required) A `scope` block as defined below.

* `scope_accesses` - (Required) A list of configuration deployment type. Possible values are `Connectivity` and `SecurityAdmin`, corresponds to if Connectivity Configuration and Security Admin Configuration is allowed for the Network Manager.
* `scope_accesses` - (Required) A list of configuration deployment type. Possible values are `Connectivity`, `SecurityAdmin` and `Routing`, corresponds to if Connectivity Configuration, Security Admin Configuration or Routing Configuration is allowed for the Network Manager.

* `description` - (Optional) A description of the network manager.

Expand Down

0 comments on commit 956bb5a

Please sign in to comment.