diff --git a/docs/providers/azure/guide/quick-start.md b/docs/providers/azure/guide/quick-start.md index babd69c69..a4e3c40ef 100644 --- a/docs/providers/azure/guide/quick-start.md +++ b/docs/providers/azure/guide/quick-start.md @@ -10,9 +10,9 @@ layout: Doc ## Pre-requisites -1. Node.js v6.5.0+ *(this is the runtime version supported by Azure Functions)* +1. Node.js v6.5.0+ _(this is the runtime version supported by Azure Functions)_ 2. Serverless CLI `v1.9.0+`. You can run `npm i -g serverless` if you don't already have it. -3. An Azure account. If you don't already have one, you can sign up for a [free trial](https://azure.microsoft.com/en-us/free/) that includes $200 of free credit. +3. An Azure account. If you don't already have one, you can sign up for a [free trial](https://azure.microsoft.com/en-us/free/) that includes \$200 of free credit. ## Create a new Azure Function App @@ -143,7 +143,7 @@ $ sls func remove -n {functionName} This will remove the `{functionName}.js` handler and remove the function from `serverless.yml` -*Note: Add & remove currently only support HTTP triggered functions. For other triggers, you will need to update `serverless.yml` manually +\*Note: Add & remove currently only support HTTP triggered functions. For other triggers, you will need to update `serverless.yml` manually ## Advanced Authentication @@ -153,41 +153,43 @@ The getting started walkthrough illustrates the interactive login experience, wh 1. [Install the Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest) 2. Login via Azure CLI and set subscription - ```bash - # Login to Azure - $ az login - # Set Azure Subscription for which to create Service Principal - $ az account set -s - ``` + ```bash + # Login to Azure + $ az login + # Set Azure Subscription for which to create Service Principal + $ az account set -s + ``` 3. Generate Service Principal for Azure Subscription - ```bash - # Create SP with unique name - $ az ad sp create-for-rbac --name - ``` - This will yield something like: - ```json - { - "appId": "", - "displayName": "", - "name": "", - "password": "", - "tenant": "" - } - ``` + ```bash + # Create SP with unique name + $ az ad sp create-for-rbac --name + ``` + This will yield something like: + ```json + { + "appId": "", + "displayName": "", + "name": "", + "password": "", + "tenant": "" + } + ``` 4. Set environment variables - **Bash** - ```bash - $ export azureSubId='' - $ export azureServicePrincipalTenantId='' - $ export azureServicePrincipalClientId='' - $ export azureServicePrincipalPassword='' - ``` + **Bash** - **Powershell** - ```powershell - $env:azureSubId='' - $env:azureServicePrincipalTenantId='' - $env:azureServicePrincipalClientId='' - $env:azureServicePrincipalPassword='' - ``` + ```bash + $ export azureSubId='' + $ export azureServicePrincipalTenantId='' + $ export azureServicePrincipalClientId='' + $ export azureServicePrincipalPassword='' + ``` + + **Powershell** + + ```powershell + $env:azureSubId='' + $env:azureServicePrincipalTenantId='' + $env:azureServicePrincipalClientId='' + $env:azureServicePrincipalPassword='' + ``` diff --git a/lib/plugins/create/templates/azure-nodejs/README.md b/lib/plugins/create/templates/azure-nodejs/README.md index 818fd0db3..db35d2ec0 100644 --- a/lib/plugins/create/templates/azure-nodejs/README.md +++ b/lib/plugins/create/templates/azure-nodejs/README.md @@ -2,9 +2,9 @@ ## Pre-requisites -1. Node.js v6.5.0+ *(this is the runtime version supported by Azure Functions)* +1. Node.js v6.5.0+ _(this is the runtime version supported by Azure Functions)_ 2. Serverless CLI `v1.9.0+`. You can run `npm i -g serverless` if you don't already have it. -3. An Azure account. If you don't already have one, you can sign up for a [free trial](https://azure.microsoft.com/en-us/free/) that includes $200 of free credit. +3. An Azure account. If you don't already have one, you can sign up for a [free trial](https://azure.microsoft.com/en-us/free/) that includes \$200 of free credit. ## Create a new Azure Function App @@ -135,7 +135,7 @@ $ sls func remove -n {functionName} This will remove the `{functionName}.js` handler and remove the function from `serverless.yml` -*Note: Add & remove currently only support HTTP triggered functions. For other triggers, you will need to update `serverless.yml` manually +\*Note: Add & remove currently only support HTTP triggered functions. For other triggers, you will need to update `serverless.yml` manually ## Advanced Authentication @@ -145,41 +145,43 @@ The getting started walkthrough illustrates the interactive login experience, wh 1. [Install the Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest) 2. Login via Azure CLI and set subscription - ```bash - # Login to Azure - $ az login - # Set Azure Subscription for which to create Service Principal - $ az account set -s - ``` + ```bash + # Login to Azure + $ az login + # Set Azure Subscription for which to create Service Principal + $ az account set -s + ``` 3. Generate Service Principal for Azure Subscription - ```bash - # Create SP with unique name - $ az ad sp create-for-rbac --name - ``` - This will yield something like: - ```json - { - "appId": "", - "displayName": "", - "name": "", - "password": "", - "tenant": "" - } - ``` + ```bash + # Create SP with unique name + $ az ad sp create-for-rbac --name + ``` + This will yield something like: + ```json + { + "appId": "", + "displayName": "", + "name": "", + "password": "", + "tenant": "" + } + ``` 4. Set environment variables - **Bash** - ```bash - $ export azureSubId='' - $ export azureServicePrincipalTenantId='' - $ export azureServicePrincipalClientId='' - $ export azureServicePrincipalPassword='' - ``` + **Bash** - **Powershell** - ```powershell - $env:azureSubId='' - $env:azureServicePrincipalTenantId='' - $env:azureServicePrincipalClientId='' - $env:azureServicePrincipalPassword='' - ``` + ```bash + $ export azureSubId='' + $ export azureServicePrincipalTenantId='' + $ export azureServicePrincipalClientId='' + $ export azureServicePrincipalPassword='' + ``` + + **Powershell** + + ```powershell + $env:azureSubId='' + $env:azureServicePrincipalTenantId='' + $env:azureServicePrincipalClientId='' + $env:azureServicePrincipalPassword='' + ```