Azure-Samples / azuresandbox

Stand up an Azure sandbox environment for accelerating your projects in an hour.
MIT License
67 stars 33 forks source link

Disable PowerShell autosaving context #56

Open doherty100 opened 4 months ago

doherty100 commented 4 months ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [ ] bug report -> please search issues before submitting
- [ X ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Provision #AzureSandbox

Any log messages given by the failure

WARNING: The provided service principal secret or certifcate password will be included in the 'keystore.cache' file found in the user profile ( /home/rdoherty/.Azure ). Please ensure that this directory has appropriate protections.

Expected/desired behavior

Remediate this warning by disabling autosaving of context in PowerShell scripts.

OS and Version?

N/A

Versions

AzureSandbox v2.10.1

Mention any other details that might be useful

This needs to be implemented in all PowerShell scripts that are used in the bootstrapping process.