Skip to content

Update NetStandard PowerShell to use ~/.azure directory by default for context persistence #6000

@jianyunt

Description

@jianyunt

Thank you @alexandair for reporting this issue.On Linux bash cloudshell, we are seeing Windows\Azure\Powershell folder containing info for whether enable or disable datacollection. I am seeing a few issues:

  1. As AzureRM modules are supported on CoreCLR now, we install them on PowerShell core. Thus "Windows" word is not applicable on Linux. Suggestion: remove it.
  2. "Powershell": should be "PowerShell"?
  3. AzurePSDataCollectionProfile.json exists in different locations for different users on bash cloudshell and pwsh

From Alex: On bash cloudshell,

psconfeu@Azure:~$ dir
clouddrive Windows\Azure\Powershell

It also repros by Danny too. The file exists under Home for Linux and Modules folder for Windows (I guess).
image

On my cloudshell, Windows\Azure\Powershell gets created under .config.

image

Description

Script/Steps for Reproduction

  • go to portal.azure.com portal
  • click on cloudshell icon to launch cloudshell and select bash
  • type pwsh

Module Version

image

Environment Data

PS Azure:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.1.0-preview.1
PSEdition                      Core
GitCommitId                    v6.1.0-preview.1
OS                             Linux 4.4.0-119-generic #143-Ubuntu SMP Mon Apr 2 16:08:24 UTC 2018
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Debug Output

It looks like `Windows Azure Powershell is defined in here

This place is for errors logging:

public static string ProfileDirectory = Path.Combine(

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions