summary import { LeaseShareRequest , StorageManagementClient } from "@msinternal/storage-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function breakALeaseOnAShare ( ) { const subscriptionId = "{subscription-id}" ; const resourceGroupName = "res3376" ; const accountName = "sto328" ; const shareName = "share12" ; const parameters = { action : "Break" , breakPeriod : undefined , leaseDuration : undefined , leaseId : "8698f513-fa75-44a1-b8eb-30ba336af27d" , proposedLeaseId : undefined } ; const options = { parameters : parameters } ; const credential = new DefaultAzureCredential ( ) ; const client = new StorageManagementClient ( credential , subscriptionId ) ; const result = await client . fileShares . lease ( resourceGroupName , accountName , shareName , options ) ; console . log ( result ) ; } breakALeaseOnAShare ( ) . catch ( console . error ) ;