question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az vm extension set --force-update ignored or doesn't work

See original GitHub issue

Describe the bug

Command Name az vm extension set

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • az vm extension set --force-update -n "KeyVaultForLinux" --publisher Microsoft.Azure.KeyVault --resource-group "RG" --vm-name "vm" --version 2.0 --settings keyvault_ext.json

Expected Behavior

extension configuration should be updated

Environment Summary

macOS-12.0.1-x86_64-i386-64bit, Darwin 21.1.0
Python 3.10.1
Installer: HOMEBREW

azure-cli 2.32.0

Additional Context

KeyVault extension was installed on vm. After, I wanted to update extension settings. I updated my json file and ran command mentioned above - new settings were applied few times, but then for some reason extension stopped applying new settings. I can see in extension logs (on vm side) that old configuration is used.

Initial settings:

{
  "secretsManagementSettings": {
    "pollingIntervalInS": "3600",
    "requireInitialSync": true,
    "observedCertificates": ["link to my cert"],
    "certificateStoreName": "",
    "linkOnRenewal": false,
    "certificateStoreLocation": "/tmp"
  }
}

First update (which was applied correctly)

{
  "secretsManagementSettings": {
    "pollingIntervalInS": "30",
    "requireInitialSync": true,
    "observedCertificates": ["link to my cert"],
    "certificateStoreName": "",
    "linkOnRenewal": false,
    "certificateStoreLocation": "/tmp"
  }
}

Second update (which was applied correctly)

{
  "secretsManagementSettings": {
    "pollingIntervalInS": "30",
    "requireInitialSync": true,
    "observedCertificates": ["link to my cert"],
    "certificateStoreName": "",
    "linkOnRenewal": false,
    "certificateStoreLocation": "/tmp"
  }
}

Next update (which was ignored)

{
  "secretsManagementSettings": {
    "pollingIntervalInS": "35",
    "requireInitialSync": true,
    "observedCertificates": [],
    "certificateStoreName": "",
    "linkOnRenewal": false,
    "certificateStoreLocation": "/tmp"
  }
}

What I see on vm side: There is a dir “/var/lib/waagent/Microsoft.Azure.KeyVault.KeyVaultForLinux-2.1.1774.23/config/” which seems store configuration for extension

ls /var/lib/waagent/Microsoft.Azure.KeyVault.KeyVaultForLinux-2.1.1774.23/config/ -1
0.settings
1.settings
2.settings
3.settings
4.settings
HandlerState
HandlerStatus

Files from 0 to 4 contain settings from my keyvault_ext.json file. But no new versions appear after near 4-5 updates

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
izenkcommented, Jan 18, 2022

Unfortunately I cant reproduce the problem… I reinstalled extension and after that I can update configuration without any problems or just get an error if something is wrong.

0reactions
zhoxing-mscommented, Jan 19, 2022

OK, maybe the service side has fixed this bug, let me close this issue first. When you can reproduce this issue, please feel free to contact me to reopen it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Azure Windows VM extension failures
If the VM Agent isn't running or is failing to report a Ready status to the Azure platform, then the extensions won't work...
Read more >
azure-cli-vm - Python Package Health Analysis | Snyk
Learn more about azure-cli-vm: package health score, popularity, ... vm/vmss extension set: Expose --force-update flag to update the extension even when the ...
Read more >
Amazon EKS - User Guide
A: Amazon EKS Anywhere isn't designed to run in the AWS cloud. It doesn't integrate with the. Kubernetes Cluster API Provider for AWS....
Read more >
Ubuntu Manpage: vifm - vi file manager
'[a-z][A-Z][0-9] navigate to the file set for the mark. There are also several special ... Unlike other q{x} commands this one doesn't work...
Read more >
Lenovo XClarity Essentials OneCLI User Guide
You can run multiple OneCLI instances on a client operating system to manage ... In batch mode, the show and set commands ignore...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found