azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Dots in DnsConfig's relative_name

Open bayotop opened this issue 7 years ago • 5 comments

The Azure Portal UI allows you to create a Traffic Manager profile with a FQDN with n-level subdomains (e.g. custom.dev.custom.trafficmanager.net).

However, the Traffic Manager profile name can't include dots. The UI seems to handle this by replacing the dots with hyphens (but without the FQDN changing).

Is it possible to do this via the SDK? The DnsConfig class only has a relative_name parameter and the Profile class doesn't allow to specify a name separately. Am I missing something here?

bayotop avatar Nov 06 '19 09:11 bayotop

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @sfiguemsft

ghost avatar Nov 06 '19 15:11 ghost

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @sfiguemsft

ghost avatar Nov 06 '19 15:11 ghost

@bayotop traffic manager profile is an ARM resource and name of the ARM resource is the one that should have dashes and dnsConfig relative name can have dots. See https://docs.microsoft.com/en-us/rest/api/trafficmanager/profiles/createorupdate the request body has name property that should be the name with dashes and dnsConfig relative_name can contain the dotted name. What SDK are you using?

rohinkoul avatar Nov 26 '19 23:11 rohinkoul

I was missing something, indeed. Realised now that I can specify the profile name in the client.profiles.create_or_update() call.

Thanks for looking into it!

bayotop avatar Nov 27 '19 08:11 bayotop

Thanks for working with Microsoft on GitHub! Tell us how you feel about your experience using the reactions on this comment.

ghost avatar Nov 27 '19 08:11 ghost