Hi,
This is the correct method. How have you identified that is not applied? Did you also enabled the Defender for Storage plan on the subscription where the storage account is located?
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.