Command Reference > share > createAsset
Adds a new asset to an existing share.
pv share createAsset --sentShareName=<val> --assetName=<val> --payloadFile=<val>
--sentShareName
(string)
The name of the sent share.
--assetName
(string)
The name of the asset.
--payloadFile
(string)
File path to a valid JSON document.
None
Share Data Plane > Assets > Create
PUT https://{accountName}.purview.azure.com/share/sentShares/{sentShareName}/assets/{assetName}
Add an asset to an existing sent share.
pv share createAsset --sentShareName "MyNewSentShare" --assetName "MyAssetName" --payloadFile "/path/to/file.json"
Example payload.
{
"kind": "BlobAccount",
"properties": {
"storageAccountResourceId": "/subscriptions/2c334b6c-e556-40ac-a4c0-c0d1d2e08ca0/resourceGroups/pv-7643-rg/providers/Microsoft.Storage/storageAccounts/storagedatashare01",
"receiverAssetName": "MyAssetName",
"paths": [
{
"containerName": "products",
"senderPath": "products.csv",
"receiverPath": "products.csv"
}
]
}
}