alan-turing-institute / data-safe-haven

https://data-safe-haven.readthedocs.io
BSD 3-Clause "New" or "Revised" License
57 stars 15 forks source link

Azure-native error when deploying SRE with DSH Pulumi #2066

Closed dsj976 closed 1 month ago

dsj976 commented 1 month ago

:white_check_mark: Checklist

:computer: System information

:package: Packages

List of packages ```none Paste list of packages here ```

:no_entry_sign: Describe the problem

I get the following error when running dsh sre deploy sandbox_sre:

Diagnostics:                                                                                                                        
  azure-native:operationalinsights:Workspace (sre_monitoring_log_analytics):                                                        
    error: azure-native:operationalinsights:Workspace resource 'sre_monitoring_log_analytics' has a problem: 'workspaceName' does   
not match expression '^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$' 

:deciduous_tree: Log messages

Relevant log messages ```none Your log details here ```

:recycle: To reproduce

jemrobinson commented 1 month ago

This is caused by the use of underscores in the SRE name which need to be converted to - before they can be used as Azure resource names.