Skip to content

Commit

Permalink
Merge pull request #5624 from neil-yechenwei/fix_role_assignment
Browse files Browse the repository at this point in the history
Add name validation for azurerm_role_assignment
  • Loading branch information
tombuildsstuff authored Feb 17, 2020
2 parents 6e2924e + eab1f69 commit c20ebbf
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/suppress"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/tf"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/helpers/validate"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/clients"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/features"
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/timeouts"
Expand All @@ -36,10 +37,11 @@ func resourceArmRoleAssignment() *schema.Resource {

Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
ValidateFunc: validate.GUID,
},

"scope": {
Expand Down

0 comments on commit c20ebbf

Please sign in to comment.