Skip to content

Instantly share code, notes, and snippets.

@NenoLoje
Created April 24, 2024 11:59
Show Gist options
  • Save NenoLoje/e3b4bc0cffd1e96e273ae02f40579a7b to your computer and use it in GitHub Desktop.
Save NenoLoje/e3b4bc0cffd1e96e273ae02f40579a7b to your computer and use it in GitHub Desktop.
Binding syntax for IISWebAppManagementOnMachineGroup@0
steps:
- task: IISWebAppManagementOnMachineGroup@0
displayName: 'Configure IIS'
inputs:
EnableIIS: true
IISDeploymentType: 'IISWebsite'
ActionIISWebsite: 'CreateOrUpdateWebsite'
WebsiteName: '$(iisWebsite)'
WebsitePhysicalPath: '%SystemDrive%\inetpub\wwwroot\$(iisWebsite)'
WebsitePhysicalPathAuth: 'WebsiteUserPassThrough'
AddBinding: true
Bindings: |
{
"bindings":[
{
"protocol":"http",
"ipAddress":"All Unassigned",
"port":"80",
"hostname":"",
"sslThumbprint":"",
"sniFlag":false
}
]
}
CreateOrUpdateAppPoolForWebsite: true
AppPoolNameForWebsite: '$(iisAppPool)'
DotNetVersionForWebsite: 'No Managed Code'
PipeLineModeForWebsite: 'Integrated'
AppPoolIdentityForWebsite: 'ApplicationPoolIdentity'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment