Setup Auth configuration
Next, you will set the configuration variables for the specific Azure TRE instance:
-
Open the
/config.sample.yamlfile and then save it without the .sample extension. You should now have a file calledconfig.yamllocated in the root folder. The file contains configuration variables. In this part you will add the configuration required for the shared management infrastructure which is used to support the deployment of one or more Azure TRE instances. -
Provide the values for the following variables under management section in your
config.yamlfile:Variable Description locationThe Azure location (region) for all resources. E.g., westeuropemgmt_resource_group_nameThe shared resource group for all management resources, including the storage account. mgmt_storage_account_nameThe name of the storage account to hold the Terraform state and other deployment artifacts. acr_nameA globally unique name for the Azure Container Registry (ACR) that will be created to store deployment images. arm_subscription_idThe Azure subscription ID for all resources. !!! tip To retrieve your Azure subscription ID, use the
azcommand line interface available in the development container. In the terminal window in Visual Studio Code, typeaz loginfollowed byaz account showto see your default subscription. Please refer toaz account -helpfor further details on how to change your active subscription.The rest of the variables can have their default values.
-
Decide on a name for your
tre_idID for the Azure TRE instance. The value will be used in various Azure resources and AAD application names. It needs to be globally unique and less than 12 characters in length. Use only lowercase alphanumerics. Choose wisely! - Once you have decided on which AD Tenant paradigm, then you should be able to set
aad_tenant_idin the authentication section in yourconfig.yamlfile. -
Your AAD Tenant Admin can now use the terminal window in Visual Studio Code to execute the following script from within the development container to create all the AAD Applications that are used for TRE. The details of the script are covered in the auth document.
make authNote
Credentials created by the
make authcommand will be added under the authentication section in yourconfig.yamlfileNote
In case you have several subscriptions and would like to change your default subscription use
az account set --subscription <desired subscription ID>Note
The full functionality of the script requires directory admin privileges. You may need to contact your friendly Azure Active Directory admin to complete this step. The app registrations can be created manually in Azure Portal too. For more information, see Authentication and authorization.
All other variables can have their default values for now.
Add admin user
Make sure the TRE Administrators and TRE Users roles, defined by the API app registration, are assigned to your user and others as required. See Enabling users for instructions.