curl --location --request POST 'https://management.azure.com/subscriptions//providers/Microsoft.PowerBI/locations//checkNameAvailability?api-version=' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"type": "Microsoft.PowerBI/workspaceCollections"
}'{
"message": "string",
"nameAvailable": true,
"reason": "Unavailable"
}