Azure / azure-linux-extensions

Linux Virtual Machine Extensions for Azure
Apache License 2.0
309 stars 255 forks source link

KeyVaultForLinux fails to run #1915

Open yacuzo opened 7 months ago

yacuzo commented 7 months ago

Environment:

Settings used:

{
    "settings": {
        "secretsManagementSettings": {
            "pollingIntervalInS": "3600",
            "linkOnRenewal": "false",
            "certificateStoreLocation": "/var/cert",
            "requireInitialSync": true,
            "observedCertificates": [
                "https://cert-url"
            ]
        }
    },
    "authenticationSettings": {
        "msiEndpoint": "http://169.254.169.254/metadata/identity",
        "msiClientId": "managed identity object ID"
    }
}

Error produced: "Attempt to get non-existent AuthConfig". I can't find anything on this error anywhere online, not even a code search of this repo has anything.

AADSSHLoginForLinux works fine, I can use az ssh to connect.

Any pointers to what might cause this?

alix-tlse commented 6 months ago

Hello, I think "authenticationSettings" have to be inside the "settings" definition and not at the same level. Source : Key Vault virtual machine extension for Linux - Extension schema