We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fddf41 commit 487a2bdCopy full SHA for 487a2bd
src/ResourceManager/Profile/Commands.Profile/Profile/SelectAzureRMProfile.cs
@@ -46,6 +46,11 @@ public override void ExecuteCmdlet()
46
{
47
if (!string.IsNullOrEmpty(Path))
48
49
+ if(!Common.Authentication.AzureSession.DataStore.FileExists(Path))
50
+ {
51
+ throw new PSArgumentException(string.Format("Cannot find file '{0}'", Path));
52
+ }
53
+
54
AzureRmProfileProvider.Instance.Profile = new AzureRMProfile(Path);
55
}
56
else
0 commit comments