-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6c90d1
commit 41300de
Showing
8 changed files
with
207 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
// Bicep documentation examples | ||
|
||
@description('The name of the resource.') | ||
param name string | ||
|
||
@description('Endpoints to resolve for.') | ||
param endpoints object[] | ||
|
||
// An example Traffic Manager Profile using the Performance routing method. | ||
resource profile 'Microsoft.Network/trafficmanagerprofiles@2022-04-01' = { | ||
name: name | ||
location: 'global' | ||
properties: { | ||
endpoints: endpoints | ||
trafficRoutingMethod: 'Performance' | ||
monitorConfig: { | ||
protocol: 'HTTPS' | ||
port: 443 | ||
intervalInSeconds: 30 | ||
timeoutInSeconds: 5 | ||
toleratedNumberOfFailures: 3 | ||
path: '/healthz' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"languageVersion": "2.0", | ||
"contentVersion": "1.0.0.0", | ||
"metadata": { | ||
"_generator": { | ||
"name": "bicep", | ||
"version": "0.24.24.22086", | ||
"templateHash": "13648233826792444598" | ||
} | ||
}, | ||
"parameters": { | ||
"name": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The name of the resource." | ||
} | ||
}, | ||
"endpoints": { | ||
"type": "array", | ||
"items": { | ||
"type": "object" | ||
}, | ||
"metadata": { | ||
"description": "Endpoints to resolve for." | ||
} | ||
} | ||
}, | ||
"resources": { | ||
"profile": { | ||
"type": "Microsoft.Network/trafficmanagerprofiles", | ||
"apiVersion": "2022-04-01", | ||
"name": "[parameters('name')]", | ||
"location": "global", | ||
"properties": { | ||
"endpoints": "[parameters('endpoints')]", | ||
"trafficRoutingMethod": "Performance", | ||
"monitorConfig": { | ||
"protocol": "HTTPS", | ||
"port": 443, | ||
"intervalInSeconds": 30, | ||
"timeoutInSeconds": 5, | ||
"toleratedNumberOfFailures": 3, | ||
"path": "/healthz" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters