Skip to content

Deprecate SubscriptionDataFile #33

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 4 commits into from
Dec 5, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 3 additions & 1 deletion src/Common/Commands.Common/Common/SubscriptionCmdletBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

using System.Management.Automation;
using Microsoft.WindowsAzure.Commands.Common;
using Microsoft.WindowsAzure.Commands.Common.Properties;
using Microsoft.WindowsAzure.Commands.Utilities.Common;

namespace Microsoft.WindowsAzure.Commands.Utilities.Profile
Expand All @@ -25,7 +26,7 @@ namespace Microsoft.WindowsAzure.Commands.Utilities.Profile
/// </summary>
public abstract class SubscriptionCmdletBase : AzurePSCmdlet
{
[Parameter(Mandatory = false, HelpMessage = "File storing subscription data, if not set uses default.")]
[Parameter(Mandatory = false, HelpMessage = "[Deprecated]: File storing subscription data, if not set uses default.")]
public string SubscriptionDataFile { get; set; }

private readonly bool _saveProfile;
Expand All @@ -40,6 +41,7 @@ protected override void BeginProcessing()
if (!string.IsNullOrEmpty(SubscriptionDataFile))
{
ProfileClient = new ProfileClient(SubscriptionDataFile);
WriteWarning(Resources.SubscriptionDataFileDeprecated);
}
else
{
Expand Down
9 changes: 9 additions & 0 deletions src/Common/Commands.Common/Properties/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/Common/Commands.Common/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1573,4 +1573,7 @@ use and privacy statement at &lt;url&gt; and (c) agree to sharing my contact inf
<data name="RemoveProfileMessage" xml:space="preserve">
<value>Removing the Azure profile</value>
</data>
<data name="SubscriptionDataFileDeprecated" xml:space="preserve">
<value>The SubscriptionDataFile parameter is deprecated. This parameter will be removed in a future release. See https://github.com/Azure/azure-powershell/wiki/Proposed-Design-Stateless-Azure-Profile for a description of the upcoming mechanism for providing alternate sources of subscription information.</value>
</data>
</root>
Loading