Hello Bjorn !
Thank you for posting on Microsoft Learn.
Inside the ZIP root, you must have a folder with the exact same name as the module, and inside that folder, the .psd1
and .psm1
files must reside, like so:
ModuleName.zip
│
└───ModuleName\
│ ModuleName.psd1
│ ModuleName.psm1
└───Private\
└───Public\
└───Config\
Create a folder called ModuleName
(exactly matching the module name) and ove ModuleName.psd1
, ModuleName.psm1
, and all subfolders (Private
, Public
, Config
...) inside this folder.
Then zip the folder so that the ZIP file root contains only the ModuleName
folder.