Can you shed more light on what you mean by “executing the pulumi stack through Az DevOps from docker method?”
If you can point to a document, I may be able to add some context around how to pass the refresh option.
Pulumi supports a task extension for Azure DevOps:
https://www.pulumi.com/docs/guides/continuous-delivery/azure-devops/
To which you can pass args such as
--refresh