Skip to content

Commit

Permalink
fix: Added ingredient for Service Bus Namespace (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerwatson authored and whilke committed May 20, 2019
1 parent 09d2083 commit 3e5b360
Show file tree
Hide file tree
Showing 11 changed files with 859 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* [@azbake/ingredient-webapp-container](./ingredient/ingredient-webapp-container/CHANGELOG.md)
* [@azbake/ingredient-traffic-manager](./ingredient/ingredient-traffic-manager/CHANGELOG.md)
* [@azbake/ingredient-host-names](./ingredient/ingredient-host-names/CHANGELOG.md)
* [@azbake/ingredient-service-bus-namespace](./ingredient/ingredient-service-bus-namespace/CHANGELOG.md)

## Tools

Expand Down Expand Up @@ -179,3 +180,8 @@ Ingredient that allows deploying custom host names and ssl certificates to Azure
Ingredient that allows deploying App Service Plan. Parameters are supplied via native bake ingredient parameters.

[read more](./ingredient/ingredient-app-service-plan/README.md)

### @azbake/ingredient-service-bus-namespace
Ingredient that allows deploying Service Bus Namespace. Parameters are supplied via native bake ingredient parameters.

[read more](./ingredient/ingredient-service-bus-namespace/README.md)
4 changes: 4 additions & 0 deletions ingredient/ingredient-service-bus-namespace/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
src/
.vscode/
package/
test/
8 changes: 8 additions & 0 deletions ingredient/ingredient-service-bus-namespace/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Change Log

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [0.1.21](https://github.com/csperbeck/azure-bake/compare/v0.1.5...v0.1.21) (2019-02-15)

**Note:** Version bump only for package
57 changes: 57 additions & 0 deletions ingredient/ingredient-service-bus-namespace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
## Changelogs

* [@azbake/ingredient-service-bus-namespace](./CHANGELOG.md)

## Overview

The Service Bus Namespace ingredient is a plugin for bake. When included in a recipe, this will create a [Service Bus Namespace](https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messaging-overview).

## Usage

```yaml
name: My package
shortName: mypkg
version: 0.0.1
ingredients:
- "@azbake/ingredient-service-bus-namespace@~0"
resourceGroup: true
recipe:
mypkg-service-bus-namespace:
properties:
type: "@azbake/ingredient-service-bus-namespace"
source: ""
parameters:
serviceBusNamespaceName: "ServiceBusNamespaceName"
```
| property | required | description |
| -------- | -------- | ----------- |
| serviceBusNamespaceName | yes | The name for the Service Bus Namespace |
| skuName | no (default `Standard`) | Sets messaging tier. |
| location | no | Sets the location. Defaults to the parent resource group location. |

## Utilities

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

### ``servicebusnamespace`` class

| function | description |
| `create_resource_name()` | Returns the name created for the Service Bus Namespace when deployed |

### Function Details

#### create_resource_name()

Gets the name created for the App Service Plan when deployed.

```yaml
...
parameters:
planName: "[servicebusnamespace.create_resource_name()]"
...
```

##### Returns

string
Loading

0 comments on commit 3e5b360

Please sign in to comment.