Thank you for your post!
Error Message:
Parameter 'secret_name' must conform to the following pattern: '^[0-9a-zA-Z-]+$'
I understand that you're trying to upload Key-Value pairs into the Azure Key Vault but you're running into the above error message. When manually uploading these Key-Value pairs one-by-one everything works as expected when using the az keyvault secret set command, but the issue comes when you try to run your Bash Script.
I was able to reproduce your issue within my environment and it looks like the Secret Name is being created with the quotes ("d4c45726...."). However, after removing the quotes within the TXT, I was able to create all of the Key Value pairs you referenced except for 5b849093...
I hope this helps!
If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.
If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.