By default, Sitecore asks you to provide your admin password to create an elevated session to run powershell. This won’t work in XM Cloud, so we have to modify this behavior. If you are using the SXA Starter, you can do the following:
In the .env file at the project root, add the following line:
SITECORE_SPE_ELEVATION=Confirm
In the docker-compose.yml file in the project root, add the following line at this level: services/cm/environment
SITECORE_SPE_ELEVATION: ${SITECORE_SPE_ELEVATION}
Instead of using confirm, you can use a few others. Read more about it here:
https://doc.sitecore.com/xmc/en/developers/xm-cloud/environment-variables.html
Once you have made the changes, be sure to Docker down/up to have them take affect.
Happy Xmclouding!