Closed rraveendran-msft closed 2 years ago
Label prediction was below confidence level 0.6
for Model:ServiceLabels
: 'Storage:0.2255629,KeyVault:0.21285696,Machine Learning:0.1379538'
Annnd I got it. Turns out to not be related to any of the above, but the VNet that the compute instance was in. I thought it was sufficient that in the Keyvault networking settings I set it to allow traffic only from the VNet, but I also needed to add outbound access to the Azure Keyvault Service Tag (more info on service tags here). In retrospect, it makes a lot of sense why it was timing out. 🤦🏽♂️
Describe the bug When trying to retrieve a secret with SecretClient.get_secret, it hangs for a very long time before eventually timing out. The SecretClient is initialized with a ManagedIdentity that has Keyvault Secrets User permissions on the keyvault in question.
To Reproduce Steps to reproduce the behavior:
Expected behavior Retrieve the secret almost immediately.
Additional context Here is the full stack trace:
And here is the result of
pip freeze
: