Set Azure context
You will need to change the subscription you are set to for getting info on the resources in that subscription:
#get what subscription you are currently in
Get-azcontext
#get available subscriptions for your Enable-OdbcPerfCounter
Get-AzSubscription
#set context to required subscription
Set-AzContext -Subscription
Get Info on Function Apps
Commands to find info on vnet usage of function apps:
Get the function apps:
$functionApps = Get-AzFunctionApp -ResourceGroupName $resourceGroupName -Name $functionAppName
go through each app to display the vnet and subnet it is attached to using the siteconfig info:
foreach($app in $functionApps){write-host "$($app.siteconfig.vnetname) $($app.name)"}