Azure / Azure/aimtool

Deployment error on long names for resource

Open
#23 1 comment 0 reactions 1 assignee Claimed by @probertdaniel View on GitHub
enhancement
Dominant language
C#
Stars
52
Forks
46
PR merge metrics
No merged PRs in 30d

Description

## Description

Orchestration and ports may have names not too short in a way that concatenating the application/msi name, the orchestration name, the port, etc may result in names that are too long to be used for resources in Azure. If there isn't a better way to handle this, I'd suggest the tool could return some kind of error or warning about the fact. With the current version the error goes by undetected until deployment to Azure.

## Environment and tool versions

- AIM Tool Version (aim --version): 0.5.1-beta.2020102844785
- Windows Version (systeminfo): Win10
- Shell: PowerShell
- Shell Version ($PSVersionTable | bash --version):

PSVersion 7.1.3
PSEdition Core
GitCommitId 7.1.3
OS Microsoft Windows 10.0.18363
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

## Repro steps

Run the tool on a MSI file from an application with long names for application name, orchestration, ports, etc.

## Expected result

I'm not sure, but I think some resources cannot be renamed in Azure. If that's the case, the ideal solution here would be to warn so that renaming is done before deploying. If the long names could be edited or mapped to shorter names in a deployment parameter file or some config file that would work best. If not possible, as renaming on the source (BT) would involve the need for rerun the tool, this warning could be elevated to a fatal error.

## Current result

Tool runs fine but an error is returned when trying to deploy to Azure.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.