You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs
+28-5Lines changed: 28 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -125,15 +125,15 @@ public class ConnectAzureRmAccountCommand : AzureContextModificationCmdlet, IMod
125
125
[Alias("MSI","ManagedService")]
126
126
publicSwitchParameterIdentity{get;set;}
127
127
128
-
[Parameter(ParameterSetName=ManagedServiceParameterSet,Mandatory=false,HelpMessage="Port number for managed service login.")]
128
+
[Parameter(ParameterSetName=ManagedServiceParameterSet,Mandatory=false,HelpMessage="Obsolete. To use customized MSI endpoint, please set environment variable MSI_ENDPOINT, e.g. \"http://localhost:50342/oauth2/token\". Port number for managed service login.")]
129
129
[PSDefaultValue(Help="50342",Value=50342)]
130
130
publicintManagedServicePort{get;set;}=50342;
131
131
132
-
[Parameter(ParameterSetName=ManagedServiceParameterSet,Mandatory=false,HelpMessage="Host name for managed service login.")]
132
+
[Parameter(ParameterSetName=ManagedServiceParameterSet,Mandatory=false,HelpMessage="Obsolete. To use customized MSI endpoint, please set environment variable MSI_ENDPOINT, e.g. \"http://localhost:50342/oauth2/token\". Host name for managed service login.")]
[Parameter(ParameterSetName=ManagedServiceParameterSet,Mandatory=false,HelpMessage="Secret, used for some kinds of managed service login.")]
136
+
[Parameter(ParameterSetName=ManagedServiceParameterSet,Mandatory=false,HelpMessage="Obsolete. To use customized MSI secret, please set environment variable MSI_SECRET. Secret, used for some kinds of managed service login.")]
137
137
[ValidateNotNullOrEmpty]
138
138
publicSecureStringManagedServiceSecret{get;set;}
139
139
@@ -295,6 +295,12 @@ public override void ExecuteCmdlet()
295
295
Path="/oauth2/token"
296
296
};
297
297
298
+
//ManagedServiceHostName/ManagedServicePort/ManagedServiceSecret are obsolete, should be removed in next major release
<value>The parameters ManagedServiceHostName/ManagedServicePort/ManagedServiceSecret are obsolete. For ManagedServiceHostName/ManagedServicePort, please set environment variable MSI_ENDPOINT, e.g. "http://localhost:50342/oauth2/token". For ManagedServiceSecret, please set environment variable MSI_SECRET.</value>
Obsolete. To use customized MSI endpoint, please set environment variable MSI_ENDPOINT, e.g. "http://localhost:50342/oauth2/token". Host name for the managed service.
Obsolete. To use customized MSI endpoint, please set environment variable MSI_ENDPOINT, e.g. "http://localhost:50342/oauth2/token".Port number for the managed service.
0 commit comments