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
Goal: Deploy the NewWorkload template using the .json file.
Issue: Autogenerated deployment name in NewWorkload template exceed max length, so it fails to deploy the virtual peerings to the hub
Template Input: a new workload name that is less than 24 characters (aisSharedServices)
Error Output:
The provided deployment name 'aisSharedServicesbimsfltmjeeds-aisSharedServicesVirtualNetworkPeerings' has a length of '70' which exceeds the maximum length of '64'. Please see https://aka.ms/arm-deploy for usage details. (Code: InvalidDeployment)
Temp Solution/Workaround:
I was able to successfully deploy the template by changing line 119 to: "name": "[format('{0}-{1}VirtualNetworkPeerings', parameters('workloadName'), parameters('workloadName'))]",
Then the concat deployment name in this case is aisSharedServices-aisSharedServicesVirtualNetworkPeerings. However, with a 24 character limit on the workload name, one could still run into a "exceed max character" error
The text was updated successfully, but these errors were encountered:
@ExchMaster if the fix is something like using the take() function to limit the character length in the name, please also apply the same fix to mlz.bicep in which the spoke name is used to calculate a module name property. The spoke names can be overridden and could potentially cause the same issue as described in this bug.
brooke-hamilton
changed the title
BICEP: Autogenerated deployment name in NewWorkload template exceed max length
BICEP: Autogenerated deployment name in NewWorkload template exceeds max length
Nov 29, 2021
Goal: Deploy the NewWorkload template using the .json file.
Issue: Autogenerated deployment name in NewWorkload template exceed max length, so it fails to deploy the virtual peerings to the hub
Template Input: a new workload name that is less than 24 characters (aisSharedServices)
Error Output:
The provided deployment name 'aisSharedServicesbimsfltmjeeds-aisSharedServicesVirtualNetworkPeerings' has a length of '70' which exceeds the maximum length of '64'. Please see https://aka.ms/arm-deploy for usage details. (Code: InvalidDeployment)
See line:
missionlz/src/bicep/examples/newWorkload/newWorkload.json
Line 717 in 276cdae
Temp Solution/Workaround:
I was able to successfully deploy the template by changing line 119 to:
"name": "[format('{0}-{1}VirtualNetworkPeerings', parameters('workloadName'), parameters('workloadName'))]",
Then the concat deployment name in this case is
aisSharedServices-aisSharedServicesVirtualNetworkPeerings
. However, with a 24 character limit on the workload name, one could still run into a "exceed max character" errorThe text was updated successfully, but these errors were encountered: