Skip to content
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

Fix badly named cmdlets in Profile and Keyvault #1084

Merged
merged 2 commits into from
Oct 8, 2015
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
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace Microsoft.Azure.Commands.KeyVault
/// 4 .Create a HSM or software key by importing key material with given key
/// attributes
/// </summary>
[Cmdlet(VerbsCommon.Add, "AzureRmKeyVaultKey",
[Cmdlet(VerbsCommon.Add, "AzureKeyVaultKey",
DefaultParameterSetName = CreateParameterSet,
HelpUri = Constants.KeyVaultHelpUri)]
[OutputType(typeof(KeyBundle))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.KeyVault
/// <summary>
/// Requests that a backup of the specified key be downloaded and stored to a file
/// </summary>
[Cmdlet(VerbsData.Backup, "AzureRmKeyVaultKey", HelpUri = Constants.KeyVaultHelpUri)]
[Cmdlet(VerbsData.Backup, "AzureKeyVaultKey", HelpUri = Constants.KeyVaultHelpUri)]
[OutputType(typeof(String))]
public class BackupAzureKeyVaultKey : KeyVaultCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

namespace Microsoft.Azure.Commands.KeyVault
{
[Cmdlet(VerbsCommon.Get, "AzureRmKeyVaultKey",
[Cmdlet(VerbsCommon.Get, "AzureKeyVaultKey",
DefaultParameterSetName = ByVaultNameParameterSet,
HelpUri = Constants.KeyVaultHelpUri)]
[OutputType(typeof(List<KeyIdentityItem>), typeof(KeyBundle))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

namespace Microsoft.Azure.Commands.KeyVault
{
[Cmdlet(VerbsCommon.Get, "AzureRmKeyVaultSecret",
[Cmdlet(VerbsCommon.Get, "AzureKeyVaultSecret",
DefaultParameterSetName = ByVaultNameParameterSet,
HelpUri = Constants.KeyVaultHelpUri)]
[OutputType(typeof(List<SecretIdentityItem>), typeof(Secret))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

namespace Microsoft.Azure.Commands.KeyVault
{
[Cmdlet(VerbsCommon.Remove, "AzureRmKeyVaultKey",
[Cmdlet(VerbsCommon.Remove, "AzureKeyVaultKey",
SupportsShouldProcess = true,
ConfirmImpact = ConfirmImpact.High,
HelpUri = Constants.KeyVaultHelpUri)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

namespace Microsoft.Azure.Commands.KeyVault
{
[Cmdlet(VerbsCommon.Remove, "AzureRmKeyVaultSecret",
[Cmdlet(VerbsCommon.Remove, "AzureKeyVaultSecret",
SupportsShouldProcess = true,
ConfirmImpact = ConfirmImpact.High,
HelpUri = Constants.KeyVaultHelpUri)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.KeyVault
/// <summary>
/// Restores the backup key into a vault
/// </summary>
[Cmdlet(VerbsData.Restore, "AzureRmKeyVaultKey", HelpUri = Constants.KeyVaultHelpUri)]
[Cmdlet(VerbsData.Restore, "AzureKeyVaultKey", HelpUri = Constants.KeyVaultHelpUri)]
[OutputType(typeof(KeyBundle))]
public class RestoreAzureKeyVaultKey : KeyVaultCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.KeyVault
/// Update attribute of a key vault key.
/// </summary>
[Alias("Set-AzureKeyVaultKey")]
[Cmdlet(VerbsCommon.Set, "AzureRmKeyVaultKeyAttribute", HelpUri = Constants.KeyVaultHelpUri)]
[Cmdlet(VerbsCommon.Set, "AzureKeyVaultKeyAttribute", HelpUri = Constants.KeyVaultHelpUri)]
[OutputType(typeof(KeyBundle))]
public class SetAzureKeyVaultKeyAttribute : KeyVaultCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

namespace Microsoft.Azure.Commands.KeyVault
{
[Cmdlet(VerbsCommon.Set, "AzureRmKeyVaultSecret", HelpUri = Constants.KeyVaultHelpUri)]
[Cmdlet(VerbsCommon.Set, "AzureKeyVaultSecret", HelpUri = Constants.KeyVaultHelpUri)]
[OutputType(typeof(Secret))]
public class SetAzureKeyVaultSecret : KeyVaultCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

namespace Microsoft.Azure.Commands.KeyVault
{
[Cmdlet(VerbsCommon.Set, "AzureRmKeyVaultSecretAttribute", HelpUri = Constants.KeyVaultHelpUri)]
[Cmdlet(VerbsCommon.Set, "AzureKeyVaultSecretAttribute", HelpUri = Constants.KeyVaultHelpUri)]
[OutputType(typeof(Secret))]
public class SetAzureKeyVaultSecretAttribute : KeyVaultCmdletBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.Profile
/// <summary>
/// Cmdlet to change current Azure context.
/// </summary>
[Cmdlet(VerbsCommon.Set, "AzureRMContext", DefaultParameterSetName =TenantIdAndSubscriptionIdParameterSet)]
[Cmdlet(VerbsCommon.Set, "AzureRmContext", DefaultParameterSetName =TenantIdAndSubscriptionIdParameterSet)]
[Alias("Select-AzureRmSubscription")]
[OutputType(typeof(PSAzureContext))]
public class SetAzureRMContextCommand : AzureRMCmdlet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1760,29 +1760,29 @@ Subscription Name: Contoso Subscription 1</maml:para>
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
<!--Generated by PS Cmdlet Help Editor-->
<command:details>
<command:name>Save-AzureRMProfile</command:name>
<command:name>Save-AzureRmProfile</command:name>
<maml:description>
<maml:para>Save the current authentication information for use in other PowerShell sessions.</maml:para>
</maml:description>
<maml:copyright>
<maml:para />
</maml:copyright>
<command:verb>Save</command:verb>
<command:noun>AzureRMProfile</command:noun>
<command:noun>AzureRmProfile</command:noun>
<dev:version />
</command:details>
<maml:description>
<maml:para>Save the current authentication information for use in other PowerShell sessions.</maml:para>
</maml:description>
<command:syntax>
<command:syntaxItem>
<maml:name>Save-AzureRMProfile</maml:name>
<maml:name>Save-AzureRmProfile</maml:name>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="0">
<maml:name>Profile</maml:name>
<maml:description>
<maml:para>If provided, saves the given profile to the provided path. If no profile is provided, the currently active profile will be saved.</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">AzureRMProfile</command:parameterValue>
<command:parameterValue required="true" variableLength="false">AzureRmProfile</command:parameterValue>
</command:parameter>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="1">
<maml:name>Path</maml:name>
Expand Down Expand Up @@ -1813,9 +1813,9 @@ Subscription Name: Contoso Subscription 1</maml:para>
<maml:description>
<maml:para>If provided, saves the given profile to the provided path. If no profile is provided, the currently active profile will be saved.</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">AzureRMProfile</command:parameterValue>
<command:parameterValue required="true" variableLength="false">AzureRmProfile</command:parameterValue>
<dev:type>
<maml:name>AzureRMProfile</maml:name>
<maml:name>AzureRmProfile</maml:name>
<maml:uri />
</dev:type>
<dev:defaultValue>
Expand Down Expand Up @@ -1919,29 +1919,29 @@ Subscription Name: Contoso Subscription 1</maml:para>
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
<!--Generated by PS Cmdlet Help Editor-->
<command:details>
<command:name>Select-AzureRMProfile</command:name>
<command:name>Select-AzureRmProfile</command:name>
<maml:description>
<maml:para>Load authentication information from the given file. This sets the current context and azure environment metadata used by all cmdlets in the current session.</maml:para>
</maml:description>
<maml:copyright>
<maml:para />
</maml:copyright>
<command:verb>Select</command:verb>
<command:noun>AzureRMProfile</command:noun>
<command:noun>AzureRmProfile</command:noun>
<dev:version />
</command:details>
<maml:description>
<maml:para>Load authentication information from the given file. This sets the current context and azure environment metadata used by all cmdlets in the current session.</maml:para>
</maml:description>
<command:syntax>
<command:syntaxItem>
<maml:name>Select-AzureRMProfile</maml:name>
<maml:name>Select-AzureRmProfile</maml:name>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="0">
<maml:name>Profile</maml:name>
<maml:description>
<maml:para>The profile to select as the current profile in the given session.</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">AzureRMProfile</command:parameterValue>
<command:parameterValue required="true" variableLength="false">AzureRmProfile</command:parameterValue>
</command:parameter>
<command:parameter required="false" variableLength="false" globbing="false" pipelineInput="false" position="named">
<maml:name>InformationAction</maml:name>
Expand All @@ -1959,7 +1959,7 @@ Subscription Name: Contoso Subscription 1</maml:para>
</command:parameter>
</command:syntaxItem>
<command:syntaxItem>
<maml:name>Select-AzureRMProfile</maml:name>
<maml:name>Select-AzureRmProfile</maml:name>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="0">
<maml:name>Path</maml:name>
<maml:description>
Expand Down Expand Up @@ -1989,9 +1989,9 @@ Subscription Name: Contoso Subscription 1</maml:para>
<maml:description>
<maml:para>The profile to select as the current profile in the given session.</maml:para>
</maml:description>
<command:parameterValue required="true" variableLength="false">AzureRMProfile</command:parameterValue>
<command:parameterValue required="true" variableLength="false">AzureRmProfile</command:parameterValue>
<dev:type>
<maml:name>AzureRMProfile</maml:name>
<maml:name>AzureRmProfile</maml:name>
<maml:uri />
</dev:type>
<dev:defaultValue>
Expand Down Expand Up @@ -2085,23 +2085,23 @@ Subscription Name: Contoso Subscription 1</maml:para>
<command:command xmlns:maml="http://schemas.microsoft.com/maml/2004/10" xmlns:command="http://schemas.microsoft.com/maml/dev/command/2004/10" xmlns:dev="http://schemas.microsoft.com/maml/dev/2004/10" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
<!--Generated by PS Cmdlet Help Editor-->
<command:details>
<command:name>Set-AzureRMContext</command:name>
<command:name>Set-AzureRmContext</command:name>
<maml:description>
<maml:para>Set the tenant, subscription, and environment to be used by cmdlets in this session.</maml:para>
</maml:description>
<maml:copyright>
<maml:para />
</maml:copyright>
<command:verb>Set</command:verb>
<command:noun>AzureRMContext</command:noun>
<command:noun>AzureRmContext</command:noun>
<dev:version />
</command:details>
<maml:description>
<maml:para>Set authentication information for cmdlets executed in the current session. Includes subscription, tenant, and environment information.</maml:para>
</maml:description>
<command:syntax>
<command:syntaxItem>
<maml:name>Set-AzureRMContext</maml:name>
<maml:name>Set-AzureRmContext</maml:name>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
<maml:name>TenantId</maml:name>
<maml:description>
Expand Down Expand Up @@ -2132,7 +2132,7 @@ Subscription Name: Contoso Subscription 1</maml:para>
</command:parameter>
</command:syntaxItem>
<command:syntaxItem>
<maml:name>Set-AzureRMContext</maml:name>
<maml:name>Set-AzureRmContext</maml:name>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
<maml:name>TenantId</maml:name>
<maml:description>
Expand All @@ -2156,7 +2156,7 @@ Subscription Name: Contoso Subscription 1</maml:para>
</command:parameter>
</command:syntaxItem>
<command:syntaxItem>
<maml:name>Set-AzureRMContext</maml:name>
<maml:name>Set-AzureRmContext</maml:name>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
<maml:name>SubscriptionId</maml:name>
<maml:description>
Expand All @@ -2180,7 +2180,7 @@ Subscription Name: Contoso Subscription 1</maml:para>
</command:parameter>
</command:syntaxItem>
<command:syntaxItem>
<maml:name>Set-AzureRMContext</maml:name>
<maml:name>Set-AzureRmContext</maml:name>
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByPropertyName)" position="named">
<maml:name>Tenant</maml:name>
<maml:description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Profile
/// <summary>
/// Saves Microsoft Azure profile.
/// </summary>
[Cmdlet(VerbsData.Save, "AzureRMProfile"), OutputType(typeof(PSAzureProfile))]
[Cmdlet(VerbsData.Save, "AzureRmProfile"), OutputType(typeof(PSAzureProfile))]
public class SaveAzureRMProfileCommand : AzureRMCmdlet
{
[Parameter(Mandatory = false, Position = 0, ValueFromPipelineByPropertyName = true)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.Profile
/// <summary>
/// Selects Microsoft Azure profile.
/// </summary>
[Cmdlet(VerbsCommon.Select, "AzureRMProfile"), OutputType(typeof(PSAzureProfile))]
[Cmdlet(VerbsCommon.Select, "AzureRmProfile"), OutputType(typeof(PSAzureProfile))]
public class SelectAzureRMProfileCommand : AzureRMCmdlet
{
internal const string InMemoryProfileParameterSet = "InMemoryProfile";
Expand Down