summary import { FileShare , StorageManagementClient } from "@msinternal/storage-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function updateShareAcls ( ) { const subscriptionId = "{subscription-id}" ; const resourceGroupName = "res3376" ; const accountName = "sto328" ; const shareName = "share6185" ; const fileShare = { signedIdentifiers : [ { accessPolicy : { expiryTime : new Date ( "2021-05-01T08:49:37.0000000Z" ) , permission : "rwd" , startTime : new Date ( "2021-04-01T08:49:37.0000000Z" ) } , id : "MTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTI" } ] } ; const credential = new DefaultAzureCredential ( ) ; const client = new StorageManagementClient ( credential , subscriptionId ) ; const result = await client . fileShares . update ( resourceGroupName , accountName , shareName , fileShare ) ; console . log ( result ) ; } updateShareAcls ( ) . catch ( console . error ) ;