Files
semantic-kernel/python/tests/unit/memory
charotAmineandEvan Mattson 6ab4fb2f6e Python: Add CMK support to create Index (#4949)
### Motivation and Context

Thank you for your contribution to the semantic-kernel repo!
Please help reviewers and future users, providing the following
information:
  1. Why is this change required?
When we try to create an index in AI Search where the encryption is
enabled we have this issue :
        Code: OperationNotAllowed
Message: The creation of non-encrypted Indexes is not alowed when
encryption policy is enforced.
      Which make the operation create_collection unusable
  2. What problem does it solve?
      Use create_collection function
  3. What scenario does it contribute to?
      If the customer uses the CMK for the encryption
  4. If it fixes an open issue, please link to the issue here.

### Description

The Azure Search Documents supports the encryption key with the class
SearchResourceEncryptionKey, adding it (Free to the customer to use it
or not) resolve the issue.
Maybe it may be use it in save_information function as well ?

### Contribution Checklist

<!-- Before submitting this PR, please make sure: -->

- [X] The code builds clean without any errors or warnings
- [X] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [X] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄

---------

Co-authored-by: Evan Mattson <[email protected]>
2024-02-09 15:36:11 +00:00
..