Azure / Azure/azure-linux-extensions

DSC Extension for linux. Error in the dsc.py

Open
#1,477 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
333
Forks
278
Avg merge
2d 9h
Merged PRs (30d)
4

Description

Hey Azure Team, could u please help?

During the DSC Installation for Linux I'm receiving the following issues:
![image](https://user-images.githubusercontent.com/12999498/149537273-67d24885-220c-40a2-a2ce-f038950ad594.png)

**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": "",
"StorageAccountKey": ""
}'

$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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.