The name 'my-keyvault-NNN' is already in use

%3CLINGO-SUB%20id%3D%22lingo-sub-2110460%22%20slang%3D%22en-US%22%3EThe%20name%20'my-keyvault-NNN'%20is%20already%20in%20use%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2110460%22%20slang%3D%22en-US%22%3E%3CP%3Ehi%20all%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20doing%20Part%20-%206%20of%20AZ%20900%20and%20trying%20to%20create%20a%20%22Key%20Vault%22%20and%20getting%20the%20following%20error%20message%3A%20%22%3CSPAN%3EThe%20name%20'my-keyvault-NNN'%20is%20already%20in%20use%2C%20or%20is%20still%20being%20reserved%20by%20a%20vault%20which%20was%20previously%20soft%20deleted.%20Please%20use%20a%20different%20name.%22%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20have%20look%20at%20the%20documentation%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fkey-vault%2Fgeneral%2Fkey-vault-recovery%3Ftabs%3Dazure-portal%23list-recover-or-purge-a-soft-deleted-key-vault%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fkey-vault%2Fgeneral%2Fkey-vault-recovery%3Ftabs%3Dazure-portal%23list-recover-or-purge-a-soft-deleted-key-vault%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EHowever%2C%20when%20I%20am%20the%20step%20where%20it%20says%3A%20%22Manage%20deleted%20key%20vaults%22%2C%20the%20concerning%20key%20vault%20cannot%20be%20found%20under%20the%20subscription.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EPlease%20can%20you%20help%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ENaveen%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2110460%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2149012%22%20slang%3D%22en-US%22%3ERe%3A%20The%20name%20'my-keyvault-NNN'%20is%20already%20in%20use%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2149012%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20having%20the%20same%20issue%20when%20I'm%20trying%20to%20complete%20this%20sandbox%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2385812%22%20slang%3D%22en-US%22%3ERe%3A%20The%20name%20'my-keyvault-NNN'%20is%20already%20in%20use%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2385812%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22campbell_kerr_0-1621989702627.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F283765iBC8617099F90811D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22campbell_kerr_0-1621989702627.png%22%20alt%3D%22campbell_kerr_0-1621989702627.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHad%20the%20same%20issue%20when%20trying%20to%20use%20%22keyvault1%22%20and%20%22kv1%22.%20It%20worked%20with%20%22testing1235134134%22%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22wikianywhere%20bounceIn%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2390143%22%20slang%3D%22en-US%22%3ERe%3A%20The%20name%20'my-keyvault-NNN'%20is%20already%20in%20use%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2390143%22%20slang%3D%22en-US%22%3EIf%20you%20read%20the%20error%20message%20it%20does%20say%20that%20the%20name%20of%20the%20keyvault%20is%20globally%20unique%2C%20meaning%20the%20name%20you%20write%20can't%20be%20in%20use%20already%20by%20any%20Azure%20customer%20worldwide.%20Just%20like%20storage%20accounts%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2390894%22%20slang%3D%22en-US%22%3ERe%3A%20The%20name%20'my-keyvault-NNN'%20is%20already%20in%20use%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2390894%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F951142%22%20target%3D%22_blank%22%3E%40naveen73%3C%2FA%3E%26nbsp%3BSo%20as%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F71452%22%20target%3D%22_blank%22%3E%40Tommy%20Kobberoe%3C%2FA%3E%26nbsp%3Bsaid%2C%20you%20need%20global%20(!)%20unique%20name.%20I've%20created%20a%20quick%20powershell%20script%20to%20generate%20random%2024%20alfa-numeric%20string%2C%20if%20someone%20is%20so%20unlucky%20as%20I%20was%20with%20thinking%20of%20unique%20name.%26nbsp%3B%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fhtml%2F%408341BD79091AF36AA2A09063B554B5CD%2Fimages%2Femoticons%2Fsmile_40x40.gif%22%20alt%3D%22%3Asmile%3A%22%20title%3D%22%3Asmile%3A%22%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20title%3D%22Powershell%20script%20-%20New-RandomAzureKeyVaultName%22%20href%3D%22https%3A%2F%2Fgist.github.com%2Forchee%2F263679a3bae74d78edcafe3acbc8f115%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPowershell%20script%20-%20New-RandomAzureKeyVaultName%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2620432%22%20slang%3D%22en-US%22%3ERe%3A%20The%20name%20'my-keyvault-NNN'%20is%20already%20in%20use%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2620432%22%20slang%3D%22en-US%22%3EPlease%20can%20you%20suggest%20i%20am%20always%20getting%20same%20vault%20error.%20I%20never%20created%20any%20vault%20and%20if%20i%20try%20to%20give%20any%20any%22Name%20your%20appliance%22%20giving%20me%20same%20vault%20error.%20Dont%20know%20form%20where%20this%20vault%20error%20i%20am%20getting.%3CBR%20%2F%3E%3CBR%20%2F%3EWhen%20i%20try%20to%20list%20CLI%20vault%20list%20it%20shows%20empty.%3CBR%20%2F%3E%3CBR%20%2F%3Eerror%3A%3CBR%20%2F%3EThe%20vault%20name%20'Assessment1578kv'%20is%20already%20in%20use.%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
New Contributor

hi all,

 

I am doing Part - 6 of AZ 900 and trying to create a "Key Vault" and getting the following error message: "The name 'my-keyvault-NNN' is already in use, or is still being reserved by a vault which was previously soft deleted. Please use a different name."

 

I have look at the documentation: https://docs.microsoft.com/en-us/azure/key-vault/general/key-vault-recovery?tabs=azure-portal#list-r...

 

However, when I am the step where it says: "Manage deleted key vaults", the concerning key vault cannot be found under the subscription.

 

Please can you help?

 

Thanks,

 

Naveen

6 Replies

I'm having the same issue when I'm trying to complete this sandbox

campbell_kerr_0-1621989702627.png

Had the same issue when trying to use "keyvault1" and "kv1". It worked with "testing1235134134"

 

 

 

 
If you read the error message it does say that the name of the keyvault is globally unique, meaning the name you write can't be in use already by any Azure customer worldwide. Just like storage accounts

@naveen73 So as @Tommy Kobberoe said, you need global (!) unique name. I've created a quick powershell script to generate random 24 alfa-numeric string, if someone is so unlucky as I was with thinking of unique name.  :smile:

Powershell script - New-RandomAzureKeyVaultName 


Please can you suggest i am always getting same vault error. I never created any vault and if i try to give any any"Name your appliance" giving me same vault error. Dont know form where this vault error i am getting.

When i try to list CLI vault list it shows empty.

error:
The vault name 'Assessment1578kv' is already in use.

@nitya041981 it does not matter if you have ever created vault. As mentioned before - these are global unique names. It has to be unique globally. Just use the PS script to generate random vault key name that I've provided.

www.000webhost.com