Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set App Pool -> recycling.logEventOnRecycle not working using additional appcmd.exe commands #1198

Open
xgigiotto opened this issue Oct 2, 2023 · 0 comments

Comments

@xgigiotto
Copy link

Hello,

I'm trying to set the logEventOnRecycle property of my IIS App Pool into my YAML Pipeline as for the snippet here below:

- task: IISWebAppMgmt@3
  displayName: 'Create Web Site'
  inputs:
    machinesList: ...
    AdminUserName: ...
    AdminPassword: ...
    WinRMProtocol: 'Http'
    IISDeploymentType: 'IISWebsite'
    ActionIISWebsite: 'CreateOrUpdateWebsite'
    WebsiteName: ...
    WebsitePhysicalPath: ...
    WebsitePhysicalPathAuth: 'WebsiteUserPassThrough'
    AddBinding: true
    CreateOrUpdateAppPoolForWebsite: true
    Protocol: 'http'
    IPAddress: 'All Unassigned'
    Port: ...
    AppPoolNameForWebsite: ...
    DotNetVersionForWebsite: 'v4.0'
    PipeLineModeForWebsite: 'Integrated'
    AppPoolIdentityForWebsite: 'SpecificUser'
    AppPoolUsernameForWebsite: MyAppPool
    AppPoolPasswordForWebsite: ...
    AppCmdCommands: >
      set apppool MyAppPool
      /processModel.idleTimeout:00:00:00
      /recycling.periodicRestart.time:00:00:00
      /recycling.periodicRestart.privateMemory:2097152
      /recycling.logEventOnRecycle:Time,Requests
      /cpu.limit:80000
      /cpu.resetInterval:00:05:00
      /cpu.action:Throttle

Applying more than 1 value (e.g.: /recycling.logEventOnRecycle:Time,Requests) I'm receiving the following error message running the task:
##[error]Detected characters in arguments that may not be executed correctly by the shell. Please escape special characters using backtick (`). More information is available here: <https://aka.ms/ado/75787>
Applying only 1 value, the task works fine.

I've tried different ways to escape the "comma", which I guess could be the issue, but without success.
Do you have any idea on how to fix it?

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant