I'm trying to use DSC extension for Azure VM. I have created zip archive with main PS file, and included additional archive to the main archive, with couple additional files
After DSC extension is applied,I see my additional archive in DSC dirrectory

My question is, how to obtain that path C:\Packages\Plugins\Microsoft.Powershell.DSC\2.83.5\DSCWork\IISInstall.0 for future use in my DSC script? I tried to find any env variable, that contains that path? but futile. Maybe do you guys know how to manage it? I appreciate any help. thank you all
I have created DSC extension created, .ps1 file in PowerShell and place the iis Install.ps1 script on the specified VM and it executed successfully like below:
File uploaded automatically in storage account:
In your scenario, to obtain that path future in DSC script use
$env:TEMPenvironment variable. A temporary folder with a name starts with "DSC" is created by the DSC extension in the$env:TEMPdirectory. You can save files you require for your DSC script in this folder.If you are hardcoding a specific version number or subdirectory in your DSC script values could potentially change in the future.
You can use to dynamically resolve the DSC working directory path using below script:
This way, even if the version number changes, your script will automatically use the latest version available.
Reference:
Desired State Configuration for Azure overview - Azure Virtual Machines | Microsoft Learn