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

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

Open
Boriszn opened this issue Jan 17, 2022 · 0 comments
Open

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

Boriszn opened this issue Jan 17, 2022 · 0 comments

Comments

@Boriszn
Copy link

Boriszn commented Jan 17, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant