azureautomation / runbooks

Sample Automation runbooks
MIT License
154 stars 129 forks source link

Wrong string filtering #31

Open sscchh2001 opened 6 years ago

sscchh2001 commented 6 years ago

Wrong string filtering causing dependency module version invalid. For example, AzureRm.Automation has $PackageDetails.entry.properties.Dependencies as AzureRM.Profile:[5.5.1, ):. The original $DependencyVersion will become "5.5.1, )" in this case. Just replace any characters that are not dot or numbers will work.