I have a running windows container where I have hosted a website on IIS and publsihed through port 80. I need to set Application pool identity in my IIS application pool. Since the website is hosted in my container machine, I need to set identity of an admin user who have access.
$apppool = get-Item IIS:\AppPools\MyAppPool
$apppool.ProcessModel.IdentityType = "SpecificUser"
$apppool.ProcessModel.userName = "Administrator"
$apppool.ProcessModel.password = "Password"
$apppool | Set-Item
I have changed the password of user "Administrator" in my container machine as
net user Administrator Password
I get below error "HTTP Error 503. The service is unavailable"
Since it is a container machine I am not sure how to provide user access. Please assist.
UPDATE: I tried creating a new user and assigning him to local admin group. With this user now I am able to browse the site.
Issue is now, when I hit my rest-api service it doesnt work as required. Is it anything to do with inetrnet access in container machine ? If yes, how do we enable internet access in container machine ?