Skip to content

Commit 1ef32f1

Browse files
committed
Update
1 parent 5e860de commit 1ef32f1

File tree

2 files changed

+8
-8
lines changed
  • src
    • ResourceManager/Compute/Commands.Compute/Generated
    • ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation

2 files changed

+8
-8
lines changed

src/ResourceManager/Compute/Commands.Compute/Generated/cli.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ exports.init = function (cli) {
6969
.description($('Generate vmss parameter string or files.'))
7070
.usage('[options]')
7171
.option('--parameter-file <output-file>', $('The parameter file path.'))
72-
.execute(function (outputFile, options, _) {
72+
.execute(function (parameterFile, options, _) {
7373
console.log("{\"provisioningState\":\"\",\"sku\":{\"capacity\":null,\"name\":\"\",\"tier\":\"\"},\"upgradePolicy\":{\"mode\":\"\"},\"virtualMachineProfile\":{\"extensionProfile\":{\"extensions\":[{\"autoUpgradeMinorVersion\":false,\"extensionType\":\"\",\"protectedSettings\":\"\",\"provisioningState\":\"\",\"publisher\":\"\",\"settings\":\"\",\"typeHandlerVersion\":\"\",\"id\":\"\",\"name\":\"\",\"type\":\"\",\"location\":\"\",\"tags\":{}}]},\"networkProfile\":{\"networkInterfaceConfigurations\":[{\"iPConfigurations\":[{\"loadBalancerBackendAddressPools\":[{\"referenceUri\":\"\"}],\"loadBalancerInboundNatPools\":[{\"referenceUri\":\"\"}],\"name\":\"\",\"subnet\":{\"referenceUri\":\"\"}}],\"name\":\"\",\"primary\":null}]},\"oSProfile\":{\"computerNamePrefix\":\"\",\"adminPassword\":\"\",\"adminUsername\":\"\",\"customData\":\"\",\"linuxConfiguration\":{\"disablePasswordAuthentication\":null,\"sshConfiguration\":{\"publicKeys\":[{\"keyData\":\"\",\"path\":\"\"}]}},\"secrets\":[{\"sourceVault\":{\"referenceUri\":\"\"},\"vaultCertificates\":[{\"certificateStore\":\"\",\"certificateUrl\":\"\"}]}],\"windowsConfiguration\":{\"additionalUnattendContents\":[{\"componentName\":\"\",\"content\":\"\",\"passName\":\"\",\"settingName\":\"\"}],\"enableAutomaticUpdates\":null,\"provisionVMAgent\":null,\"timeZone\":\"\",\"winRMConfiguration\":{\"listeners\":[{\"certificateUrl\":\"\",\"protocol\":\"\"}]}}},\"storageProfile\":{\"imageReference\":{\"offer\":\"\",\"publisher\":\"\",\"sku\":\"\",\"version\":\"\"},\"oSDisk\":{\"caching\":\"\",\"createOption\":\"\",\"name\":\"\",\"operatingSystemType\":\"\",\"sourceImage\":{\"uri\":\"\"},\"virtualHardDiskContainers\":[\"\"]}}},\"id\":\"\",\"name\":\"\",\"type\":\"\",\"location\":\"\",\"tags\":{}}");
7474
var filePath = "vmss_createOrUpdate.json";
75-
if (options.outputFile) { filePath = options.outputFile; };
75+
if (options.parameterFile) { filePath = options.parameterFile; };
7676
fs.writeFileSync(filePath, beautify("{\r\n\"provisioningState\":\"\",\r\n\"sku\":{\r\n\"capacity\":null,\r\n\"name\":\"\",\r\n\"tier\":\"\"\r\n},\r\n\"upgradePolicy\":{\r\n\"mode\":\"\"\r\n},\r\n\"virtualMachineProfile\":{\r\n\"extensionProfile\":{\r\n\"extensions\":[\r\n{\r\n\"autoUpgradeMinorVersion\":false,\r\n\"extensionType\":\"\",\r\n\"protectedSettings\":\"\",\r\n\"provisioningState\":\"\",\r\n\"publisher\":\"\",\r\n\"settings\":\"\",\r\n\"typeHandlerVersion\":\"\",\r\n\"id\":\"\",\r\n\"name\":\"\",\r\n\"type\":\"\",\r\n\"location\":\"\",\r\n\"tags\":{\r\n\r\n}\r\n}\r\n]\r\n},\r\n\"networkProfile\":{\r\n\"networkInterfaceConfigurations\":[\r\n{\r\n\"iPConfigurations\":[\r\n{\r\n\"loadBalancerBackendAddressPools\":[\r\n{\r\n\"referenceUri\":\"\"\r\n}\r\n],\r\n\"loadBalancerInboundNatPools\":[\r\n{\r\n\"referenceUri\":\"\"\r\n}\r\n],\r\n\"name\":\"\",\r\n\"subnet\":{\r\n\"referenceUri\":\"\"\r\n}\r\n}\r\n],\r\n\"name\":\"\",\r\n\"primary\":null\r\n}\r\n]\r\n},\r\n\"oSProfile\":{\r\n\"computerNamePrefix\":\"\",\r\n\"adminPassword\":\"\",\r\n\"adminUsername\":\"\",\r\n\"customData\":\"\",\r\n\"linuxConfiguration\":{\r\n\"disablePasswordAuthentication\":null,\r\n\"sshConfiguration\":{\r\n\"publicKeys\":[\r\n{\r\n\"keyData\":\"\",\r\n\"path\":\"\"\r\n}\r\n]\r\n}\r\n},\r\n\"secrets\":[\r\n{\r\n\"sourceVault\":{\r\n\"referenceUri\":\"\"\r\n},\r\n\"vaultCertificates\":[\r\n{\r\n\"certificateStore\":\"\",\r\n\"certificateUrl\":\"\"\r\n}\r\n]\r\n}\r\n],\r\n\"windowsConfiguration\":{\r\n\"additionalUnattendContents\":[\r\n{\r\n\"componentName\":\"\",\r\n\"content\":\"\",\r\n\"passName\":\"\",\r\n\"settingName\":\"\"\r\n}\r\n],\r\n\"enableAutomaticUpdates\":null,\r\n\"provisionVMAgent\":null,\r\n\"timeZone\":\"\",\r\n\"winRMConfiguration\":{\r\n\"listeners\":[\r\n{\r\n\"certificateUrl\":\"\",\r\n\"protocol\":\"\"\r\n}\r\n]\r\n}\r\n}\r\n},\r\n\"storageProfile\":{\r\n\"imageReference\":{\r\n\"offer\":\"\",\r\n\"publisher\":\"\",\r\n\"sku\":\"\",\r\n\"version\":\"\"\r\n},\r\n\"oSDisk\":{\r\n\"caching\":\"\",\r\n\"createOption\":\"\",\r\n\"name\":\"\",\r\n\"operatingSystemType\":\"\",\r\n\"sourceImage\":{\r\n\"uri\":\"\"\r\n},\r\n\"virtualHardDiskContainers\":[\r\n\"\"\r\n]\r\n}\r\n}\r\n},\r\n\"id\":\"\",\r\n\"name\":\"\",\r\n\"type\":\"\",\r\n\"location\":\"\",\r\n\"tags\":{\r\n\r\n}\r\n}"));
7777
console.log("=====================================");
7878
console.log("Parameter file output to: " + filePath);
@@ -274,10 +274,10 @@ exports.init = function (cli) {
274274
.description($('Generate vmss parameter string or files.'))
275275
.usage('[options]')
276276
.option('--parameter-file <output-file>', $('The parameter file path.'))
277-
.execute(function (outputFile, options, _) {
277+
.execute(function (parameterFile, options, _) {
278278
console.log("{}");
279279
var filePath = "vmss_listAll.json";
280-
if (options.outputFile) { filePath = options.outputFile; };
280+
if (options.parameterFile) { filePath = options.parameterFile; };
281281
fs.writeFileSync(filePath, beautify("{\r\n\r\n}"));
282282
console.log("=====================================");
283283
console.log("Parameter file output to: " + filePath);
@@ -593,10 +593,10 @@ exports.init = function (cli) {
593593
.description($('Generate vmssvm parameter string or files.'))
594594
.usage('[options]')
595595
.option('--parameter-file <output-file>', $('The parameter file path.'))
596-
.execute(function (outputFile, options, _) {
596+
.execute(function (parameterFile, options, _) {
597597
console.log("{\"expandExpression\":\"\",\"filterExpression\":\"\",\"resourceGroupName\":\"\",\"selectExpression\":\"\",\"virtualMachineScaleSetName\":\"\"}");
598598
var filePath = "vmssvm_list.json";
599-
if (options.outputFile) { filePath = options.outputFile; };
599+
if (options.parameterFile) { filePath = options.parameterFile; };
600600
fs.writeFileSync(filePath, beautify("{\r\n\"expandExpression\":\"\",\r\n\"filterExpression\":\"\",\r\n\"resourceGroupName\":\"\",\r\n\"selectExpression\":\"\",\r\n\"virtualMachineScaleSetName\":\"\"\r\n}"));
601601
console.log("=====================================");
602602
console.log("Parameter file output to: " + filePath);

src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/RunCodeGeneration.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ ${cmdlet_partial_class_code}
18011801
$cli_op_code_content += " .usage('[options]')" + $new_line_str;
18021802
$cli_op_code_content += " .option('--parameter-file <output-file>', `$('The parameter file path.'))" + $new_line_str;
18031803
$cli_op_code_content += " .execute(function (";
1804-
$cli_op_code_content += "outputFile";
1804+
$cli_op_code_content += "parameterFile";
18051805
$cli_op_code_content += ", options, _) {" + $new_line_str;
18061806

18071807
$output_content = $param_object_comment.Replace("`"", "\`"");
@@ -1810,7 +1810,7 @@ ${cmdlet_partial_class_code}
18101810
$file_content = $param_object_comment_no_compress.Replace($new_line_str, "\r\n").Replace("`r", "\r").Replace("`n", "\n");
18111811
$file_content = $file_content.Replace("`"", "\`"").Replace(' ', '');
18121812
$cli_op_code_content += " var filePath = `"${category_name}_${cli_method_name}.json`";" + $new_line_str;
1813-
$cli_op_code_content += " if (options.outputFile) { filePath = options.outputFile; };" + $new_line_str;
1813+
$cli_op_code_content += " if (options.parameterFile) { filePath = options.parameterFile; };" + $new_line_str;
18141814
$cli_op_code_content += " fs.writeFileSync(filePath, beautify(`"" + $file_content + "`"));" + $new_line_str;
18151815
$cli_op_code_content += " console.log(`"=====================================`");" + $new_line_str;
18161816
$cli_op_code_content += " console.log(`"Parameter file output to: `" + filePath);" + $new_line_str;

0 commit comments

Comments
 (0)