im kind of struggling and need a bit of help
im trying to make a if statement for these 2 questions below, but I keep doing it wrong - could I get some help:
can I get a if statement for az webapp list to check it it exist, and then delete
$appSvc = az webapp list -g $spokeRG.name | ConvertFrom-Json
can I get a if statement for vnet to check it it exist, and then delete
$appSvcVNET = az webapp vnet-integration list -n $appSvc.name -g $appSvc.resourcegroup | ConvertFrom-Json