azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

[Feature]: Publish-AzVMDscConfiguration Repository Parameter

Open brianwest opened this issue 1 year ago • 5 comments

Description of the new feature

In order to support publishing DSC configurations via the Publish-AzVMDscConfiguration cmdlet in the air-gapped clouds, a repository parameter should be added to support pwsh repositories other than the PSGallery for dependent modules.

Proposed implementation details (optional)

No response

brianwest avatar Apr 01 '24 19:04 brianwest

@brianwest Thanks for the feedback. We are currently investigating.

TravisCragg-MSFT avatar Apr 18 '24 19:04 TravisCragg-MSFT

Looping @n-bajaj and assigning to them

GabstaMSFT avatar Apr 18 '24 19:04 GabstaMSFT

There are currently no plans to add this feature in Automation DSC. Azure Automanage Machine Configuration is the recommended service for DSC related scenarios.

n-bajaj avatar Jul 25 '24 15:07 n-bajaj

@brianwest have you been able to determine if using Azure Automanage Machine Configuration will fit your needs as mentioned above?

GabstaMSFT avatar Aug 20 '24 16:08 GabstaMSFT

I see what you mean. The required modules need to be in the PSModulePath and then the New-GuestConfigurationPackage cmdlet will be able to include them in the configuration package artifact: https://learn.microsoft.com/en-us/azure/governance/machine-configuration/how-to/develop-custom-package/2-create-package#create-a-configuration-package-artifact. That should do the trick. Thank you!

brianwest avatar Oct 13 '24 12:10 brianwest

Closing this as this seems to be resolved. Thanks!

haagha avatar Oct 28 '24 20:10 haagha