Suppose I want to delete all files matching *.config.default
from an Azure WebApp. How can I do this with PowerShell? If I had a directory on my local machine I can do this with:
get-childitem -Path . -Filter *.config.default -Recurse | remove-item
I can currently get the webApp using the following, but I don't think this will allow me to delete any files
$webapp = Get-AzureRMWebApp -ResourceGroupName $ResourceGroupName -Name $WebSiteName -ea SilentlyContinue
I know I can use the KUDU console which will allow me access to PS D:\home\site\wwwroot>
and then I can use Powershell commands from there, but I need to be able to do this without using the console.