title: Attempting to enable web server logging on multiple on Azure web apps with quota and retention specified
body: <p>Can someone please help me with my powershell script below?  The issue that I'm facing is the "ResourceName" flag is the name of the web app that is being configured, so I need to have an array for that and have the ForEach-Object loop run against that array.</p>
  
  <pre><code>$ResourceGroupName = 'webapptestrg'
  $webapps = Get-AzWebApp -ResourceGroupName 'webapptestrg'
  $ResourceName = foreach ($webapp in $webapps) {$webapp.name}
  
  $PropertiesObject = @{
      httpLogs = @{
          fileSystem = @{
              enabled = $TRUE;
              retentionInMb = 35;
              retentionInDays = 7;
          }
      }
    }
  
  Get-AzResource -ResourceGroupName $ResourceGroupName | ForEach-Object {
  Set-AzResource -Properties $PropertiesObject `
        -ResourceGroupName $ResourceGroupName -ResourceType Microsoft.Web/sites/config `
        -ResourceName $ResourceName.name/logs -ApiVersion 2018-11-01 -Force
        }
  </code></pre>