Skip to content

Commit

Permalink
Merge pull request #33 from markcowl/deprecate
Browse files Browse the repository at this point in the history
Deprecate SubscriptionDataFile
  • Loading branch information
ogail committed Dec 5, 2014
2 parents bb51d60 + 6223788 commit 723176f
Show file tree
Hide file tree
Showing 4 changed files with 4,092 additions and 4,053 deletions.
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

0 comments on commit 723176f

Please sign in to comment.