Hi Minh Nguyen - Thanks for reaching out.
At the time you are creating the context object, try making use of below switch UseConnectedAccount which shall help formulating the context via the AD account that was used.
$ctx = New-AzStorageContext -StorageAccountName <Storage account name> -UseConnectedAccount
Hope that helps!
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.