Repository: Azure/azure-sdk-for-cpp (cpp)

Issue:
Move Key Vault samples out of `test` directory, into `samples`
Why are they there?

https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-administration/test/samples

https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-certificates/test/samples

https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-keys/test/samples

https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-secrets/test/samples

Pull request description:
relocate kv samples
closes #5303 
# Pull Request Checklist

Please leverage this checklist as a reminder to address commonly occurring feedback when submitting a pull request to make sure your PR can be reviewed quickly:

See the detailed list in the [contributing guide](https://github.com/Azure/azure-sdk-for-cpp/blob/main/CONTRIBUTING.md#pull-requests).

- [ ] [C++ Guidelines](https://azure.github.io/azure-sdk/cpp_introduction.html)
- [ ] Doxygen docs
- [ ] Unit tests
- [ ] No unwanted commits/changes
- [ ] Descriptive title/description
  - [ ] PR is single purpose
  - [ ] Related issue listed
- [ ] Comments in source
- [ ] No typos
- [ ] Update changelog
- [ ] Not work-in-progress
- [ ] External references or docs updated
- [ ] Self review of PR done
- [ ] Any breaking changes?


Patch:
diff --git a/sdk/keyvault/assets.json b/sdk/keyvault/assets.json
index a57058b0e..59fc49329 100644
--- a/sdk/keyvault/assets.json
+++ b/sdk/keyvault/assets.json
@@ -2,5 +2,5 @@
   "AssetsRepo": "Azure/azure-sdk-assets",
   "AssetsRepoPrefixPath": "cpp",
   "TagPrefix": "cpp/keyvault",
-  "Tag": "cpp/keyvault_9c4851577d"
+  "Tag": "cpp/keyvault_b43656c9a5"
 }
diff --git a/sdk/keyvault/azure-security-keyvault-certificates/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-certificates/CMakeLists.txt
index 8f35a7ed9..b6883613d 100644
--- a/sdk/keyvault/azure-security-keyvault-certificates/CMakeLists.txt
+++ b/sdk/keyvault/azure-security-keyvault-certificates/CMakeLists.txt
@@ -118,7 +118,7 @@ if (BUILD_PERFORMANCE_TESTS)
 endif()
 
 if(BUILD_SAMPLES)
-   add_subdirectory(test/samples)
+   add_subdirectory(samples)
 endif()
 
 az_vcpkg_export(
diff --git a/sdk/keyvault/azure-security-keyvault-certificates/test/samples/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-certificates/samples/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-certificates/test/samples/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-certificates/samples/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-basic-operations/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-basic-operations/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-basic-operations/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-basic-operations/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-basic-operations/certificate_basic_operations.cpp b/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-basic-operations/certificate_basic_operations.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-basic-operations/certificate_basic_operations.cpp
rename to sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-basic-operations/certificate_basic_operations.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-get-certificates/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-get-certificates/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-get-certificates/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-get-certificates/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-get-certificates/certificate_get_certificates.cpp b/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-get-certificates/certificate_get_certificates.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-get-certificates/certificate_get_certificates.cpp
rename to sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-get-certificates/certificate_get_certificates.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-import-certificate/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-import-certificate/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-import-certificate/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-import-certificate/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-import-certificate/certificate_import_certificate.cpp b/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-import-certificate/certificate_import_certificate.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-import-certificate/certificate_import_certificate.cpp
rename to sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-import-certificate/certificate_import_certificate.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate_basic_operations.md b/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate_basic_operations.md
index c5646005f..ba437238e 100644
--- a/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate_basic_operations.md
+++ b/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate_basic_operations.md
@@ -97,4 +97,6 @@ certificateClient.PurgeDeletedCertificate(certificateName);
 ## Source
 
 To see the full example source, see:
-[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-basic-operations)
+[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-basic-operations)
+
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/identity/azure-identity/README.md
diff --git a/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate_get_certificates.md b/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate_get_certificates.md
index 6e9465de4..293b8cad9 100644
--- a/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate_get_certificates.md
+++ b/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate_get_certificates.md
@@ -130,4 +130,6 @@ If the Azure Key Vault is soft delete-enabled and you want to permanently delete
 ## Source
 
 To see the full example source, see:
-[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-get-certificates)
+[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-get-certificates)
+
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/identity/azure-identity/README.md
diff --git a/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate_import_certificate.md b/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate_import_certificate.md
index c8a495a3a..66df98b5f 100644
--- a/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate_import_certificate.md
+++ b/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate_import_certificate.md
@@ -90,4 +90,6 @@ certificateClient.PurgeDeletedCertificate(pemName);
 ## Source
 
 To see the full example source, see:
-[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-certificates/test/samples/certificate-import-certificate)
+[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-certificates/samples/certificate-import-certificate)
+
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/identity/azure-identity/README.md
diff --git a/sdk/keyvault/azure-security-keyvault-keys/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-keys/CMakeLists.txt
index 18098c757..431fcfe71 100644
--- a/sdk/keyvault/azure-security-keyvault-keys/CMakeLists.txt
+++ b/sdk/keyvault/azure-security-keyvault-keys/CMakeLists.txt
@@ -154,7 +154,7 @@ if (BUILD_PERFORMANCE_TESTS)
 endif()
 
 if(BUILD_SAMPLES)
-  add_subdirectory(test/samples)
+  add_subdirectory(samples)
 endif()
 
 az_vcpkg_export(
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-keys/samples/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-keys/samples/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample1-hello-world/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-keys/samples/sample1-hello-world/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample1-hello-world/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample1-hello-world/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample1-hello-world/sample1_hello_world.cpp b/sdk/keyvault/azure-security-keyvault-keys/samples/sample1-hello-world/sample1_hello_world.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample1-hello-world/sample1_hello_world.cpp
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample1-hello-world/sample1_hello_world.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-keys/samples/sample1_hello_world.md b/sdk/keyvault/azure-security-keyvault-keys/samples/sample1_hello_world.md
index 308478fe7..195533243 100644
--- a/sdk/keyvault/azure-security-keyvault-keys/samples/sample1_hello_world.md
+++ b/sdk/keyvault/azure-security-keyvault-keys/samples/sample1_hello_world.md
@@ -91,6 +91,6 @@ keyClient.PurgeDeletedKey(rsaKeyName);
 
 ## Source
 
-- [sample1_hello_world.cpp](https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample1-hello-world/sample1_hello_world.cpp)
+- [sample1_hello_world.cpp](https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-keys/samples/sample1-hello-world/sample1_hello_world.cpp)
 
 [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/identity/azure-identity/README.md
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample2-backup-and-restore/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-keys/samples/sample2-backup-and-restore/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample2-backup-and-restore/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample2-backup-and-restore/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample2-backup-and-restore/sample2_backup_and_restore.cpp b/sdk/keyvault/azure-security-keyvault-keys/samples/sample2-backup-and-restore/sample2_backup_and_restore.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample2-backup-and-restore/sample2_backup_and_restore.cpp
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample2-backup-and-restore/sample2_backup_and_restore.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-keys/samples/sample2_backup_and_restore.md b/sdk/keyvault/azure-security-keyvault-keys/samples/sample2_backup_and_restore.md
index 4accccc0c..76c089d3b 100644
--- a/sdk/keyvault/azure-security-keyvault-keys/samples/sample2_backup_and_restore.md
+++ b/sdk/keyvault/azure-security-keyvault-keys/samples/sample2_backup_and_restore.md
@@ -56,6 +56,6 @@ auto restoredKey = keyClient.RestoreKeyBackup(inMemoryBackup).ExtractValue();
 
 To see the full example source, see:
 
-- [sample2_backup_and_restore.cpp](https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample2-backup-and-restore/sample2_backup_and_restore.cpp)
+- [sample2_backup_and_restore.cpp](https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-keys/samples/sample2-backup-and-restore/sample2_backup_and_restore.cpp)
 
 [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/identity/azure-identity/README.md
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample3-get-keys/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-keys/samples/sample3-get-keys/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample3-get-keys/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample3-get-keys/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample3-get-keys/sample3_get_keys.cpp b/sdk/keyvault/azure-security-keyvault-keys/samples/sample3-get-keys/sample3_get_keys.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample3-get-keys/sample3_get_keys.cpp
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample3-get-keys/sample3_get_keys.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-keys/samples/sample3_get_keys.md b/sdk/keyvault/azure-security-keyvault-keys/samples/sample3_get_keys.md
index ead1dfa02..527f2a03c 100644
--- a/sdk/keyvault/azure-security-keyvault-keys/samples/sample3_get_keys.md
+++ b/sdk/keyvault/azure-security-keyvault-keys/samples/sample3_get_keys.md
@@ -163,6 +163,6 @@ for (auto keysDeletedPage = keyClient.GetDeletedKeys().ExtractValue();;)
 
 To see the full example source, see:
 
-- [sample3_get_keys.cpp](https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample3-get-keys/sample3_get_keys.cpp)
+- [sample3_get_keys.cpp](https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-keys/samples/sample3-get-keys/sample3_get_keys.cpp)
 
 [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/identity/azure-identity/README.md
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample4-encrypt-decrypt/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-keys/samples/sample4-encrypt-decrypt/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample4-encrypt-decrypt/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample4-encrypt-decrypt/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample4-encrypt-decrypt/sample4_encrypt_decrypt.cpp b/sdk/keyvault/azure-security-keyvault-keys/samples/sample4-encrypt-decrypt/sample4_encrypt_decrypt.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample4-encrypt-decrypt/sample4_encrypt_decrypt.cpp
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample4-encrypt-decrypt/sample4_encrypt_decrypt.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-keys/samples/sample4_encrypt_decrypt.md b/sdk/keyvault/azure-security-keyvault-keys/samples/sample4_encrypt_decrypt.md
index 3650f82a7..95e01b03f 100644
--- a/sdk/keyvault/azure-security-keyvault-keys/samples/sample4_encrypt_decrypt.md
+++ b/sdk/keyvault/azure-security-keyvault-keys/samples/sample4_encrypt_decrypt.md
@@ -72,6 +72,4 @@ std::cout << " - Decrypted data using the algorithm " << decryptResult.Algorithm
 
 ## Source
 
-To see the full example source, see:
-
-- sample4_encrypt_decrypt.cpp
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/identity/azure-identity/README.md
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample5-sign-verify/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-keys/samples/sample5-sign-verify/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample5-sign-verify/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample5-sign-verify/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample5-sign-verify/sample5_sign_verify.cpp b/sdk/keyvault/azure-security-keyvault-keys/samples/sample5-sign-verify/sample5_sign_verify.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample5-sign-verify/sample5_sign_verify.cpp
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample5-sign-verify/sample5_sign_verify.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-keys/samples/sample5_sign_verify.md b/sdk/keyvault/azure-security-keyvault-keys/samples/sample5_sign_verify.md
index 8d43ae6a9..a41f531b8 100644
--- a/sdk/keyvault/azure-security-keyvault-keys/samples/sample5_sign_verify.md
+++ b/sdk/keyvault/azure-security-keyvault-keys/samples/sample5_sign_verify.md
@@ -138,6 +138,4 @@ std::cout << " - Verified the signature using the algorithm "
 
 ## Source
 
-To see the full example source, see:
-
-- sample5_sign_verify.cpp
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/identity/azure-identity/README.md
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample6-wrap-unwrap/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-keys/samples/sample6-wrap-unwrap/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample6-wrap-unwrap/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample6-wrap-unwrap/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample6-wrap-unwrap/sample6_wrap_unwrap.cpp b/sdk/keyvault/azure-security-keyvault-keys/samples/sample6-wrap-unwrap/sample6_wrap_unwrap.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample6-wrap-unwrap/sample6_wrap_unwrap.cpp
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample6-wrap-unwrap/sample6_wrap_unwrap.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-keys/samples/sample6_wrap_unwrap.md b/sdk/keyvault/azure-security-keyvault-keys/samples/sample6_wrap_unwrap.md
index fd38ca0fc..ddef45c3f 100644
--- a/sdk/keyvault/azure-security-keyvault-keys/samples/sample6_wrap_unwrap.md
+++ b/sdk/keyvault/azure-security-keyvault-keys/samples/sample6_wrap_unwrap.md
@@ -98,6 +98,6 @@ keyClient.PurgeDeletedKey(rsaKeyName);
 
 ## Source
 
-- [sample6_wrap_unwrap.cpp](https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample6-wrap-unwrap/sample6_wrap_unwrap.cpp)
+- [sample6_wrap_unwrap.cpp](https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-keys/samples/sample6-wrap-unwrap/sample6_wrap_unwrap.cpp)
 
 [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/identity/azure-identity/README.md
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample7-key-rotation/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-keys/samples/sample7-key-rotation/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample7-key-rotation/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample7-key-rotation/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample7-key-rotation/sample7_key_rotation.cpp b/sdk/keyvault/azure-security-keyvault-keys/samples/sample7-key-rotation/sample7_key_rotation.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-keys/test/samples/sample7-key-rotation/sample7_key_rotation.cpp
rename to sdk/keyvault/azure-security-keyvault-keys/samples/sample7-key-rotation/sample7_key_rotation.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-keys/samples/sample7_key_rotation.md b/sdk/keyvault/azure-security-keyvault-keys/samples/sample7_key_rotation.md
index 183ae736c..90a68dd05 100644
--- a/sdk/keyvault/azure-security-keyvault-keys/samples/sample7_key_rotation.md
+++ b/sdk/keyvault/azure-security-keyvault-keys/samples/sample7_key_rotation.md
@@ -100,6 +100,6 @@ keyClient.PurgeDeletedKey(rsaKeyName);
 
 ## Source
 
-- [sample7_key_rotation.cpp](https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-keys/test/samples/sample7-key-rotation/sample7_key_rotation.cpp)
+- [sample7_key_rotation.cpp](https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/keyvault/azure-security-keyvault-keys/samples/sample7-key-rotation/sample7_key_rotation.cpp)
 
 [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/identity/azure-identity/README.md
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-secrets/CMakeLists.txt
index 280208205..56b5e0a89 100644
--- a/sdk/keyvault/azure-security-keyvault-secrets/CMakeLists.txt
+++ b/sdk/keyvault/azure-security-keyvault-secrets/CMakeLists.txt
@@ -118,7 +118,7 @@ if (BUILD_PERFORMANCE_TESTS)
 endif()
 
 if(BUILD_SAMPLES)
-  add_subdirectory(test/samples)
+  add_subdirectory(samples)
 endif()
 
 az_vcpkg_export(
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/test/samples/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-secrets/samples/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-secrets/test/samples/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-secrets/samples/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample1-basic-operations/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample1-basic-operations/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample1-basic-operations/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-secrets/samples/sample1-basic-operations/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample1-basic-operations/sample1_basic_operations.cpp b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample1-basic-operations/sample1_basic_operations.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample1-basic-operations/sample1_basic_operations.cpp
rename to sdk/keyvault/azure-security-keyvault-secrets/samples/sample1-basic-operations/sample1_basic_operations.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/samples/sample1_basic_operations.md b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample1_basic_operations.md
index 945db5630..1e40868d9 100644
--- a/sdk/keyvault/azure-security-keyvault-secrets/samples/sample1_basic_operations.md
+++ b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample1_basic_operations.md
@@ -84,4 +84,4 @@ secretClient.PurgeDeletedSecret(secret.Name);
 ## Source
 
 To see the full example source, see:
-[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample1-basic-operations)
+[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-secrets/samples/sample1-basic-operations)
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample2-backup-restore/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample2-backup-restore/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample2-backup-restore/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-secrets/samples/sample2-backup-restore/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample2-backup-restore/sample2_backup_restore.cpp b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample2-backup-restore/sample2_backup_restore.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample2-backup-restore/sample2_backup_restore.cpp
rename to sdk/keyvault/azure-security-keyvault-secrets/samples/sample2-backup-restore/sample2_backup_restore.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/samples/sample2_backup_restore.md b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample2_backup_restore.md
index 902737181..de43d7bc6 100644
--- a/sdk/keyvault/azure-security-keyvault-secrets/samples/sample2_backup_restore.md
+++ b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample2_backup_restore.md
@@ -89,5 +89,5 @@ auto restoredSecret = secretClient.RestoreSecretBackup(backedUpSecret).Value;
 ## Source
 
 To see the full example source, see:
-[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample2-backup-restore)
+[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-secrets/samples/sample2-backup-restore)
 
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample3-delete-recover/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample3-delete-recover/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample3-delete-recover/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-secrets/samples/sample3-delete-recover/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample3-delete-recover/sample3_delete_recover.cpp b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample3-delete-recover/sample3_delete_recover.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample3-delete-recover/sample3_delete_recover.cpp
rename to sdk/keyvault/azure-security-keyvault-secrets/samples/sample3-delete-recover/sample3_delete_recover.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/samples/sample3_delete_recover.md b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample3_delete_recover.md
index bb2cd700d..902bc4dc4 100644
--- a/sdk/keyvault/azure-security-keyvault-secrets/samples/sample3_delete_recover.md
+++ b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample3_delete_recover.md
@@ -68,5 +68,5 @@ Secret restoredSecret = recoverOperation.PollUntilDone(2s).Value;
 ## Source
 
 To see the full example source, see:
-[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample3-delete-recover)
+[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-secrets/samples/sample3-delete-recover)
 
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample4-get-secrets-deleted/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample4-get-secrets-deleted/CMakeLists.txt
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample4-get-secrets-deleted/CMakeLists.txt
rename to sdk/keyvault/azure-security-keyvault-secrets/samples/sample4-get-secrets-deleted/CMakeLists.txt
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample4-get-secrets-deleted/sample4_get_secrets_deleted.cpp b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample4-get-secrets-deleted/sample4_get_secrets_deleted.cpp
similarity index 100%
rename from sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample4-get-secrets-deleted/sample4_get_secrets_deleted.cpp
rename to sdk/keyvault/azure-security-keyvault-secrets/samples/sample4-get-secrets-deleted/sample4_get_secrets_deleted.cpp
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/samples/sample4_get_secrets_deleted.md b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample4_get_secrets_deleted.md
index 316814ea9..ee442fc8d 100644
--- a/sdk/keyvault/azure-security-keyvault-secrets/samples/sample4_get_secrets_deleted.md
+++ b/sdk/keyvault/azure-security-keyvault-secrets/samples/sample4_get_secrets_deleted.md
@@ -120,4 +120,4 @@ secretClient.PurgeDeletedSecret(secret2.Name);
 ## Source
 
 To see the full example source, see:
-[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-secrets/test/samples/sample4-get-secrets-deleted)
+[Source Code](https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/keyvault/azure-security-keyvault-secrets/samples/sample4-get-secrets-deleted)


Test patch:
diff --git a/sdk/keyvault/azure-security-keyvault-certificates/test/ut/certificate_client_test.cpp b/sdk/keyvault/azure-security-keyvault-certificates/test/ut/certificate_client_test.cpp
index 24c5f3313..cc6176015 100644
--- a/sdk/keyvault/azure-security-keyvault-certificates/test/ut/certificate_client_test.cpp
+++ b/sdk/keyvault/azure-security-keyvault-certificates/test/ut/certificate_client_test.cpp
@@ -139,7 +139,8 @@ TEST_F(KeyVaultCertificateClientTest, GetCertificate)
 
 TEST_F(KeyVaultCertificateClientTest, GetCertificateVersion_LIVEONLY_)
 {
-  auto testName = ::testing::UnitTest::GetInstance()->current_test_info()->name();
+  auto testName = GetTestName();
+
   std::string const certificateName(testName);
 
   auto const& client = GetClientForTest(testName);
@@ -723,7 +724,7 @@ TEST_F(KeyVaultCertificateClientTest, GetDeletedCertificates)
   }
 }
 
-TEST_F(KeyVaultCertificateClientTest, DownloadImportPkcs_LIVEONLY_)
+TEST_F(KeyVaultCertificateClientTest, DownloadImportPkcs)
 {
   auto testName = GetTestName();
   std::string const pkcs(testName);
@@ -755,7 +756,7 @@ TEST_F(KeyVaultCertificateClientTest, DownloadImportPkcs_LIVEONLY_)
   }
 }
 
-TEST_F(KeyVaultCertificateClientTest, DownloadImportPem_LIVEONLY_)
+TEST_F(KeyVaultCertificateClientTest, DownloadImportPem)
 {
   auto testName = GetTestName();
   std::string const pem(testName);
@@ -795,7 +796,7 @@ TEST_F(KeyVaultCertificateClientTest, DownloadImportPem_LIVEONLY_)
 
 TEST_F(KeyVaultCertificateClientTest, UpdateCertificate_LIVEONLY_) // version is sanitized away
 {
-  auto testName = ::testing::UnitTest::GetInstance()->current_test_info()->name();
+  auto testName = GetTestName();
   std::string const certificateName(testName);
 
   auto const& client = GetClientForTest(testName);
diff --git a/sdk/keyvault/azure-security-keyvault-secrets/test/perf/inc/azure/keyvault/secrets/test/get_secret_test.hpp b/sdk/keyvault/azure-security-keyvault-secrets/test/perf/inc/azure/keyvault/secrets/test/get_secret_test.hpp
index dc7f860e2..c5f909093 100644
--- a/sdk/keyvault/azure-security-keyvault-secrets/test/perf/inc/azure/keyvault/secrets/test/get_secret_test.hpp
+++ b/sdk/keyvault/azure-security-keyvault-secrets/test/perf/inc/azure/keyvault/secrets/test/get_secret_test.hpp
@@ -83,7 +83,17 @@ namespace Azure { namespace Security { namespace KeyVault { namespace Secrets {
      * @brief Define the test
      *
      */
-    void Run(Azure::Core::Context const&) override { auto t = m_client->GetSecret(m_secretName); }
+    void Run(Azure::Core::Context const&) override
+    {
+      try
+      {
+        auto t = m_client->GetSecret(m_secretName);
+      }
+      catch (...)
+      {
+        // Do nothing
+      }
+    }
 
     /**
      * @brief Define the test options for the test.