We have 100+ tenants which are ASP.NET sites for each of our client. Each site has web.config file with its own connection string and other client specific settings. I want to make modifications in web.config file using PowerShell script. If I run Post Deployment Script in a Step, will it run for each tenant? Can I write relative path of web.config in my script like this?
[xml]$result = Get-Content \Web.config $httpErrorNode = $result.configuration.'system.webServer'.httpErrors.SetAttribute('Key','Value') $result.Save('\Web.config')