This is in the doc and it doesn't work:
az vm extension set resource_group_namevm_name LinuxDiagnostic Microsoft.Azure.Diagnostics '3.*' --private-config-path PrivateConfig.json --public-config-path PublicConfig.json
Something like this works:
az vm extension set -g resource_group_name --vm-name vm_name --name LinuxDiagnostic --publisher Microsoft.Azure.Diagnostics --protected-settings .\PrivateConfig.json --settings .\PublicConfig.json
Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
[Enter feedback here]
This is in the doc and it doesn't work: az vm extension set resource_group_name vm_name LinuxDiagnostic Microsoft.Azure.Diagnostics '3.*' --private-config-path PrivateConfig.json --public-config-path PublicConfig.json
Something like this works: az vm extension set -g resource_group_name --vm-name vm_name --name LinuxDiagnostic --publisher Microsoft.Azure.Diagnostics --protected-settings .\PrivateConfig.json --settings .\PublicConfig.json
Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.