Closed jodok closed 5 months ago
Hi @jodok,
2.55.0 is not the latest Azure CLI(2.57.0).
If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.
Thank you for opening this issue, we will look into it.
problem is the same with latest azure-cli. updated the issue accordingly (version info, traceback)
Can you check if the terraform-staging
keyvault really exist and contains a key naming sops
?
yes, it exists (encryption is still not workin):
➜ ~ az keyvault key list --vault-name treely-staging
[
{
"attributes": {
"created": "2024-02-11T00:34:59+00:00",
"enabled": true,
"expires": null,
"exportable": false,
"hsmPlatform": "0",
"notBefore": null,
"recoverableDays": 90,
"recoveryLevel": "Recoverable+Purgeable",
"updated": "2024-02-11T00:34:59+00:00"
},
"kid": "https://treely-staging.vault.azure.net/keys/sops",
"managed": null,
"name": "sops",
"releasePolicy": null,
"tags": {
"Environment": "staging",
"Provider": "terraform",
"TFWorkspace": "bootstrap-staging"
}
}
]
HA! it's treely-staging
and not terraform-staging
.
thanks for pointing out. (an error message "doesn not exist" would be preferred to a "connection timeout")
Describe the bug
I'm trying to encrypt a piece of text via
az
commandline with a key, however the HTTP connection seems to time out. listing keys and other commands work, though.Related command
az keyvault key encrypt --name <myname> --vault-name <myvault> --algorithm RSA-OAEP --value "this is plaintext" --data-type plaintext
Errors
('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
Issue script & Debug output
Expected behavior
it returns the encrypted value of the string
Environment Summary
Additional context
No response