Hi @芹沢 基樹
As per the document of Resources - List By Resource Group I don't see $expand parameter accepting the value as 'HardwareProfile'.
$expand accepts Comma-separated list of additional properties to be included in the response. Valid values include createdTime, changedTime and provisioningState.
For example, $expand=createdTime,changedTime.
I do see another API Resources-Get By ID where you provide the resource ID details and it returns the resource details including the hardware profile details.
"hardwareProfile": {
"vmSize": "Standard_B1s"
}
You can use the Read a resource action in your logic app providing the detail:
Short Resource ID will be virtualMachines/yourVirtualMachineName
Logic App Input/Response:
You can modify the above according to your needs rather than hardcoding the values.
Please let me know if you have any queries or concerns.