(Created page with "== Get Info on Function Apps == Commands to find info on vnet usage of function apps: Get the function apps:<syntaxhighlight lang="powershell"> $functionApps = Get-AzFunctionApp -ResourceGroupName $resourceGroupName -Name $functionAppName </syntaxhighlight>go through each app to display the vnet and subnet it is attached to using the siteconfig info:<syntaxhighlight lang="powershell"> foreach($app in $functionApps){write-host "$($app.siteconfig.vnetname) $($app.name)"}...") |
No edit summary |
||
Line 1: | Line 1: | ||
== Set Azure context == | |||
You will need to change the subscription you are set to for getting info on the resources in that subscription:<syntaxhighlight lang="powershell"> | |||
#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 | |||
</syntaxhighlight> | |||
== Get Info on Function Apps == | == Get Info on Function Apps == | ||
Commands to find info on vnet usage of function apps: | Commands to find info on vnet usage of function apps: |
Latest revision as of 16:45, 8 December 2023
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)"}