@@ -61,16 +61,15 @@ exports.init = function (cli) {
61
61
var result = computeManagementClient . virtualMachineScaleSets . createOrUpdate ( options . resourceGroupName , parametersObj , _ ) ;
62
62
cli . output . json ( result ) ;
63
63
} ) ;
64
- var parameters = cli . category ( 'parameters' )
65
- . description ( $ ( 'Commands to generate and patch parameters .' ) )
66
- . category ( 'vmss ' )
67
- . description ( $ ( 'Commands to generate parameter for your virtual machine scale set.' ) ) ;
68
- parameters . command ( 'create-or-update' )
64
+ var parameters = vmss . category ( 'parameters' )
65
+ . description ( $ ( 'Commands to manage parameter for your virtual machine scale set .' ) ) ;
66
+ var generate = parameters . category ( 'generate ' )
67
+ . description ( $ ( 'Commands to generate parameter file for your virtual machine scale set.' ) ) ;
68
+ generate . command ( 'create-or-update' )
69
69
. description ( $ ( 'Generate vmss parameter string or files.' ) )
70
70
. usage ( '[options]' )
71
- . option ( '--generate' , $ ( 'To generate parameter string/file for method: createOrUpdate.' ) )
72
- . option ( '--output-file <output-file>' , $ ( 'The output file path.' ) )
73
- . execute ( function ( generate , outputFile , options , _ ) {
71
+ . option ( '--parameter-file <output-file>' , $ ( 'The parameter file path.' ) )
72
+ . execute ( function ( outputFile , options , _ ) {
74
73
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\":{}}" ) ;
75
74
var filePath = "vmss_createOrUpdate.json" ;
76
75
if ( options . outputFile ) { filePath = options . outputFile ; } ;
@@ -267,16 +266,15 @@ exports.init = function (cli) {
267
266
var result = computeManagementClient . virtualMachineScaleSets . listAll ( parametersObj , _ ) ;
268
267
cli . output . json ( result ) ;
269
268
} ) ;
270
- var parameters = cli . category ( 'parameters' )
271
- . description ( $ ( 'Commands to generate and patch parameters .' ) )
272
- . category ( 'vmss ' )
273
- . description ( $ ( 'Commands to generate parameter for your virtual machine scale set.' ) ) ;
274
- parameters . command ( 'list-all' )
269
+ var parameters = vmss . category ( 'parameters' )
270
+ . description ( $ ( 'Commands to manage parameter for your virtual machine scale set .' ) ) ;
271
+ var generate = parameters . category ( 'generate ' )
272
+ . description ( $ ( 'Commands to generate parameter file for your virtual machine scale set.' ) ) ;
273
+ generate . command ( 'list-all' )
275
274
. description ( $ ( 'Generate vmss parameter string or files.' ) )
276
275
. usage ( '[options]' )
277
- . option ( '--generate' , $ ( 'To generate parameter string/file for method: listAll.' ) )
278
- . option ( '--output-file <output-file>' , $ ( 'The output file path.' ) )
279
- . execute ( function ( generate , outputFile , options , _ ) {
276
+ . option ( '--parameter-file <output-file>' , $ ( 'The parameter file path.' ) )
277
+ . execute ( function ( outputFile , options , _ ) {
280
278
console . log ( "{}" ) ;
281
279
var filePath = "vmss_listAll.json" ;
282
280
if ( options . outputFile ) { filePath = options . outputFile ; } ;
@@ -587,16 +585,15 @@ exports.init = function (cli) {
587
585
var result = computeManagementClient . virtualMachineScaleSetVMs . list ( parametersObj , _ ) ;
588
586
cli . output . json ( result ) ;
589
587
} ) ;
590
- var parameters = cli . category ( 'parameters' )
591
- . description ( $ ( 'Commands to generate and patch parameters .' ) )
592
- . category ( 'vmssvm ' )
593
- . description ( $ ( 'Commands to generate parameter for your virtual machine scale set vm.' ) ) ;
594
- parameters . command ( 'list' )
588
+ var parameters = vmssvm . category ( 'parameters' )
589
+ . description ( $ ( 'Commands to manage parameter for your virtual machine scale set vm .' ) ) ;
590
+ var generate = parameters . category ( 'generate ' )
591
+ . description ( $ ( 'Commands to generate parameter file for your virtual machine scale set vm.' ) ) ;
592
+ generate . command ( 'list' )
595
593
. description ( $ ( 'Generate vmssvm parameter string or files.' ) )
596
594
. usage ( '[options]' )
597
- . option ( '--generate' , $ ( 'To generate parameter string/file for method: list.' ) )
598
- . option ( '--output-file <output-file>' , $ ( 'The output file path.' ) )
599
- . execute ( function ( generate , outputFile , options , _ ) {
595
+ . option ( '--parameter-file <output-file>' , $ ( 'The parameter file path.' ) )
596
+ . execute ( function ( outputFile , options , _ ) {
600
597
console . log ( "{\"expandExpression\":\"\",\"filterExpression\":\"\",\"resourceGroupName\":\"\",\"selectExpression\":\"\",\"virtualMachineScaleSetName\":\"\"}" ) ;
601
598
var filePath = "vmssvm_list.json" ;
602
599
if ( options . outputFile ) { filePath = options . outputFile ; } ;
0 commit comments