Skip to content

Commit

Permalink
Small readme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSehr committed Nov 4, 2022
1 parent db8129c commit 4d8dea3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions modules/Microsoft.Compute/virtualMachines/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ module virtualMachines './Microsoft.Compute/virtualMachines/deploy.bicep' = {
]
}
extensionCustomScriptProtectedSetting: {
commandToExecute: '<commandToExecute>'
commandToExecute: 'value=$(./${resourceGroupResources.outputs.storageAccountCSEFileName}); echo \'$value\''
}
extensionDependencyAgentConfig: {
enabled: true
Expand Down Expand Up @@ -1339,7 +1339,7 @@ module virtualMachines './Microsoft.Compute/virtualMachines/deploy.bicep' = {
},
"extensionCustomScriptProtectedSetting": {
"value": {
"commandToExecute": "<commandToExecute>"
"commandToExecute": "value=$(./${resourceGroupResources.outputs.storageAccountCSEFileName}); echo \"$value\""
}
},
"extensionDependencyAgentConfig": {
Expand Down Expand Up @@ -1822,7 +1822,7 @@ module virtualMachines './Microsoft.Compute/virtualMachines/deploy.bicep' = {
]
}
extensionCustomScriptProtectedSetting: {
commandToExecute: '<commandToExecute>'
commandToExecute: 'powershell -ExecutionPolicy Unrestricted -Command \'& ./${resourceGroupResources.outputs.storageAccountCSEFileName}\''
}
extensionDependencyAgentConfig: {
enabled: true
Expand Down Expand Up @@ -2043,7 +2043,7 @@ module virtualMachines './Microsoft.Compute/virtualMachines/deploy.bicep' = {
},
"extensionCustomScriptProtectedSetting": {
"value": {
"commandToExecute": "<commandToExecute>"
"commandToExecute": "powershell -ExecutionPolicy Unrestricted -Command \"& ./${resourceGroupResources.outputs.storageAccountCSEFileName}\""
}
},
"extensionDependencyAgentConfig": {
Expand Down
3 changes: 2 additions & 1 deletion utilities/tools/Set-ModuleReadMe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,8 @@ function ConvertTo-FormattedJSONParameterObject {
'}'
) | Out-String

# [2.2] Syntax: All single-quotes are double-quotes
# [2.2] Syntax: All double quotes must be escaped & single-quotes are double-quotes
$paramInJsonFormat = $paramInJsonFormat -replace '"', '\"'
$paramInJsonFormat = $paramInJsonFormat -replace "'", '"'

# [2.3] Split the object to format line-by-line (& also remove any empty lines)
Expand Down

0 comments on commit 4d8dea3

Please # to comment.