Skip to content

Commit 9512806

Browse files
authored
Update custom-script-linux.md
1 parent c46d514 commit 9512806

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

articles/virtual-machines/extensions/custom-script-linux.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -448,27 +448,26 @@ Here you can see:
448448
* The extension downloading file and the result of that.
449449
* The command being run and the result.
450450

451-
You can also retrieve the execution state of the Custom Script Extension **including the actual arguments passed as the `commandToExecute`** by using Azure CLI:
451+
You can also retrieve the execution state of the Custom Script Extension including the actual arguments passed as the `commandToExecute` by using Azure CLI:
452452

453453
```azurecli
454454
az vm extension list -g myResourceGroup --vm-name myVM
455455
```
456456

457-
The output looks like the following text, abbreviated for clarity:
457+
The output looks like the following text:
458458

459459
```output
460460
[
461461
{
462462
"autoUpgradeMinorVersion": true,
463463
"forceUpdateTag": null,
464-
"id": "/subscriptions/<REDACTED>/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/adminVM/extensions/newuserscript",
465-
"publisher": "Microsoft.Azure.Extensions",
464+
"id": "/subscriptions/subscriptionid/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname/extensions/customscript",
466465
"resourceGroup": "rgname",
467466
"settings": {
468-
"commandToExecute": "sh setupClusterDomain.sh Y <REDACTED> <REDACTED> <REDACTED> <REDACTED> ",
467+
"commandToExecute": "sh script.sh > ",
469468
"fileUris": [
470-
"https://catalogartifact.azureedge.net/publicartifacts/<REDACTED>/scripts/setupClusterDomain.sh",
471-
"https://catalogartifact.azureedge.net/publicartifacts/<REDACTED>/scripts/oradown.sh"
469+
"https://catalogartifact.azureedge.net/publicartifacts/scripts/script.sh",
470+
"https://catalogartifact.azureedge.net/publicartifacts/scripts/script.sh"
472471
]
473472
},
474473
"tags": null,
@@ -479,7 +478,7 @@ The output looks like the following text, abbreviated for clarity:
479478
{
480479
"autoUpgradeMinorVersion": true,
481480
"forceUpdateTag": null,
482-
"id": "/subscriptions/<REDACTED>/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/adminVM/extensions/OmsAgentForLinux",
481+
"id": "/subscriptions/subscriptionid/resourceGroups/rgname/providers/Microsoft.Compute/virtualMachines/vmname/extensions/OmsAgentForLinux",
483482
"instanceView": null,
484483
"location": "eastus",
485484
"name": "OmsAgentForLinux",
@@ -488,7 +487,7 @@ The output looks like the following text, abbreviated for clarity:
488487
"publisher": "Microsoft.EnterpriseCloud.Monitoring",
489488
"resourceGroup": "rgname",
490489
"settings": {
491-
"workspaceId": "1fec5f21-1150-4c68-8bbe-b433a2525449"
490+
"workspaceId": "workspaceid"
492491
},
493492
"tags": null,
494493
"type": "Microsoft.Compute/virtualMachines/extensions",

0 commit comments

Comments
 (0)