You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Next, to resolve any linked templates used within an ARM JSON-based template, you can decompile the main template file, which resolves all the local infrastructure files used into many Bicep modules. Then, rebuild those modules back into a single ARM template with the linked templates embedded into the main ARM template as nested templates. This step is only necessary during the deployment operation. The main template file can be specified using the `$ADE_TEMPLATE_FILE` set during the core image's entrypoint, and you should reset this variable with the recompiled template file. See the following example:
# Correctly reassign ADE_TEMPLATE_FILE without the $ prefix during assignment
96
-
ADE_TEMPLATE_FILE="$generatedTemplate"
94
+
az bicep decompile --file "$ADE_TEMPLATE_FILE"
95
+
az bicep build --file "$bicepTemplate" --outfile "$generatedTemplate"
96
+
97
+
# Correctly reassign ADE_TEMPLATE_FILE without the $ prefix during assignment
98
+
ADE_TEMPLATE_FILE="$generatedTemplate"
99
+
fi
97
100
fi
98
101
```
99
102
To provide the permissions a deployment requires to execute the deployment and deletion of resources within the subscription, use the privileged managed identity associated with the ADE project environment type. If your deployment needs special permissions to complete, such as particular roles, assign those roles to the project environment type's identity. Sometimes, the managed identity isn't immediately available when entering the container; you can retry until the login is successful.
0 commit comments