summary import { PrivateEndpointConnection , StorageManagementClient } from "@msinternal/storage-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function storageAccountPutPrivateEndpointConnection ( ) { const subscriptionId = "{subscription-id}" ; const resourceGroupName = "res7687" ; const accountName = "sto9699" ; const privateEndpointConnectionName = "{privateEndpointConnectionName}" ; const properties = { privateLinkServiceConnectionState : { description : "Auto-Approved" , status : "Approved" } } ; const credential = new DefaultAzureCredential ( ) ; const client = new StorageManagementClient ( credential , subscriptionId ) ; const result = await client . privateEndpointConnections . put ( resourceGroupName , accountName , privateEndpointConnectionName , properties ) ; console . log ( result ) ; } storageAccountPutPrivateEndpointConnection ( ) . catch ( console . error ) ;