convert virtual dir to applicatiion

existing site has virtual directory but I to convert to applicationpool under DSC.

if i create an application pool the resource that it points to are local and i need to access remote file share.

Applications = @()
VirtualDirectories = @(
@{
Name = 'virtualfolder1'
PhysicalPath = "\\fileshare\outthere"
Ensure = "Present"

}
@{
Name = 'virtualfolder2'
PhysicalPath = "\\fileshare\outthere2"
Ensure = 'Present'

}
)
}