Better ARM template support for configuration and policy settings
I want to completely deploy a DevTest Lab environment from a CI/CD pipeline hosted by Azure DevOps. To do this I am writing an ARM template based on the info of REST API, the sample scripts from the documentation and the info you can get from Resource Explorer.
I cannot find the setting which is controling the Lab settings section from the Configuration and policies part of Lab Management. The option I am looking for is the environment access setting 'Resource group user rights'. In the UI you can set this from reader to contributor. This option is not available to an ARM template as far as I know at the moment. I also cannot find the setting for controlling the auto shutdown policy.
Please expose these settings to the ARM template API.
Anti Ohne commented
In found out today that the REST API documentation is describing the old 2016-05-15 version of the policy API. The newer 2018-09-15 and 2018-10-15-preview version expose the following two extra PolicyFactName values: ScheduleEditPermission and EnvironmentTemplate.
ScheduleEditPermision is the policy for controlling the auto shutdown policy. EnvironmentTemplate controls the public environment option in the UI. Thus the access to public ARM templates and which templates may be used by the lab user.
The resource group user rights is controlled by the "environmentPermission" attribute within "type": "Microsoft.DevTestLab/labs".