Create/Update Endpoints for Weather if (-not $RoleDatacenterWeatherServicesUrl) { Write-ExchangeSetupLog -Warning "Cannot ...

# Create/Update Endpoints for Weather          if (-not $RoleDatacenterWeatherServicesUrl)          {            Write-ExchangeSetupLog -Warning "Cannot create/update weather service end points because one or more required parameters are empty or null. Removing any existing end points."            # Remove existing service endpoints            Write-ExchangeSetupLog -Info "Removing existing weather service endpoints (if any)."            $epName = 'WeatherServicesUrl'            Write-ExchangeSetupLog -Info ("Removing endpoint " + $epName);            Remove-ServiceEndpoint $epName -ErrorAction SilentlyContinue          }          else          {            # Create service endpoints            $urlName = 'RoleDatacenterWeatherServicesUrl'            $url = Get-Variable -Name $urlName -ValueOnly            $epName = 'WeatherServicesUrl'            Write-ExchangeSetupLog -Info ("Creating/Updating endpoint " + $epName);            New-ServiceEndpoint -Name $epName -Url $url          }