@Pramit Bhaumik Firstly, apologies for the delay in responding here and any inconvenience this issue may have caused.
For the BlobContainerClient only getEncryptionScope() method is available. There is no setEncryptionScope()
Could you try to use the BlobServiceClient and set the encryption scope during the creation of the container ?
// Create a BlobServiceClient object
BlobServiceClient blobServiceClient = new BlobServiceClientBuilder()
.connectionString(connectionString)
.buildClient();
// Set the encryption scope on the container during creation
BlobContainerClient containerClient = blobServiceClient.createBlobContainer(new BlobContainerCreateOptions(containerName)
.setEncryptionScope("myEncryptionScope"));
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.