The fileTransformationsUtility used by IISWebAppDeploymentOnMachineGroup@0 can be used in a modern yaml based pipeline which does not set the classic Release.Stage variable to anything. It sets Environment.Name instead. This lib should be updated to support both variables.
Source code line: https://github.com/microsoft/azure-pipelines-tasks-common-packages/blob/main/common-npm-packages/webdeployment-common/fileTransformationsUtility.ts#L76