diff --git a/internal/services/authorization/role_definition_resource.go b/internal/services/authorization/role_definition_resource.go index 07a5b6b4c2f9..039b6405997c 100644 --- a/internal/services/authorization/role_definition_resource.go +++ b/internal/services/authorization/role_definition_resource.go @@ -466,7 +466,9 @@ func expandRoleDefinitionAssignableScopes(d *pluginsdk.ResourceData) []string { scopes = append(scopes, assignedScope) } else { for _, scope := range assignableScopes { - scopes = append(scopes, scope.(string)) + if s, ok := scope.(string); ok { + scopes = append(scopes, s) + } } }