By default, the switch will try to contact Meraki Dashboard on the untagged (native) VLAN. Alternately, you can specify the management VLAN under Configure > Switch settings. This allows the switch to reach the internet via a trunk port.
If you change the management VLAN and the switch can no longer obtain a DHCP lease or reach Meraki Dashboard, the switch will revert to its previous management VLAN configuration.
If your network does not allow the native VLAN or any of the default VLANs to DHCP or connect to the internet, you will need to manually assign a management VLAN. To do this, place the switch on a network running DHCP, then from dashboard navigate to Monitor >> Switches and select the target switch. From the details page, choose "Set IP Address" and save your changes.
I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.
Please, if this post was useful, leave your kudos and mark it as solved.