Closed Manbearpiet closed 1 year ago
Hey @f-bader , can you be a bit more specific on what scenario's don't work? Like with examples? Because I want to write tests to check for the scenarios, but I'm not quite sure which scenario's you mean 😄👍.
Sure thing @Manbearpiet
UseDiplayNameAsFileName
or UseIdAsFilename
Get-Content ./tests/examples/ScheduledMultiple.json -Raw | Convert-SentinelARArmToYaml -UseDisplayNameAsFilename -ErrorAction Stop -Verbose
-Force
-Force
is not part of the Pipeline
parameter setkind
because not the current item, but all items are referenced.tests/examples/ScheduledMultiple.json
and remove one of the templateVersion
attributesAfter conversion the version attribute is missing in the resulting yaml
alertRules
in the ARM file
Add the following yaml
to the resources part of tests/examples/ScheduledMultiple.json
{
"type": "Microsoft.Insights/dataCollectionEndpoints",
"apiVersion": "2022-06-01",
"name": "[parameters('dataCollectionEndpoints_Microsoft_Sentinel_ACC02BE87435EA6BDDD0F74A5_name')]",
"location": "westeurope",
"properties": {
"immutableId": "dce-9c12a8242344490eb4fafc20c874aada",
"configurationAccess": {},
"logsIngestion": {},
"networkAcls": {
"publicNetworkAccess": "Enabled"
}
}
},
Result in the current version
Result in the modifed version
@Manbearpiet There was an issue with the logic of the incremental file names, that prevented the correct creation of files. Please have a look at my suggestions. I was able to run all tests successfully
Module Functionality ⚒️
Developer conveniences👩💻