Skip to content

Commit f137c11

Browse files
author
Jianghao Lu
committed
Rename ARM Cmdlet names in comments and warnings
1 parent 985786a commit f137c11

File tree

75 files changed

+235
-235
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+235
-235
lines changed

src/ResourceManager/ApiManagement/Commands.ApiManagement.ServiceManagement/Commands/NewAzureApiManagementApi.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public override void ExecuteApiManagementCmdlet()
118118

119119
if (ProductIds != null && ProductIds.Any())
120120
{
121-
WriteProgress(new ProgressRecord(0, "New-AzureApiManagementApi", "New API created. Adding to products..."));
121+
WriteProgress(new ProgressRecord(0, "New-AzureRMApiManagementApi", "New API created. Adding to products..."));
122122

123123
foreach (var productId in ProductIds)
124124
{
@@ -128,7 +128,7 @@ public override void ExecuteApiManagementCmdlet()
128128
WriteProgress(
129129
new ProgressRecord(
130130
0,
131-
"New-AzureApiManagementApi",
131+
"New-AzureRMApiManagementApi",
132132
string.Format("... Added to product {0}", productId))
133133
);
134134
}
@@ -137,7 +137,7 @@ public override void ExecuteApiManagementCmdlet()
137137
WriteProgress(
138138
new ProgressRecord(
139139
0,
140-
"New-AzureApiManagementApi",
140+
"New-AzureRMApiManagementApi",
141141
string.Format("... Failed to add to product {0} due to: {1}", productId, ex))
142142
);
143143
}

src/ResourceManager/ApiManagement/Commands.ApiManagement/ApiManagementClient.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public ApiManagementLongRunningOperation BeginCreateApiManagementService(
9696

9797
var longrunningResponse = Client.ResourceProvider.BeginCreatingOrUpdating(resourceGroupName, serviceName, parameters);
9898
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
99-
return ApiManagementLongRunningOperation.CreateLongRunningOperation("New-AzureApiManagement", longrunningResponse);
99+
return ApiManagementLongRunningOperation.CreateLongRunningOperation("New-AzureRMApiManagement", longrunningResponse);
100100
}
101101

102102
public ApiManagementLongRunningOperation BeginBackupApiManagement(
@@ -122,7 +122,7 @@ public ApiManagementLongRunningOperation BeginBackupApiManagement(
122122

123123
var longrunningResponse = Client.ResourceProvider.BeginBackup(resourceGroupName, serviceName, parameters);
124124
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
125-
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Backup-AzureApiManagement", longrunningResponse);
125+
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Backup-AzureRMApiManagement", longrunningResponse);
126126
}
127127

128128
public bool DeleteApiManagement(string resourceGroupName, string serviceName)
@@ -150,7 +150,7 @@ public ApiManagementLongRunningOperation BeginRestoreApiManagement(
150150

151151
var longrunningResponse = Client.ResourceProvider.BeginRestoring(resourceGroupName, serviceName, parameters);
152152
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
153-
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Restore-AzureApiManagement", longrunningResponse);
153+
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Restore-AzureRMApiManagement", longrunningResponse);
154154
}
155155

156156
public ApiManagementLongRunningOperation BeginUpdateDeployments(
@@ -201,7 +201,7 @@ public ApiManagementLongRunningOperation BeginUpdateDeployments(
201201

202202
var longrunningResponse = Client.ResourceProvider.BeginManagingDeployments(resourceGroupName, serviceName, parameters);
203203
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
204-
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Update-AzureApiManagementDeployment", longrunningResponse);
204+
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Update-AzureRMApiManagementDeployment", longrunningResponse);
205205
}
206206

207207
public PsApiManagementHostnameCertificate UploadCertificate(
@@ -242,7 +242,7 @@ public ApiManagementLongRunningOperation BeginSetHostnames(
242242

243243
var longrunningResponse = Client.ResourceProvider.BeginUpdatingHostname(resourceGroupName, serviceName, parameters);
244244
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
245-
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Set-AzureApiManagementHostnames", longrunningResponse);
245+
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Set-AzureRMApiManagementHostnames", longrunningResponse);
246246
}
247247

248248
public string GetSsoToken(string resourceGroupName, string serviceName)
@@ -270,7 +270,7 @@ public ApiManagementLongRunningOperation BeginManageVirtualNetworks(
270270

271271
var longrunningResponse = Client.ResourceProvider.BeginManagingVirtualNetworks(resourceGroupName, serviceName, parameters);
272272
AdjustRetryAfter(longrunningResponse, _client.LongRunningOperationInitialTimeout);
273-
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Set-AzureApiManagementVirtualNetworks", longrunningResponse);
273+
return ApiManagementLongRunningOperation.CreateLongRunningOperation("Set-AzureRMApiManagementVirtualNetworks", longrunningResponse);
274274
}
275275

276276
internal ApiManagementLongRunningOperation GetLongRunningOperationStatus(ApiManagementLongRunningOperation longRunningOperation)

src/ResourceManager/Automation/Commands.Automation/Common/AutomationClientDSC.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ public void RegisterDscNode(string resourceGroupName,
751751
resourceGroupName,
752752
automationAccountName);
753753

754-
// prepare the parameters to be used in New-AzureResourceGroupDeployment cmdlet
754+
// prepare the parameters to be used in New-AzureRMResourceGroupDeployment cmdlet
755755
Hashtable templateParameters = new Hashtable();
756756
templateParameters.Add("vmName", azureVMName);
757757
templateParameters.Add("location", location);
@@ -767,10 +767,10 @@ public void RegisterDscNode(string resourceGroupName,
767767
templateParameters.Add("actionAfterReboot", actionAfterReboot);
768768
templateParameters.Add("allowModuleOverwrite", moduleOverwriteFlag);
769769

770-
// invoke the New-AzureResourceGroupDeployment cmdlet
770+
// invoke the New-AzureRMResourceGroupDeployment cmdlet
771771
using (Pipeline pipe = Runspace.DefaultRunspace.CreateNestedPipeline())
772772
{
773-
Command invokeCommand = new Command("New-AzureResourceGroupDeployment");
773+
Command invokeCommand = new Command("New-AzureRMResourceGroupDeployment");
774774
invokeCommand.Parameters.Add("Name", deploymentName);
775775
invokeCommand.Parameters.Add("ResourceGroupName", azureVmResourceGroup);
776776
invokeCommand.Parameters.Add("TemplateParameterObject", templateParameters);

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/PoolTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,11 @@ function Test-EvaluateAutoScale
362362

363363
if ($usePipeline -eq '1')
364364
{
365-
$evalResult = Get-AzureRMBatchPool_ST -Id $poolId -BatchContext $context | Test-AzureRMBatchAutoScale_ST -AutoScaleFormula $formula -BatchContext $context
365+
$evalResult = Get-AzureRMBatchPool_ST -Id $poolId -BatchContext $context | Test-AzureBatchAutoScale_ST -AutoScaleFormula $formula -BatchContext $context
366366
}
367367
else
368368
{
369-
$evalResult = Test-AzureRMBatchAutoScale_ST $poolId $formula -BatchContext $context
369+
$evalResult = Test-AzureBatchAutoScale_ST $poolId $formula -BatchContext $context
370370
}
371371

372372
# Verify that the evaluation result matches expectation

src/ResourceManager/AzureBatch/Commands.Batch.Test/ScenarioTests/ScenarioTestHelpers.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public static class ScenarioTestHelpers
4949
// NOTE: To save time on setup and compute node allocation when recording, many tests assume the following:
5050
// - A Batch account named 'pstests' exists under the subscription being used for recording.
5151
// - The following commands were run to create a pool, and all 3 compute nodes are allocated:
52-
// $context = Get-AzureBatchAccountKeys "pstests"
52+
// $context = Get-AzureRMBatchAccountKeys "pstests"
5353
// $startTask = New-Object Microsoft.Azure.Commands.Batch.Models.PSStartTask
5454
// $startTask.CommandLine = "cmd /c echo hello"
55-
// New-AzureBatchPool -Id "testPool" -VirtualMachineSize "small" -OSFamily "4" -TargetOSVersion "*" -TargetDedicated 3 -StartTask $startTask -BatchContext $context
55+
// New-AzureRMBatchPool -Id "testPool" -VirtualMachineSize "small" -OSFamily "4" -TargetOSVersion "*" -TargetDedicated 3 -StartTask $startTask -BatchContext $context
5656
internal const string SharedAccount = "pstests";
5757
internal const string SharedPool = "testPool";
5858
internal const string SharedPoolStartTaskStdOut = "startup\\stdout.txt";

src/ResourceManager/AzureBatch/Commands.Batch/BatchObjectModelCmdletBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class BatchObjectModelCmdletBase : BatchCmdletBase
2929
/// </summary>
3030
internal IEnumerable<BatchClientBehavior> AdditionalBehaviors { get; set; }
3131

32-
[Parameter(Mandatory = true, ValueFromPipeline = true, HelpMessage = "The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.")]
32+
[Parameter(Mandatory = true, ValueFromPipeline = true, HelpMessage = "The BatchAccountContext instance to use when interacting with the Batch service. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its access keys populated.")]
3333
[ValidateNotNullOrEmpty]
3434
public BatchAccountContext BatchContext { get; set; }
3535

src/ResourceManager/AzureBatch/Commands.Batch/Microsoft.Azure.Commands.Batch.dll-Help.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7252,7 +7252,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
72527252
<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">
72537253
<command:details>
72547254
<command:name>
7255-
Test-AzureRMBatchAutoScale
7255+
Test-AzureBatchAutoScale
72567256
</command:name>
72577257
<maml:description>
72587258
<maml:para>Gets the result of evaluation an automatic scaling formula on the specified pool.</maml:para>
@@ -7270,7 +7270,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
72707270
<!-- Cmdlet syntax section-->
72717271
<command:syntax>
72727272
<command:syntaxItem>
7273-
<maml:name>Test-AzureRMBatchAutoScale</maml:name>
7273+
<maml:name>Test-AzureBatchAutoScale</maml:name>
72747274
<command:parameter required="true" variableLength="false" globbing="false" pipelineInput="true (ByValue, ByPropertyName)" position="1">
72757275
<maml:name>Id</maml:name>
72767276
<maml:description>
@@ -7394,7 +7394,7 @@ cmdletexample westus cmdletexamplerg {System.Collection https:
73947394
</maml:introduction>
73957395
<dev:code>
73967396
$formula = 'totalNodes=($CPUPercent.GetSamplePercent(TimeInterval_Minute*0,TimeInterval_Minute*10)&lt;0.7?5:(min($CPUPercent.GetSample(TimeInterval_Minute*0, TimeInterval_Minute*10))&gt;0.8?($CurrentDedicated*1.1):$CurrentDedicated));$TargetDedicated=min(100,totalNodes);';
7397-
$evaluation = Test-AzureRMBatchAutoScale &quot;myPool&quot; $formula -BatchContext $context
7397+
$evaluation = Test-AzureBatchAutoScale &quot;myPool&quot; $formula -BatchContext $context
73987398
$evaluation.AutoScaleRun.Results
73997399

74007400
$TargetDedicated=5;$NodeDeallocationOption=requeue;totalNodes=5

src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ResourceManager/AzureBatch/Commands.Batch/Properties/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
<value>Invalid tag format. Ensure that each tag has a unique name. Example: @{Name = "tagName1"; Value = "tagValue1"}, @{Name = "tagName2"; Value = "tagValue2"}</value>
269269
</data>
270270
<data name="KeyNotPresent" xml:space="preserve">
271-
<value>The current KeyInUse on this BatchAccountContext is the {0} key, but this key is not populated on the BatchAccountContext object. Use the Get-AzureBatchAccountKeys cmdlet to get a BatchAccountContext object with its keys populated.</value>
271+
<value>The current KeyInUse on this BatchAccountContext is the {0} key, but this key is not populated on the BatchAccountContext object. Use the Get-AzureRMBatchAccountKeys cmdlet to get a BatchAccountContext object with its keys populated.</value>
272272
</data>
273273
<data name="LookupAccount" xml:space="preserve">
274274
<value>Checking if account already exists</value>

src/ResourceManager/Compute/Commands.Compute/Extension/DSC/GetAzureVMDscExtensionCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public class GetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet
4040
[Parameter(
4141
Position = 2,
4242
ValueFromPipelineByPropertyName = true,
43-
HelpMessage = "Name of the ARM resource that represents the extension. The Set-AzureVMDscExtension cmdlet sets this name to " +
44-
"'Microsoft.Powershell.DSC', which is the same value used by Get-AzureVMDscExtension. Specify this parameter only if you changed " +
43+
HelpMessage = "Name of the ARM resource that represents the extension. The Set-AzureRMVMDscExtension cmdlet sets this name to " +
44+
"'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRMVMDscExtension. Specify this parameter only if you changed " +
4545
"the default name in the Set cmdlet or used a different resource name in an ARM template.")]
4646
[ValidateNotNullOrEmpty]
4747
public string Name { get; set; }

src/ResourceManager/Compute/Commands.Compute/Extension/DSC/PublishAzureVMDscConfigurationCommand.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Microsoft.Azure.Commands.Compute.Extension.DSC
1111
/// <summary>
1212
/// Uploads a Desired State Configuration script to Azure blob storage, which
1313
/// later can be applied to Azure Virtual Machines using the
14-
/// Set-AzureVMDscExtension cmdlet.
14+
/// Set-AzureRMVMDscExtension cmdlet.
1515
/// </summary>
1616
[Cmdlet(
1717
VerbsData.Publish,
@@ -73,7 +73,7 @@ public class PublishAzureVMDscConfigurationCommand : DscExtensionPublishCmdletCo
7373

7474
/// <summary>
7575
/// Path to a local ZIP file to write the configuration archive to.
76-
/// When using this parameter, Publish-AzureVMDscConfiguration creates a
76+
/// When using this parameter, Publish-AzureRMVMDscConfiguration creates a
7777
/// local ZIP archive instead of uploading it to blob storage..
7878
/// </summary>
7979
[Alias("ConfigurationArchivePath")]
@@ -96,10 +96,10 @@ public class PublishAzureVMDscConfigurationCommand : DscExtensionPublishCmdletCo
9696
public string StorageEndpointSuffix { get; set; }
9797

9898
/// <summary>
99-
/// By default Publish-AzureVMDscConfiguration will not overwrite any existing blobs.
99+
/// By default Publish-AzureRMVMDscConfiguration will not overwrite any existing blobs.
100100
/// Use -Force to overwrite them.
101101
/// </summary>
102-
[Parameter(HelpMessage = "By default Publish-AzureVMDscConfiguration will not overwrite any existing blobs")]
102+
[Parameter(HelpMessage = "By default Publish-AzureRMVMDscConfiguration will not overwrite any existing blobs")]
103103
public SwitchParameter Force { get; set; }
104104

105105
/// <summary>
@@ -117,7 +117,7 @@ public class PublishAzureVMDscConfigurationCommand : DscExtensionPublishCmdletCo
117117
ValueFromPipelineByPropertyName = true,
118118
HelpMessage = "Path to a .psd1 file that specifies the data for the Configuration. This is added to the configuration " +
119119
"archive and then passed to the configuration function. It gets overwritten by the configuration data path " +
120-
"provided through the Set-AzureVMDscExtension cmdlet")]
120+
"provided through the Set-AzureRMVMDscExtension cmdlet")]
121121
[ValidateNotNullOrEmpty]
122122
public string ConfigurationDataPath { get; set; }
123123

src/ResourceManager/Compute/Commands.Compute/Extension/DSC/RemoveAzureVMDscExtensionCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public class RemoveAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdle
3939
[Parameter(
4040
Position = 2,
4141
ValueFromPipelineByPropertyName = true,
42-
HelpMessage = "Name of the ARM resource that represents the extension. The Set-AzureVMDscExtension cmdlet sets this name to " +
43-
"'Microsoft.Powershell.DSC', which is the same value used by Get-AzureVMDscExtension. Specify this parameter only if you changed " +
42+
HelpMessage = "Name of the ARM resource that represents the extension. The Set-AzureRMVMDscExtension cmdlet sets this name to " +
43+
"'Microsoft.Powershell.DSC', which is the same value used by Get-AzureRMVMDscExtension. Specify this parameter only if you changed " +
4444
"the default name in the Set cmdlet or used a different resource name in an ARM template.")]
4545
[ValidateNotNullOrEmpty]
4646
public string Name { get; set; }

src/ResourceManager/Compute/Commands.Compute/Extension/DSC/SetAzureVMDscExtensionCommand.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class SetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet
5151

5252
/// <summary>
5353
/// The name of the configuration archive that was previously uploaded by
54-
/// Publish-AzureVMDSCConfiguration. This parameter must specify only the name
54+
/// Publish-AzureRMVMDSCConfiguration. This parameter must specify only the name
5555
/// of the file, without any path.
5656
/// A null value or empty string indicate that the VM extension should install DSC,
5757
/// but not start any configuration
@@ -62,7 +62,7 @@ public class SetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet
6262
Position = 5,
6363
ValueFromPipelineByPropertyName = true,
6464
ParameterSetName = AzureBlobDscExtensionParamSet,
65-
HelpMessage = "The name of the configuration file that was previously uploaded by Publish-AzureVMDSCConfiguration")]
65+
HelpMessage = "The name of the configuration file that was previously uploaded by Publish-AzureRMVMDSCConfiguration")]
6666
[AllowEmptyString]
6767
[AllowNull]
6868
public string ArchiveBlobName { get; set; }
@@ -146,21 +146,21 @@ public class SetAzureVMDscExtensionCommand : VirtualMachineExtensionBaseCmdlet
146146
public string ConfigurationData { get; set; }
147147

148148
/// <summary>
149-
/// The specific version of the DSC extension that Set-AzureVMDSCExtension will
149+
/// The specific version of the DSC extension that Set-AzureRMVMDSCExtension will
150150
/// apply the settings to.
151151
/// </summary>
152152
[Alias("HandlerVersion")]
153153
[Parameter(
154154
Mandatory = true,
155155
Position = 1,
156156
ValueFromPipelineByPropertyName = true,
157-
HelpMessage = "The version of the DSC extension that Set-AzureVMDSCExtension will apply the settings to. " +
157+
HelpMessage = "The version of the DSC extension that Set-AzureRMVMDSCExtension will apply the settings to. " +
158158
"Allowed format N.N")]
159159
[ValidateNotNullOrEmpty]
160160
public string Version { get; set; }
161161

162162
/// <summary>
163-
/// By default Set-AzureVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them.
163+
/// By default Set-AzureRMVMDscExtension will not overwrite any existing blobs. Use -Force to overwrite them.
164164
/// </summary>
165165
[Parameter(
166166
HelpMessage = "Use this parameter to overwrite any existing blobs")]

0 commit comments

Comments
 (0)