diff --git a/internal/services/containers/kubernetes_fleet_manager_resource_gen.go b/internal/services/containers/kubernetes_fleet_manager_resource_gen.go index 2b9172eb6575..781045782b27 100644 --- a/internal/services/containers/kubernetes_fleet_manager_resource_gen.go +++ b/internal/services/containers/kubernetes_fleet_manager_resource_gen.go @@ -49,9 +49,7 @@ func (r KubernetesFleetManagerResource) Arguments() map[string]*pluginsdk.Schema Required: true, Type: pluginsdk.TypeString, }, - "resource_group_name": commonschema.ResourceGroupName(), - "hub_profile": { Elem: &pluginsdk.Resource{ Schema: map[string]*pluginsdk.Schema{ @@ -60,11 +58,11 @@ func (r KubernetesFleetManagerResource) Arguments() map[string]*pluginsdk.Schema Type: pluginsdk.TypeString, }, "fqdn": { - Computed: true, + Optional: true, Type: pluginsdk.TypeString, }, "kubernetes_version": { - Computed: true, + Optional: true, Type: pluginsdk.TypeString, }, }, @@ -74,7 +72,6 @@ func (r KubernetesFleetManagerResource) Arguments() map[string]*pluginsdk.Schema Optional: true, Type: pluginsdk.TypeList, }, - "tags": commonschema.Tags(), } } @@ -217,7 +214,8 @@ type KubernetesFleetManagerResourceFleetHubProfileSchema struct { func (r KubernetesFleetManagerResource) mapKubernetesFleetManagerResourceFleetHubProfileSchemaToFleetHubProfile(input KubernetesFleetManagerResourceFleetHubProfileSchema, output *fleets.FleetHubProfile) error { output.DnsPrefix = input.DnsPrefix - + output.Fqdn = &input.Fqdn + output.KubernetesVersion = &input.KubernetesVersion return nil } diff --git a/internal/services/containers/kubernetes_fleet_manager_resource_gen_test.go b/internal/services/containers/kubernetes_fleet_manager_resource_gen_test.go index 30ba27d73974..879745e2a852 100644 --- a/internal/services/containers/kubernetes_fleet_manager_resource_gen_test.go +++ b/internal/services/containers/kubernetes_fleet_manager_resource_gen_test.go @@ -149,7 +149,9 @@ resource "azurerm_kubernetes_fleet_manager" "test" { some_key = "some-value" } hub_profile { - dns_prefix = "val-${var.random_string}" + dns_prefix = "val-${var.random_string}" + fqdn = "val-${var.random_string}" + kubernetes_version = "val-${var.random_string}" } } `, r.template(data)) diff --git a/internal/services/devcenter/dev_center_project_resource_gen.go b/internal/services/devcenter/dev_center_project_resource_gen.go index 194abc1be178..cd2af22e9c43 100644 --- a/internal/services/devcenter/dev_center_project_resource_gen.go +++ b/internal/services/devcenter/dev_center_project_resource_gen.go @@ -63,6 +63,11 @@ func (r DevCenterProjectResource) Arguments() map[string]*pluginsdk.Schema { Optional: true, Type: pluginsdk.TypeString, }, + "dev_center_uri": { + ForceNew: true, + Optional: true, + Type: pluginsdk.TypeString, + }, "maximum_dev_boxes_per_user": { Optional: true, Type: pluginsdk.TypeInt, @@ -71,12 +76,7 @@ func (r DevCenterProjectResource) Arguments() map[string]*pluginsdk.Schema { } } func (r DevCenterProjectResource) Attributes() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{ - "dev_center_uri": { - Computed: true, - Type: pluginsdk.TypeString, - }, - } + return map[string]*pluginsdk.Schema{} } func (r DevCenterProjectResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ @@ -229,7 +229,7 @@ func (r DevCenterProjectResource) mapProjectToDevCenterProjectResourceSchema(inp func (r DevCenterProjectResource) mapDevCenterProjectResourceSchemaToProjectProperties(input DevCenterProjectResourceSchema, output *projects.ProjectProperties) error { output.Description = &input.Description output.DevCenterId = input.DevCenterId - + output.DevCenterUri = &input.DevCenterUri output.MaxDevBoxesPerUser = &input.MaximumDevBoxesPerUser return nil } diff --git a/internal/services/devcenter/dev_center_project_resource_gen_test.go b/internal/services/devcenter/dev_center_project_resource_gen_test.go index 021c3219e0be..7f5ddece9d8a 100644 --- a/internal/services/devcenter/dev_center_project_resource_gen_test.go +++ b/internal/services/devcenter/dev_center_project_resource_gen_test.go @@ -148,6 +148,7 @@ resource "azurerm_dev_center_project" "test" { name = "acctestdcp-${var.random_string}" resource_group_name = azurerm_resource_group.test.name description = "Description for the Dev Center Project" + dev_center_uri = "val-${var.random_string}" maximum_dev_boxes_per_user = 21 tags = { environment = "terraform-acctests" diff --git a/internal/services/devcenter/dev_center_resource_gen.go b/internal/services/devcenter/dev_center_resource_gen.go index e0dd108e63d1..137abb2b7314 100644 --- a/internal/services/devcenter/dev_center_resource_gen.go +++ b/internal/services/devcenter/dev_center_resource_gen.go @@ -52,18 +52,17 @@ func (r DevCenterResource) Arguments() map[string]*pluginsdk.Schema { Type: pluginsdk.TypeString, }, "resource_group_name": commonschema.ResourceGroupName(), - "identity": commonschema.SystemAssignedUserAssignedIdentityOptional(), - "tags": commonschema.Tags(), - } -} -func (r DevCenterResource) Attributes() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{ "dev_center_uri": { - Computed: true, + Optional: true, Type: pluginsdk.TypeString, }, + "identity": commonschema.SystemAssignedUserAssignedIdentityOptional(), + "tags": commonschema.Tags(), } } +func (r DevCenterResource) Attributes() map[string]*pluginsdk.Schema { + return map[string]*pluginsdk.Schema{} +} func (r DevCenterResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ Timeout: 30 * time.Minute, @@ -235,7 +234,7 @@ func (r DevCenterResource) mapDevCenterToDevCenterResourceSchema(input devcenter } func (r DevCenterResource) mapDevCenterResourceSchemaToDevCenterProperties(input DevCenterResourceSchema, output *devcenters.DevCenterProperties) error { - + output.DevCenterUri = &input.DevCenterUri return nil } diff --git a/internal/services/devcenter/dev_center_resource_gen_test.go b/internal/services/devcenter/dev_center_resource_gen_test.go index 043a53594cd1..d7cba17fce07 100644 --- a/internal/services/devcenter/dev_center_resource_gen_test.go +++ b/internal/services/devcenter/dev_center_resource_gen_test.go @@ -144,6 +144,7 @@ resource "azurerm_dev_center" "test" { location = azurerm_resource_group.test.location name = "acctestdc-${var.random_string}" resource_group_name = azurerm_resource_group.test.name + dev_center_uri = "val-${var.random_string}" tags = { environment = "terraform-acctests" some_key = "some-value" diff --git a/internal/services/loadtestservice/load_test_resource_gen.go b/internal/services/loadtestservice/load_test_resource_gen.go index 26dbfbdeb8da..b041be87f937 100644 --- a/internal/services/loadtestservice/load_test_resource_gen.go +++ b/internal/services/loadtestservice/load_test_resource_gen.go @@ -53,6 +53,11 @@ func (r LoadTestResource) Arguments() map[string]*pluginsdk.Schema { Type: pluginsdk.TypeString, }, "resource_group_name": commonschema.ResourceGroupName(), + "data_plane_uri": { + ForceNew: true, + Optional: true, + Type: pluginsdk.TypeString, + }, "description": { ForceNew: true, Optional: true, @@ -63,12 +68,7 @@ func (r LoadTestResource) Arguments() map[string]*pluginsdk.Schema { } } func (r LoadTestResource) Attributes() map[string]*pluginsdk.Schema { - return map[string]*pluginsdk.Schema{ - "data_plane_uri": { - Computed: true, - Type: pluginsdk.TypeString, - }, - } + return map[string]*pluginsdk.Schema{} } func (r LoadTestResource) Create() sdk.ResourceFunc { return sdk.ResourceFunc{ @@ -191,7 +191,7 @@ func (r LoadTestResource) Update() sdk.ResourceFunc { } func (r LoadTestResource) mapLoadTestResourceSchemaToLoadTestProperties(input LoadTestResourceSchema, output *loadtests.LoadTestProperties) error { - + output.DataPlaneURI = &input.DataPlaneURI output.Description = &input.Description return nil } diff --git a/internal/services/loadtestservice/load_test_resource_gen_test.go b/internal/services/loadtestservice/load_test_resource_gen_test.go index a17d8bc9f636..33d85d5a0bec 100644 --- a/internal/services/loadtestservice/load_test_resource_gen_test.go +++ b/internal/services/loadtestservice/load_test_resource_gen_test.go @@ -144,6 +144,7 @@ resource "azurerm_load_test" "test" { location = azurerm_resource_group.test.location name = "acctestlt-${var.random_string}" resource_group_name = azurerm_resource_group.test.name + data_plane_uri = "val-${var.random_string}" description = "Description for the Load Test" tags = { environment = "terraform-acctests" diff --git a/website/docs/r/dev_center.html.markdown b/website/docs/r/dev_center.html.markdown index 0eb14a6bfa01..eeab7b71a029 100644 --- a/website/docs/r/dev_center.html.markdown +++ b/website/docs/r/dev_center.html.markdown @@ -41,6 +41,8 @@ The following arguments are supported: * `resource_group_name` - (Required) Specifies the name of the Resource Group within which this Dev Center should exist. Changing this forces a new Dev Center to be created. +* `dev_center_uri` - (Optional) The URI of the Dev Center. + * `identity` - (Optional) An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Dev Center. * `tags` - (Optional) A mapping of tags which should be assigned to the Dev Center. @@ -51,8 +53,6 @@ In addition to the Arguments listed above - the following Attributes are exporte * `id` - The ID of the Dev Center. -* `dev_center_uri` - The URI of the Dev Center. - --- ## Blocks Reference diff --git a/website/docs/r/dev_center_project.html.markdown b/website/docs/r/dev_center_project.html.markdown index a1e2fc2a815d..1302c851143a 100644 --- a/website/docs/r/dev_center_project.html.markdown +++ b/website/docs/r/dev_center_project.html.markdown @@ -49,6 +49,8 @@ The following arguments are supported: * `description` - (Optional) Description of the project. Changing this forces a new Dev Center Project to be created. +* `dev_center_uri` - (Optional) The URI of the Dev Center resource this project is associated with. Changing this forces a new Dev Center Project to be created. + * `maximum_dev_boxes_per_user` - (Optional) When specified, limits the maximum number of Dev Boxes a single user can create across all pools in the project. * `tags` - (Optional) A mapping of tags which should be assigned to the Dev Center Project. @@ -59,8 +61,6 @@ In addition to the Arguments listed above - the following Attributes are exporte * `id` - The ID of the Dev Center Project. -* `dev_center_uri` - The URI of the Dev Center resource this project is associated with. - --- diff --git a/website/docs/r/kubernetes_fleet_manager.html.markdown b/website/docs/r/kubernetes_fleet_manager.html.markdown index 2935818f88d5..66dfa21c5fdb 100644 --- a/website/docs/r/kubernetes_fleet_manager.html.markdown +++ b/website/docs/r/kubernetes_fleet_manager.html.markdown @@ -56,12 +56,8 @@ In addition to the Arguments listed above - the following Attributes are exporte The `hub_profile` block supports the following arguments: * `dns_prefix` - (Required) - - -In addition to the arguments defined above, the `hub_profile` block exports the following attributes: - -* `fqdn` - -* `kubernetes_version` - +* `fqdn` - (Optional) +* `kubernetes_version` - (Optional) ## Timeouts diff --git a/website/docs/r/load_test.html.markdown b/website/docs/r/load_test.html.markdown index 28f740ec1a22..ccb05aae704c 100644 --- a/website/docs/r/load_test.html.markdown +++ b/website/docs/r/load_test.html.markdown @@ -41,6 +41,8 @@ The following arguments are supported: * `resource_group_name` - (Required) Specifies the name of the Resource Group within which this Load Test should exist. Changing this forces a new Load Test to be created. +* `data_plane_uri` - (Optional) Resource data plane URI. Changing this forces a new Load Test to be created. + * `description` - (Optional) Description of the resource. Changing this forces a new Load Test to be created. * `identity` - (Optional) An `identity` block as defined below. Specifies the Managed Identity which should be assigned to this Load Test. @@ -53,8 +55,6 @@ In addition to the Arguments listed above - the following Attributes are exporte * `id` - The ID of the Load Test. -* `data_plane_uri` - Resource data plane URI. - --- ## Blocks Reference