Skip to content

Commit 6801702

Browse files
authored
Merge pull request #287627 from paulth1/six-bicep-articles
[AQ] edit pass: Six bicep articles
2 parents ee80d0d + 2f084cb commit 6801702

File tree

9 files changed

+211
-210
lines changed

9 files changed

+211
-210
lines changed

articles/azure-resource-manager/bicep/bicep-import.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22
title: Imports in Bicep
3-
description: Describes how to import shared functionality and namespaces in Bicep.
3+
description: This article describes how to import shared functionality and namespaces in Bicep.
44
ms.topic: conceptual
55
ms.custom: devx-track-bicep
66
ms.date: 08/20/2024
77
---
88

99
# Imports in Bicep
1010

11-
This article describes the syntax you use to export and import shared functionality, and namespaces for Bicep extensions.
11+
This article describes the syntax you use to export and import shared functionality and namespaces for Bicep extensions.
1212

1313
## Export variables, types, and functions
1414

15-
The `@export()` decorator indicates that a given statement can be imported by another file. This decorator is only valid on [`type`](./user-defined-data-types.md), [`var`](./variables.md), and [`func`](./user-defined-functions.md) statements. Variable statements marked with `@export()` must be compile-time constants.
15+
The `@export()` decorator indicates that another file can import a specific statement. This decorator is only valid on [`type`](./user-defined-data-types.md), [`var`](./variables.md), and [`func`](./user-defined-functions.md) statements. Variable statements marked with `@export()` must be compile-time constants.
1616

1717
The syntax for exporting functionality for use in other Bicep files is:
1818

@@ -41,15 +41,15 @@ Using the wildcard import syntax:
4141
import * as <alias_name> from '<bicep_file_name>'
4242
```
4343

44-
You can mix and match the preceding syntaxes. To access imported symbols using the wildcard syntax, you must use the `.` operator: `<alias_name>.<exported_symbol>`.
44+
You can mix and match the preceding syntaxes. To access imported symbols by using the wildcard syntax, you must use the `.` operator: `<alias_name>.<exported_symbol>`.
4545

46-
Only statements that have been [exported](#export-variables-types-and-functions) in the file being referenced are available to be imported.
46+
Only statements that were [exported](#export-variables-types-and-functions) in the file being referenced are available for import.
4747

48-
Functionality that has been imported from another file can be used without restrictions. For example, imported variables can be used anywhere a variable declared in-file would normally be valid.
48+
You can use functionality that was imported from another file without restrictions. For example, you can use imported variables anywhere that a variable declared in-file would normally be valid.
4949

5050
### Example
5151

52-
exports.bicep
52+
*exports.bicep*
5353

5454
```bicep
5555
@export()
@@ -65,7 +65,7 @@ var myConstant = 'This is a constant value'
6565
func sayHello(name string) string => 'Hello ${name}!'
6666
```
6767

68-
main.bicep
68+
*main.bicep*
6969

7070
```bicep
7171
import * as myImports from 'exports.bicep'
@@ -80,7 +80,7 @@ output greeting string = sayHello('Bicep user')
8080
output exampleObject myImports.myObjectType = exampleObject
8181
```
8282

83-
## Import namespaces and extensions (Preview)
83+
## Import namespaces and extensions (preview)
8484

8585
> [!NOTE]
8686
> The experimental feature `extensibility` must be enabled from the [Bicep config file](./bicep-config.md#enable-experimental-features) to use this feature.
@@ -110,9 +110,9 @@ import '<extension-name>@<extension-version>' with {
110110

111111
For an example, see [Bicep Kubernetes extension](./bicep-kubernetes-extension.md).
112112

113-
## Next steps
113+
## Related content
114114

115-
- To learn about the Bicep data types, see [Data types](./data-types.md).
116-
- To learn about the Bicep functions, see [Bicep functions](./bicep-functions.md).
117-
- To learn about how to use the Bicep Kubernetes extension, see [Bicep Kubernetes extension](./bicep-kubernetes-extension.md).
118-
- To go through a Kubernetes extension tutorial, see [Quickstart - Deploy Azure applications to Azure Kubernetes Services by using Bicep Kubernetes extension.](/azure/aks/learn/quick-kubernetes-deploy-bicep-kubernetes-extension).
115+
- To learn about Bicep data types, see [Data types](./data-types.md).
116+
- To learn about Bicep functions, see [Bicep functions](./bicep-functions.md).
117+
- To learn how to use the Bicep Kubernetes extension, see [Bicep Kubernetes extension](./bicep-kubernetes-extension.md).
118+
- To go through a Kubernetes extension tutorial, see [Quickstart: Deploy Azure applications to Azure Kubernetes Services by using the Bicep Kubernetes extension](/azure/aks/learn/quick-kubernetes-deploy-bicep-kubernetes-extension).

articles/azure-resource-manager/bicep/bicep-using.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The `using` statement in [Bicep parameter files](./parameter-files.md) ties the
2929
using '<path>/<file-name>.json'
3030
```
3131

32-
- To use [public modules](./modules.md#path-to-module):
32+
- To use [public modules](./modules.md#path-to-a-module):
3333

3434
```bicep
3535
using 'br/public:<file-path>:<tag>'

0 commit comments

Comments
 (0)