0.1.116 • Published 1 year ago

@azbake/ingredient-traffic-manager v0.1.116

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

Changelogs

Overview

The Traffic Manager ingredient is a plugin for Bake. When included in a recipe, this plugin will install a global instance of traffic manager in the primary region (first region in the list) for your environment. It will then create an endpoint for each region deployed and add it to the global profile.

Usage

Because endpoints are created dynamically during each region, you should not use the parallel regions feature of bake. Set this to false in your receipe's bake.yaml to ensure the global profile and other dependencies are created before adding an endpoint.

Recipe

name: My package
shortName: mypkg
version: 0.0.1
ingredients:
  - "@azbake/ingredient-traffic-manager@~0"
parallelRegions: false
resourceGroup: true
recipe:
  mypkg-traffic-mgr:
    properties:
      type: "@azbake/ingredient-traffic-manager"
      source: "[webapp.get_resource_profile()]"
      parameters:
        source-type: "Microsoft.Web/sites/"
propertyrequireddescription
sourceyesthe source of the endpoint being created in format <resourceGroup>/<resource> ***
source-typeyesthe type of the azure resource used for the endpoint
routing-methodno (default Performance)routing method of the traffic manager profile
intervalno (default 10)number of seconds to ping the endpoint for availability
protocolno (default HTTPS)protocol used for health checks
portno (default 443)port used for health checks
ttlno (default 10)number of seconds the DNS entries are kept
pathno (default /)path on the endpoint to check
number-of-failuresno (default 3)number of times to retry before marking an endpoint down
timeoutno (default 5)number of seconds to wait for a response from the endpoint
diagnosticsEnabledno (default yes)Specifies whether to enable diagnostic settings to make logs available for consumption. Note that you must reference @azbake/ingredient-event-hub-namespace when diagnostics are enabled.

*** Please note that you can supply just the name of the azure resource for the source if the resource exists within the same resource group that is currently being deployed for traffic manager.

*** Please note that all values should be in the parameters section of the recipe except for source

Utilities

Utility classes can be used inside of the bake.yaml file for parameter and source values.

traffic class

functiondescription
get_profile()Returns the name created for the traffic manager profile when deployed.

Function Details

get_profile()

Gets the name create for the traffic manager profile deployed. This value when appended to .trafficmanager.net will give you the url to access the resouce.

...
parameters:
    trafficmanagername: "[traffic.get_profile()]"
...

Returns

string

0.1.116

1 year ago

0.1.115

1 year ago

0.1.114

2 years ago

0.1.113

2 years ago

0.1.112

2 years ago

0.1.111

2 years ago

0.1.109

2 years ago

0.1.108

4 years ago

0.1.107

4 years ago

0.1.106

4 years ago

0.1.105

4 years ago

0.1.104

4 years ago

0.1.103

4 years ago

0.1.102

4 years ago

0.1.101

4 years ago

0.1.100

4 years ago

0.1.99

4 years ago

0.1.98

4 years ago

0.1.97

4 years ago

0.1.96

4 years ago

0.1.95

4 years ago

0.1.92

4 years ago

0.1.87

4 years ago

0.1.76

5 years ago

0.1.75

5 years ago

0.1.74

5 years ago

0.1.70

5 years ago

0.1.68

5 years ago

0.1.67

5 years ago

0.1.65

5 years ago

0.1.64

5 years ago

0.1.61

5 years ago

0.1.59

5 years ago

0.1.58

5 years ago

0.1.55

5 years ago

0.1.53

5 years ago

0.1.52

5 years ago

0.1.47

5 years ago

0.1.46

5 years ago

0.1.45

5 years ago

0.1.44

5 years ago

0.1.42

5 years ago

0.1.40

5 years ago

0.1.38

5 years ago

0.1.37

5 years ago

0.1.36

5 years ago

0.1.33

5 years ago

0.1.32

5 years ago

0.1.31

5 years ago

0.1.30

5 years ago

0.1.29

5 years ago

0.1.28

5 years ago

0.1.27

5 years ago

0.1.26

5 years ago

0.1.25

5 years ago

0.1.24

5 years ago

0.1.23

5 years ago

0.1.22

5 years ago

0.0.2

5 years ago