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

Typos #19

Merged
merged 1 commit into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bicep-examples/existing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ In this example, we are referencing two existing Azure resources:
- Resource Group
- Log Analytics Workspace

Both of these resources are likely to already existing in your Azure environment. If you're deploying a new resource you may want to put this into an existing resource group, using an existing log analytics workspace that is centralised for all metrics to ingest into. In this example within the `main.bicep` file:
Both of these resources are likely to already be deployed in your Azure environment. If you're creating a new resource you may want to put this into an existing resource group, using an existing log analytics workspace that is centralised for all metrics to ingest into. In this example within the `main.bicep` file:

We are defining the existing resources to be used in a newly deploy Storage Account.
We are defining the existing resources to be used in a newly deployed Storage Account.

```javascript
module storageAccount 'br/public:avm/res/storage/storage-account:0.8.3' = {
Expand All @@ -48,7 +48,7 @@ module storageAccount 'br/public:avm/res/storage/storage-account:0.8.3' = {
}
```

`scope: rg` which is leveraging the existing symbolic name of the existing Resource Group where we have specified the existing `name:` of the Resource Group in the `main.bicep` file.
`scope: rg` which is leveraging the symbolic name of the existing Resource Group where we have specified the existing `name:` of the Resource Group in the `main.bicep` file.

`workspaceResourceId: law.id` which is referencing the existing Log Analytics Workspace resource to retrieve the `resourceId` property.

Expand All @@ -57,7 +57,7 @@ Combining these enables a new Storage Account to be created in an existing Resou
## 🚀 Deployment

> [!NOTE]
> The deployment commands will create the existing resources first before leveraging the Bicep template to utilise these.
> The deployment commands will create the resources first before leveraging the Bicep template to utilise these as part of the example demo.

In VisualStudio Code open a terminal and run:

Expand Down
4 changes: 2 additions & 2 deletions bicep-examples/lambda-functions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Lambda Functions in Azure Bicep can be a good way to create an argument based on

This can be useful when wanting to output an array of Azure resource names for example. This example will be expanded over time to include more real world use cases.

However, it is worth noting there are some [limitations](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-lambda?WT.mc_id=MVP_319025#limitations) with lambda functions.
It is worth noting there are some [limitations](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-lambda?WT.mc_id=MVP_319025#limitations) with lambda functions.

You can read more from the official Microsoft Learn documentation on Lambda Functions [here](https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-lambda?WT.mc_id=MVP_319025).

Expand All @@ -18,7 +18,7 @@ You can read more from the official Microsoft Learn documentation on Lambda Func

## Lambda Function Examples

In the first example within the `main.bicep` file, there is a `map` expression from an array output. Using the `map` expression in this example you're able to extrapolate all the Key vault resource names from a loop in the output.
In the first example within the `main.bicep` file, there is a `map` expression from an array output. Using the `map` expression you're able to extrapolate all the Key vault resource names from a loop in the output.

In the second example within the `main.bicep` file, there is a `filter` expression from an array output. This enables you to manipulate the array and filter the output using the `filter` expression to only show those that match your expression statement in the output.

Expand Down
Loading