microsoft / PowerShell-DSC-for-Linux

PowerShell Desired State Configuration - for Linux
Other
339 stars 132 forks source link

DSC Extension for linux. Error in the dsc.py #834

Open Boriszn opened 2 years ago

Boriszn commented 2 years ago

Hey Azure Team, could u please help?

During the DSC Installation for Linux I'm receiving the following issues: image

OS: Linux (ubuntu 20.04) I'm using the following string for extension provisioning:

$vmname = 'ds'
$location = 'westeurope'
$rgName = 'rg-name'

$extensionName = 'DSCForLinux'
$publisher = 'Microsoft.OSTCExtensions'
$version = '2.71'

# You need to change the content of the $privateConfig and $publicConfig 
# according to different scenarios in section 3
$privateConfig = '{
  "StorageAccountName": "<accountname>",
  "StorageAccountKey": "<id-here>"
}'

$publicConfig = '{
  "ExtensionAction": "Push",
  "FileUri": "C:\\_Projects\\test.mof"
}'

Set-AzVMExtension -ResourceGroupName $rgName -VMName $vmName -Location $location `
  -Name $extensionName -Publisher $publisher -ExtensionType $extensionName `
  -TypeHandlerVersion $version -SettingString $publicConfig -ProtectedSettingString $privateConfig

Many thanks in advance.