Azure Resource Management Deployment Task generates deployment name that's too long

So Azure deployment names can only be 64 chars long and it looks like the ARM deployment task uses the logical name of the instance of the step in the process definition, turns it into kebab-case and appears to slap a GUID on the end of it. So in our case we got this error:

Error: Hyak.Common.CloudException: InvalidDeployment: The provided deployment name ‘create-azure-resource-group-web-site-a6cab41d-56db-45a8-8a6e-2f3ed61b2cf6’ has a length of ‘73’ which exceeds the maximum length of ‘64’. Please see https://aka.ms/arm-deploy for usage details.

We had to change the name of our process step from “Create Azure Resource Group Web Site” to just “Run ARM Template” and it worked. Couple things:

  1. Obviously it shouldn’t break… should truncate the name of the deployment to 64chars at worst
  2. Ideally the task would allow us to choose the deployment name we use so we can control this ourselves and maybe a reasonable default is actually the name of the app + version instead of the step name + random guid.

Thanks,
Drew

P.S. I think this is a regression because we just started having this problem after upgrading to 3.13.9

Hi Drew,

I’m sorry that we broke that in 3.13.9, I have created an issue for it, see https://github.com/OctopusDeploy/Issues/issues/3545

Thanks heaps for the bug report.

Cheers
John

No worries, happens to the best of us! :wink:

Glad we can work around it for now. I’ll keep an eye on the issue in GitHub to track when it’s fixed.

we got the same issue. Please let us know when it is fixed. Right now shortening the step names…which breaks our naming convention.

Our error is

Deploying Resource Group kmklmlkmasdklan-playground in subscription d210a78c-bee-50b0cf0cae04d.
June 20th 2017 14:02:16Info
Deployment name: deploy-azure-resource-from-template-24911e66-ab07-45b0-8e7e-477f7ff79987
June 20th 2017 14:02:16Info
Deployment mode: Complete
June 20th 2017 14:02:17Error
Hyak.Common.CloudException: InvalidDeployment: The provided deployment name ‘deploy-azure-resource-from-template-24911e66-ab07-45b0-8e7e-477f7ff79987’ has a length of ‘72’ which exceeds the maximum length of ‘64’. Please see https://aka.ms/arm-deploy for usage details.
June 20th 2017 14:02:17Error
at

is there a defined data for this fix?

Hi,

The best way to keep track of when an issue is fixes is to subscribe to the issue in github, in this case https://github.com/OctopusDeploy/Issues/issues/3545.

Regards
John