Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

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

@Boriszn

Description

@Boriszn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions