@Mohsin Khan Thanks for your response.
Use the below cmdlet to pull VirtualNetworkSubnetId using PowerShell.
(Get-AzResource -ResourceGroupName {ResourceGroupName} -Name {FunctionAppName} -ResourceType Microsoft.web/sites).Properties | Select-Object -Property virtualNetworkSubnetId
Hope this helps, let me know if you have any further questions on this.