diff --git a/internal/services/cosmos/cosmosdb_mongo_role_definition_resource.go b/internal/services/cosmos/cosmosdb_mongo_role_definition_resource.go index 75df8e2d3f3c..e62977abf7cf 100644 --- a/internal/services/cosmos/cosmosdb_mongo_role_definition_resource.go +++ b/internal/services/cosmos/cosmosdb_mongo_role_definition_resource.go @@ -151,7 +151,7 @@ func (r CosmosDbMongoRoleDefinitionResource) Create() sdk.ResourceFunc { return metadata.ResourceRequiresImport(r.ResourceType(), id) } - roleType := mongorbacs.MongoRoleDefinitionTypeOne + roleType := mongorbacs.MongoRoleDefinitionTypeCustomRole parameters := mongorbacs.MongoRoleDefinitionCreateUpdateParameters{ Properties: &mongorbacs.MongoRoleDefinitionResource{ DatabaseName: pointer.To(databaseId.Name), @@ -206,7 +206,7 @@ func (r CosmosDbMongoRoleDefinitionResource) Update() sdk.ResourceFunc { return err } - roleType := mongorbacs.MongoRoleDefinitionTypeOne + roleType := mongorbacs.MongoRoleDefinitionTypeCustomRole parameters := mongorbacs.MongoRoleDefinitionCreateUpdateParameters{ Properties: &mongorbacs.MongoRoleDefinitionResource{ DatabaseName: pointer.To(databaseId.Name),