Skip to content

Commit e9ee7b9

Browse files
author
maddieclayton
committed
address comments
1 parent 1d18c5d commit e9ee7b9

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/ResourceManager/Profile/Commands.Profile/Default/GetAzureRmDefault.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ public class GetAzureRMDefaultCommand : AzureRMCmdlet
3737

3838
public override void ExecuteCmdlet()
3939
{
40-
if (Environment.GetEnvironmentVariable("ACC_CLOUD") != null)
41-
{
42-
throw new Exception("Default Resource Group cannot be set on CloudShell");
43-
}
44-
4540
IAzureContext context = AzureRmProfileProvider.Instance.Profile.DefaultContext;
4641
IResourceManagementClient client = AzureSession.Instance.ClientFactory.CreateCustomArmClient<ResourceManagementClient>(
4742
context.Environment.GetEndpointAsUri(AzureEnvironment.Endpoint.ResourceManager),

tools/AzureRM.Example.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ else
4545

4646
$FilteredCommands = %DEFAULTRGCOMMANDS%
4747

48-
if ($Env:ACC_ClOUD -eq $null)
48+
if ($Env:ACC_CLOUD -eq $null)
4949
{
5050
$FilteredCommands | ForEach-Object {
5151
$global:PSDefaultParameterValues.Add($_,

0 commit comments

Comments
 (0)