Forum Discussion
WARNING: The provided service principal secret will be included in the 'AzureRmContext.json' file
DK wrote:I added everyone with full control permissions to .\Azure.
That is pretty much the opposite of the meaning of the Warning:
DK wrote:WARNING: The provided service principal secret will be included in the 'AzureRmContext.json' file found in the user
profile ( C:\Users\username01\.Azure ). Please ensure that this directory has appropriate protections.
You are apparently connecting to Azure with Connect-AzAccount using a Service Principal. The Secret (which equals to a password) is getting saved as plaintext in the user's profile. If you add Everyone with Full Control permissions to that folder, you are not protecting it. Just make sure that no other users can access that folder. The default user profile permissions should be sufficient for that.
You can disable the saving of credentials for this PowerShell session using
Disable-AzContextAutosave -Scope Process
Disable-AzContextAutosave​
to disable it for the current user.