Skip to content

[Storage] merge the lastest change on master to storage branch #11223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 100 commits into from
Mar 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
b8504f6
Commit#10980
ThejaChoudary Feb 6, 2020
5546669
Second Commit#9895,#10422,##10482
ThejaChoudary Feb 6, 2020
9660aa4
revert 5546669bec11b63221b29819e3f21a496ced9f3f
ThejaChoudary Feb 6, 2020
d083142
Merge https://github.com/Azure/azure-powershell
ThejaChoudary Feb 7, 2020
aac1d2e
Adding #AddCustomHostNamesForSlot method after passing the slot name.
ThejaChoudary Feb 10, 2020
8acd7bc
Revert "Adding #AddCustomHostNamesForSlot method after passing the s…
ThejaChoudary Feb 10, 2020
1b1d642
Revert "Revert "Adding #AddCustomHostNamesForSlot method after passi…
ThejaChoudary Feb 10, 2020
9bdb145
Merge https://github.com/Azure/azure-powershell
ThejaChoudary Feb 10, 2020
4c44194
Revert "Adding #AddCustomHostNamesForSlot method after passing the s…
ThejaChoudary Feb 10, 2020
4e452a9
#After adding name to pass the slot name.
ThejaChoudary Feb 10, 2020
414e25d
Merge https://github.com/Azure/azure-powershell
ThejaChoudary Feb 11, 2020
126ab6f
#commit after adding slot as an optional parameter in AddCustomHostNa…
ThejaChoudary Feb 11, 2020
8c60d6f
#checking out the json files
ThejaChoudary Feb 11, 2020
61bad4c
#Changing Websiltes.sln file
ThejaChoudary Feb 11, 2020
1f81b3c
#commit -changes after review comments
ThejaChoudary Feb 12, 2020
6a24273
Adding Changelog
ThejaChoudary Feb 14, 2020
534fddd
Update the filter mechanism to use server side query
shamidt Feb 15, 2020
abdd1a0
Updated change log
shamidt Feb 15, 2020
9403d25
Update ChangeLog.md
hamidtirmizi Feb 15, 2020
5ea85e2
Add ResourceId related Tags cmdlets.
Grayer123 Feb 15, 2020
7e2b25e
Added update cmdlet to the mapping file.
Grayer123 Feb 15, 2020
b1c5a72
Updated the help related documents for tags.
Grayer123 Feb 18, 2020
02d2ba5
Modified tags related md file.
Grayer123 Feb 19, 2020
7e3434c
Minor changes to tag related md files.
Grayer123 Feb 19, 2020
4f2ae3d
Fix ScopeDeployment issue.
Grayer123 Feb 19, 2020
9dc6364
Merge master branch into feature branch and resolve conflicts.
Grayer123 Feb 19, 2020
88c8b9a
Modified Tags.csproj to remove unnecessary reference.
Grayer123 Feb 19, 2020
d960d7e
Remove default from the object.
Grayer123 Feb 19, 2020
1b9f439
Updated changelog and tag md file.
Grayer123 Feb 19, 2020
4f6fc8c
Record RG filter by tags tests
shamidt Feb 19, 2020
b3e0b0e
Address the pr review.
Grayer123 Feb 20, 2020
2380366
Re-record the tag related tests.
Grayer123 Feb 20, 2020
4a4466a
Removing client side filtering tests, since we no longer filter on th…
shamidt Feb 20, 2020
e0d5592
Address pr review.
Grayer123 Feb 20, 2020
441422c
Fix the indent for tagTest.ps1.
Grayer123 Feb 20, 2020
c3a4cc8
Update TagTest.ps1 to fix format issue.
Grayer123 Feb 20, 2020
5cd328a
Add tags display format
shamidt Feb 21, 2020
b7fce75
[Storage] Add warning message for table type change in the future rel…
blueww Feb 21, 2020
2aa7851
Merge pull request #11159 from wastoresh/warntable
wyunchi-ms Feb 21, 2020
79632df
Updated examples on the help page
shamidt Feb 21, 2020
ab15503
Updated the md file for tags.
Grayer123 Feb 21, 2020
1a61a26
Merge branch 'feature/tagApi-2019-10-01' of https://github.com/Grayer…
Grayer123 Feb 21, 2020
7d0fe7f
fix #10849
dingmeng-xue Feb 22, 2020
2c733c4
update changelog
dingmeng-xue Feb 22, 2020
f85c83b
fix #11167
dingmeng-xue Feb 22, 2020
b9358e4
update changelog
dingmeng-xue Feb 23, 2020
5276f00
Merge pull request #11155 from Azure/tagsOnGetAzResource
wyunchi-ms Feb 23, 2020
bbaa2f5
Merge pull request #11042 from ThejaChoudary/master
VeryEarly Feb 23, 2020
a3249eb
Resolve conflict
shamidt Feb 24, 2020
ed5b166
Update ChangeLog.md
shamidt Feb 24, 2020
2698280
Update ChangeLog.md
shamidt Feb 24, 2020
9e0646c
Update ChangeLog.md
shamidt Feb 24, 2020
d43691a
Update ChangeLog.md
shamidt Feb 24, 2020
455d713
Update ChangeLog.md
shamidt Feb 24, 2020
393c65d
Merge branch 'master' into rgTagFilterOnServer
hamidtirmizi Feb 24, 2020
bb4dd29
Add support to manage device parent-child relationship.
anusapan Feb 25, 2020
5114766
Tasks #10422,#9895,#10482,#10794 changes
Kotasudhakarreddy Feb 25, 2020
66bf3b8
Add Survey Url to Send-Feedback & Resolve-Error
Feb 25, 2020
22fdde0
add devportal support
solankisamir Jan 31, 2020
dd44b24
Add breaking change attributes for future changes to policy cmdlets
mentat9 Feb 25, 2020
6e82f55
Update changelog
mentat9 Feb 25, 2020
5737402
Address pr comments.
Grayer123 Feb 26, 2020
e58eab1
Fix a typo error.
Grayer123 Feb 26, 2020
d13c8e4
Merge pull request #11128 from Azure/rgTagFilterOnServer
wyunchi-ms Feb 26, 2020
1751162
Merge master to feature branch.
Grayer123 Feb 26, 2020
3adcf7f
Merge branch 'master' into master
wyunchi-ms Feb 26, 2020
1de6d17
Merge pull request #11190 from mentat9/master
wyunchi-ms Feb 26, 2020
45f2dd0
Merge pull request #11186 from anusapan/iot-device-children
wyunchi-ms Feb 26, 2020
8167914
Merge pull request #11053 from msJinLei/feedback
wyunchi-ms Feb 26, 2020
a220dc1
Merge branch 'master' into fix-resources
wyunchi-ms Feb 26, 2020
e15e000
Merge pull request #11189 from Kotasudhakarreddy/master
wyunchi-ms Feb 26, 2020
4df13de
Updating the 'Publish-AzWebApp' help document with Force parameter.
ThejaChoudary Feb 26, 2020
f9aaa95
updated help text
Feb 26, 2020
aa0dcfb
[Storage] Support allowProtectedAppendWrites in ImmutabilityPolicy
blueww Feb 19, 2020
2425b0c
Fix help issues in Resources.
Grayer123 Feb 26, 2020
64af8be
Make sure CmdletBase produce correct tenant-level resource id.
Feb 26, 2020
f34f740
Typo
Feb 26, 2020
3cc127e
Update ChangeLog
Feb 26, 2020
8b1f53d
Use get-azcontext to get the default subscriptionId.
Grayer123 Feb 27, 2020
1d4e1e1
Merge pull request #11196 from ThejaChoudary/master
wyunchi-ms Feb 27, 2020
9dde57e
Merge pull request #11197 from MabOneSdk/users/sarath/help-text-update
wyunchi-ms Feb 27, 2020
992e902
Merge pull request #11199 from Grayer123/bugfix/invokeAction
wyunchi-ms Feb 27, 2020
2bbb0bb
Merge pull request #11166 from dingmeng-xue/fix-resources
wyunchi-ms Feb 27, 2020
d0dca3d
Merge pull request #11137 from Grayer123/feature/tagApi-2019-10-01
isra-fel Feb 27, 2020
b09d44c
Merge pull request #11195 from wastoresh/append
wyunchi-ms Feb 27, 2020
b26e6bc
Fix assignment error
Feb 27, 2020
5a022bb
Add breaking change attributes for upcoming cmdlet changes
mentat9 Feb 27, 2020
da63fec
Bug Fix: resolve resources test coverage #5216, and update ResourceMa…
Grayer123 Feb 27, 2020
dc8753e
Merge pull request #11200 from hjhhh3000vitae/tenantLevelResourceId
wyunchi-ms Feb 28, 2020
c334b9b
Merge pull request #11207 from mentat9/master
wyunchi-ms Feb 28, 2020
c326b6e
Merge pull request #11208 from Grayer123/bugfix/testcoverage
wyunchi-ms Feb 28, 2020
ba5648b
Change default parameterset
dingmeng-xue Feb 28, 2020
3eba888
update changelog.md
dingmeng-xue Feb 28, 2020
fd6a671
exclude breaking change issue
dingmeng-xue Feb 28, 2020
1773f90
Removed Verbose
sguitardude Feb 28, 2020
b5b8235
Delete file due to incorrect commit
dingmeng-xue Mar 1, 2020
14b8d7e
Merge pull request #11214 from sguitardude/patch-1
wyunchi-ms Mar 1, 2020
d90eae4
Merge pull request #11211 from dingmeng-xue/fix-resources
wyunchi-ms Mar 1, 2020
78826ce
Merge pull request #11185 from solankisamir/add_devportalsupport
wyunchi-ms Mar 1, 2020
2098d23
fix merge conflicts
blueww Mar 2, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
* Az.IotHub added cmdlets to support to manage devices.
* Az.SqlVirtualMachine added cmdlets for Availability Group Listener.

#### Az.Resource
* Fixed bug preventing correct tenant-level resource id generation.
* Fixed typo.

#### Az.Accounts
* Added SubscriptionId, TenantId, and execution time into data of client side telemetry

Expand Down
3,814 changes: 0 additions & 3,814 deletions VirtualMachineCustomScriptExtensionManagedDisk.json

This file was deleted.

35 changes: 35 additions & 0 deletions src/Accounts/Accounts.Test/ErrorResolutionScenarioTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using Microsoft.WindowsAzure.Commands.ScenarioTest;
using Xunit;
using Xunit.Abstractions;

namespace Microsoft.Azure.Commands.Profile.Test
{
public class ErrorResolutionScenarioTests : AccountsTestRunner
{
public ErrorResolutionScenarioTests(ITestOutputHelper output)
: base(output)
{
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void WriteInformationInResolveError()
{
TestRunner.RunTestScript("Test-WriteInformationInResolveError");
}
}
}
26 changes: 26 additions & 0 deletions src/Accounts/Accounts.Test/ErrorResolutionScenarioTests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# -----------------------------------------------------------------------------------
#
# Copyright Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ----------------------------------------------------------------------------------

<#
.SYNOPSIS
Tests cmdlets surrounding default resource group
#>

function Test-WriteInformationInResolveError
{
Assert-Throws { Connect-AzAccount -Wrong }
$err = Resolve-AzError -Last
Assert-AreEqual 1 $err.length
Assert-AreEqual "Microsoft.Azure.Commands.Profile.Errors.AzureExceptionRecord" $err[0].GetType().FullName
}
19 changes: 8 additions & 11 deletions src/Accounts/Accounts.Test/ErrorResolutionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void HandlesExceptionError()
var response = new HttpResponseMessage(HttpStatusCode.BadRequest);
var hyakException = new TestHyakException("exception message", CloudHttpRequestErrorInfo.Create(request), CloudHttpResponseErrorInfo.Create(response))
{
Error = new Hyak.Common.CloudError { Code="HyakCode", Message="HyakError"}
Error = new Hyak.Common.CloudError { Code = "HyakCode", Message = "HyakError" }
};

var autorestException = new Microsoft.Rest.Azure.CloudException("exception message")
Expand All @@ -79,16 +79,15 @@ public void HandlesExceptionError()

var cmdlet = new ResolveError
{
Error = new []
Error = new[]
{
new ErrorRecord(new Exception("exception message"), "errorCode", ErrorCategory.AuthenticationError, this),
new ErrorRecord(hyakException, "errorCode", ErrorCategory.ConnectionError, this),
new ErrorRecord(autorestException , "errorCode", ErrorCategory.InvalidOperation, this),
},
CommandRuntime = runtime
};

cmdlet.ExecuteCmdlet();
Assert.Throws<NotImplementedException>(() => cmdlet.ExecuteCmdlet());
Assert.NotNull(runtime.OutputPipeline);
Assert.Equal(3, runtime.OutputPipeline.Count);
var errorResult = runtime.OutputPipeline[0] as AzureExceptionRecord;
Expand Down Expand Up @@ -130,9 +129,9 @@ public void HandlesNullValuesInArmExceptions()
{
var runtime = new MockCommandRuntime();
var hyakException = new TestHyakException(null, null, null);

var autorestException = new Microsoft.Rest.Azure.CloudException();

var cmdlet = new ResolveError
{
Error = new[]
Expand All @@ -143,8 +142,8 @@ public void HandlesNullValuesInArmExceptions()
},
CommandRuntime = runtime
};
cmdlet.ExecuteCmdlet();

Assert.Throws<NotImplementedException>(() => cmdlet.ExecuteCmdlet());
Assert.NotNull(runtime.OutputPipeline);
Assert.Equal(3, runtime.OutputPipeline.Count);
var errorResult = runtime.OutputPipeline[0] as AzureExceptionRecord;
Expand Down Expand Up @@ -173,7 +172,7 @@ public void LastParameterFindsLastError()
var cmdlet = new ResolveError { CommandRuntime = mock };
var message = "RuntimeErrorMessage";
var exception = new Exception(message);
cmdlet.ExecuteCmdletWithExceptionInPipeline<AzureErrorRecord>("Resolve-AzureRmError", exception, new KeyValuePair<string, object>("Last", null ) );
cmdlet.ExecuteCmdletWithExceptionInPipeline<AzureErrorRecord>("Resolve-AzureRmError", exception, new KeyValuePair<string, object>("Last", null));
Assert.NotNull(mock.ErrorStream);
Assert.Single(mock.ErrorStream);
Assert.NotNull(mock.OutputPipeline);
Expand All @@ -183,8 +182,6 @@ public void LastParameterFindsLastError()
Assert.NotNull(record.Exception);
Assert.Equal(typeof(Exception), record.Exception.GetType());
Assert.Equal(message, record.Message);


}
}
}
30 changes: 0 additions & 30 deletions src/Accounts/Accounts.Test/SendFeedbackTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,35 +58,5 @@ public void SendFeedbackFailsInNonInteractive()
cmdlet.InvokeBeginProcessing();
});
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void CanSerializeSimpleFeedbackPayloadIntoProperForm()
{
var payload = new PSAzureFeedback
{
ModuleName = "Module",
ModuleVersion = "1.0.0",
SubscriptionId = Guid.NewGuid().ToString(),
TenantId = Guid.NewGuid().ToString(),
Environment = "AzureCloud",
Recommendation = 10,
PositiveComments = "Positive",
NegativeComments = "Negative",
Email = "[email protected]"
};

var serializedPayload = MetricHelper.SerializeCustomEventPayload(payload);

Assert.Equal(payload.ModuleName, serializedPayload["moduleName"]);
Assert.Equal(payload.ModuleVersion, serializedPayload["moduleVersion"]);
Assert.Equal(payload.SubscriptionId.ToString(), serializedPayload["subscriptionId"]);
Assert.Equal(payload.TenantId.ToString(), serializedPayload["tenantId"]);
Assert.Equal(payload.Environment, serializedPayload["environment"]);
Assert.Equal(payload.Recommendation.ToString(), serializedPayload["recommendation"]);
Assert.Equal(payload.PositiveComments, serializedPayload["positiveComments"]);
Assert.Equal(payload.NegativeComments, serializedPayload["negativeComments"]);
Assert.Equal(payload.Email, serializedPayload["email"]);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"Entries": [
{
"RequestUri": "/tenants?api-version=2016-06-01",
"EncodedRequestUri": "L3RlbmFudHM/YXBpLXZlcnNpb249MjAxNi0wNi0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
"5b28f448-239c-4ac6-ab5c-d706ee4ec51e"
],
"Accept-Language": [
"en-US"
],
"User-Agent": [
"FxVersion/4.6.28207.03",
"OSName/Windows",
"OSVersion/Microsoft.Windows.10.0.18363.",
"Microsoft.Azure.Internal.Subscriptions.SubscriptionClient/1.3.7"
]
},
"ResponseHeaders": {
"Cache-Control": [
"no-cache"
],
"Pragma": [
"no-cache"
],
"x-ms-ratelimit-remaining-tenant-reads": [
"11998"
],
"x-ms-request-id": [
"7762c02a-4ba5-43be-a37c-a6c802f5585f"
],
"x-ms-correlation-request-id": [
"7762c02a-4ba5-43be-a37c-a6c802f5585f"
],
"x-ms-routing-request-id": [
"EASTASIA:20200213T030718Z:7762c02a-4ba5-43be-a37c-a6c802f5585f"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-Content-Type-Options": [
"nosniff"
],
"Date": [
"Thu, 13 Feb 2020 03:07:18 GMT"
],
"Content-Type": [
"application/json; charset=utf-8"
],
"Expires": [
"-1"
],
"Content-Length": [
"116"
]
},
"ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/tenants/54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\",\r\n \"tenantId\": \"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a\"\r\n }\r\n ]\r\n}",
"StatusCode": 200
},
{
"RequestUri": "/subscriptions?api-version=2016-06-01",
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnM/YXBpLXZlcnNpb249MjAxNi0wNi0wMQ==",
"RequestMethod": "GET",
"RequestBody": "",
"RequestHeaders": {
"x-ms-client-request-id": [
"b5c0f48f-43ab-4f48-a1e6-84b4a1892524"
],
"Accept-Language": [
"en-US"
],
"User-Agent": [
"FxVersion/4.6.28207.03",
"OSName/Windows",
"OSVersion/Microsoft.Windows.10.0.18363.",
"Microsoft.Azure.Internal.Subscriptions.SubscriptionClient/1.3.7"
]
},
"ResponseHeaders": {
"Cache-Control": [
"no-cache"
],
"Pragma": [
"no-cache"
],
"x-ms-ratelimit-remaining-tenant-reads": [
"11999"
],
"x-ms-request-id": [
"fe449bd7-d1f4-452d-9a58-84fee8efa1b7"
],
"x-ms-correlation-request-id": [
"fe449bd7-d1f4-452d-9a58-84fee8efa1b7"
],
"x-ms-routing-request-id": [
"EASTASIA:20200213T030719Z:fe449bd7-d1f4-452d-9a58-84fee8efa1b7"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
"X-Content-Type-Options": [
"nosniff"
],
"Date": [
"Thu, 13 Feb 2020 03:07:18 GMT"
],
"Content-Type": [
"application/json; charset=utf-8"
],
"Expires": [
"-1"
],
"Content-Length": [
"332"
]
},
"ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590\",\r\n \"authorizationSource\": \"RoleBased\",\r\n \"subscriptionId\": \"0b1f6471-1bf0-4dda-aec3-cb9272f09590\",\r\n \"displayName\": \"AzureSDKTest\",\r\n \"state\": \"Enabled\",\r\n \"subscriptionPolicies\": {\r\n \"locationPlacementId\": \"Internal_2014-09-01\",\r\n \"quotaId\": \"Internal_2014-09-01\",\r\n \"spendingLimit\": \"Off\"\r\n }\r\n }\r\n ]\r\n}",
"StatusCode": 200
}
],
"Names": {},
"Variables": {
"SubscriptionId": "0b1f6471-1bf0-4dda-aec3-cb9272f09590"
}
}
3 changes: 2 additions & 1 deletion src/Accounts/Accounts/AzureRmAlias/Mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2023,7 +2023,8 @@
"Set-AzADUser": "Set-AzureRmADUser",
"Remove-AzTag": "Remove-AzureRmTag",
"Get-AzTag": "Get-AzureRmTag",
"New-AzTag": "New-AzureRmTag"
"New-AzTag": "New-AzureRmTag",
"Update-AzTag": "Update-AzureRmTag"
},
"Az.Scheduler": {
"Disable-AzSchedulerJobCollection": "Disable-AzureRmSchedulerJobCollection",
Expand Down
2 changes: 2 additions & 0 deletions src/Accounts/Accounts/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

## Version 1.7.2
* Added SubscriptionId, TenantId, and execution time into data of client side telemetry
* Display Azure Powershell survey url to Resolve-Error [#11020](https://github.com/Azure/azure-powershell/issues/11020).
* Open AzurePowershell survey page in Send-Feedback [#11021](https://github.com/Azure/azure-powershell/issues/11021).

## Version 1.7.1
* Disable context auto saving when AzureRmContext.json not available
Expand Down
16 changes: 11 additions & 5 deletions src/Accounts/Accounts/Common/AzureProfileConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,22 @@
// limitations under the License.
// ----------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Azure.Commands.Profile.Properties;

namespace Microsoft.Azure.Commands.Profile.Common
{
public static class AzureProfileConstants
{
public const string AzureAutosaveVariable = "Azure_Profile_Autosave";

public const string AzureSurveyUrl = "https://aka.ms/azpssurvey?Q_CHL=FEEDBACK";

public static readonly string AzurePowerShellFeedbackMessage = string.Format(Resources.AzurePowerShellFeedback, AzureProfileConstants.AzureSurveyUrl);

public static readonly string AzurePowerShellFeedbackQuestion = string.Format(Resources.SendFeedbackOpenLinkAutomatically, AzureProfileConstants.AzureSurveyUrl);

public static readonly string AzurePowerShellFeedbackManually = string.Format(Resources.SendFeedbackOpenLinkManually, AzureProfileConstants.AzureSurveyUrl);

public static readonly string AzurePowerShellFeedbackWarning = string.Format(Resources.DefaultBrowserOpenFailure, AzureProfileConstants.AzureSurveyUrl);
}
}
6 changes: 6 additions & 0 deletions src/Accounts/Accounts/Errors/ResolveError.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
using System.Linq;
using System.Management.Automation;
using Microsoft.Azure.Commands.Common.Authentication.Abstractions;
using Microsoft.Azure.Commands.Profile.Common;
using Microsoft.Azure.Commands.Profile.Properties;
using System.Collections;
using Microsoft.Azure.Commands.ResourceManager.Common;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
Expand Down Expand Up @@ -79,6 +81,10 @@ public override void ExecuteCmdlet()
HandleError(record);
}
}
var informationMessage = new HostInformationMessage();
informationMessage.Message = $"{Environment.NewLine}{AzureProfileConstants.AzurePowerShellFeedbackMessage}{Environment.NewLine}";
informationMessage.NoNewLine = false;
WriteInformation(informationMessage, new string[] { "PSHOST" });
}

private IEnumerable<ErrorRecord> GetErrorVariable()
Expand Down
Loading