Command Reference > relationship > create
Create a new relationship between entities.
pv relationship create --payloadFile=<val>
--payloadFile
(string)
File path to a valid JSON document.
None
Catalog Data Plane > Relationship > Create
POST https://{accountName}.purview.azure.com/catalog/api/atlas/v2/relationship
Create a new relationship.
pv relationship create --payloadFile "/path/to/file.json"
Example payload.
{
"end1": {
"typeName": "azure_sql_schema",
"uniqueAttributes": {
"qualifiedName": "mssql://pvdemofngxi-sqlsvr.database.windows.net/pvdemofngxi-sqldb/SalesLT"
}
},
"end2": {
"typeName": "azure_sql_table",
"uniqueAttributes": {
"qualifiedName": "mssql://pvdemofngxi-sqlsvr.database.windows.net/pvdemofngxi-sqldb/SalesLT/Customer"
}
},
"typeName": "azure_sql_schema_tables"
}