【发布时间】:2021-06-07 17:06:20
【问题描述】:
我正在检查如何使用 Azure 中的所需状态配置 (DSC) 来进行 Windows VM 的代理设置。有 DSC 的库吗?
通常,我使用以下命令从 cli 设置代理:
Set-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -name ProxyServer -Value "123.123.123.123:80"
Set-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' -name ProxyEnable -Value 1
netsh winhttp set proxy 123.123.123.123:80
有什么想法吗?
【问题讨论】:
标签: windows azure proxy azure-automation dsc