Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands/network TM #708

Merged
merged 1 commit into from
Aug 18, 2016
Merged

Commands/network TM #708

merged 1 commit into from
Aug 18, 2016

Conversation

BurtBiel
Copy link
Contributor

@BurtBiel BurtBiel commented Aug 16, 2016

Command
    az network traffic-manager profile create

Arguments
    --name -n           [Required]: Name of resource.
    --resource-group -g [Required]: Name of resource group.
    --routing-method    [Required]: Allowed values: performance, priority, weighted.
    --unique-dns-name   [Required]: Relative DNS name for the traffic manager profile, resulting
                                    FQDN will be <uniqueDnsName>.trafficmanager.net, must be
                                    globally unique.
    --location -l                 : Location.  Default: global.
    --monitor-path                : Path to monitor.  Default: /.
    --monitor-port                : Port to monitor.  Default: 80.
    --monitor-protocol            : Default: http.
    --status                      : Create an enabled or disabled profile.  Default: enabled.
    --ttl                         : DNS Config time-to-live in seconds.  Default: 30.
Command
    az network traffic-manager profile check-dns

Arguments
    --name -n [Required]: DNS prefix to verify availability for.
Command
    az network traffic-manager endpoint create

Arguments
    --name -n           [Required]: Endpoint name.
    --profile-name      [Required]: Name of parent profile.
    --resource-group -g [Required]: Name of resource group.
    --type              [Required]: Endpoint type.  Values include: "azureEndpoints",
                                    "externalEndpoints", "nestedEndpoints".
    --endpoint-location           : Specifies the location of the external or nested endpoints when
                                    using the ΓÇÿPerformanceΓÇÖ traffic routing method.
    --endpoint-monitor-status     : Gets or sets the monitoring status of the endpoint.
    --endpoint-status             : Gets or sets the status of the endpoint..  If the endpoint is
                                    Enabled, it is probed for endpoint health and is included in the
                                    traffic routing method.  Possible values are 'Enabled' and
                                    'Disabled'.
    --min-child-endpoints         : Gets or sets the minimum number of endpoints that must be
                                    available in the child profile in order for the parent profile
                                    to be considered available. Only applicable to endpoint of type
                                    'NestedEndpoints'.
    --priority                    : Gets or sets the priority of this endpoint when using the
                                    ΓÇÿPriorityΓÇÖ traffic routing method. Possible values are from
                                    1 to 1000, lower values represent higher priority. This is an
                                    optional parameter.  If specified, it must be specified on all
                                    endpoints, and no two endpoints can share the same priority
                                    value.
    --target                      : Gets or sets the fully-qualified DNS name of the endpoint.
                                    Traffic Manager returns this value in DNS responses to direct
                                    traffic to this endpoint.
    --target-resource-id          : Gets or sets the Azure Resource URI of the of the endpoint.  Not
                                    applicable to endpoints of type 'ExternalEndpoints'.
    --weight                      : Gets or sets the weight of this endpoint when using the
                                    'Weighted' traffic routing method. Possible values are from 1 to
                                    1000.

@@ -2,6 +2,7 @@ adal==0.4.0
applicationinsights==0.10.0
argcomplete==1.3.0
azure==2.0.0rc5
azure-mgmt-trafficmanager==0.30.0rc5
Copy link
Member

@tjprescott tjprescott Aug 16, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this not part of the normal SDK? #Resolved

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, they have it separated out until it becomes stable (feature is in preview right now)


In reply to: 75039967 [](ancestors = 75039967)

@BurtBiel
Copy link
Contributor Author

BurtBiel commented Aug 17, 2016

@tjprescott comments addressed #Closed

register_cli_argument('network traffic-manager profile', 'profile_name', name_arg_type, id_part='name')
register_cli_argument('network traffic-manager profile create', 'routing_method', choices=get_enum_choices(routingMethod), completer=get_enum_type_completion_list(routingMethod))
register_cli_argument('network traffic-manager profile check-dns', 'name', name_arg_type, help='DNS prefix to verify availability for.', required=True)
register_cli_argument('network traffic-manager profile check-dns', 'type', help=argparse.SUPPRESS, default='Microsoft.Network/trafficManagerProfiles')
Copy link
Member

@tjprescott tjprescott Aug 17, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

etwork traffic-manager profile check-dns', 'type', h [](start = 24, length = 52)

Is there another value that could secretly be specified that would be valid, or does this exist simply for the template? #ByDesign

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not that I'm aware of. I tried specifying another type and it told me that it had to be that type


In reply to: 75161529 [](ancestors = 75161529)

@BurtBiel BurtBiel force-pushed the commands/NetworkTM branch 2 times, most recently from d12cc4d to 4379635 Compare August 18, 2016 22:12
@BurtBiel
Copy link
Contributor Author

@tjprescott comments addressed


In reply to: 240287751 [](ancestors = 240287751)

@tjprescott
Copy link
Member

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants