Skip to content

Commit 0986bec

Browse files
authored
Merge pull request #4 from MicrosoftDocs/master
Merge docs
2 parents d8c9977 + 7cc3dc2 commit 0986bec

File tree

12 files changed

+364
-406
lines changed

12 files changed

+364
-406
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11686,6 +11686,11 @@
1168611686
"redirect_url": "/azure/lab-services/devtest-lab-attach-detach-data-disk",
1168711687
"redirect_document_id": false
1168811688
},
11689+
{
11690+
"source_path": "articles/lab-services/devtest-lab-auto-shutdown-vm.md",
11691+
"redirect_url": "/azure/lab-services/devtest-lab-auto-shutdown",
11692+
"redirect_document_id": false
11693+
},
1168911694
{
1169011695
"source_path": "articles/devtest-lab/devtest-lab-comparing-vm-base-image-types.md",
1169111696
"redirect_url": "/azure/lab-services/devtest-lab-comparing-vm-base-image-types",

articles/azure-functions/functions-run-local.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ You can also specify these options in the command using the following arguments:
289289
| Argument | Description |
290290
| ------------------------------------------ | -------------------------------------- |
291291
| **`--csx`** | (Version 2.x) Generates the same C# script (.csx) templates used in version 1.x and in the portal. |
292-
| **`--language -l`**| The template programming language, such as C#, F#, or JavaScript. This option is required in version 1.x. In version 2.x, do not use this option or choose a language that matches the worker runtime. |
293-
| **`--name -n`** | The function name. |
294-
| **`--template -t`** | Use the `func templates list` command to see the complete list of available templates for each supported language. |
292+
| **`--language`**, **`-l`**| The template programming language, such as C#, F#, or JavaScript. This option is required in version 1.x. In version 2.x, do not use this option or choose a language that matches the worker runtime. |
293+
| **`--name`**, **`-n`** | The function name. |
294+
| **`--template`**, **`-t`** | Use the `func templates list` command to see the complete list of available templates for each supported language. |
295295

296296
For example, to create a JavaScript HTTP trigger in a single command, run:
297297

@@ -348,13 +348,13 @@ func host start
348348
| **`--cert`** | The path to a .pfx file that contains a private key. Only used with `--useHttps`. Version 2.x only. |
349349
| **`--cors-credentials`** | Allow cross-origin authenticated requests (i.e. cookies and the Authentication header) Version 2.x only. |
350350
| **`--cors`** | A comma-separated list of CORS origins, with no spaces. |
351-
| **`--language-worker`** | Argument to configure the language worker. For example, you may enable debugging for language worker by providing [debug port and other required arguments](https://github.com/Azure/azure-functions-core-tools/wiki/Enable-Debugging-for-language-workers). Version 2.x only. |
352-
| **`--nodeDebugPort -n`** | The port for the Node.js debugger to use. Default: A value from launch.json or 5858. Version 1.x only. |
351+
| **`--language-worker`** | Arguments to configure the language worker. For example, you may enable debugging for language worker by providing [debug port and other required arguments](https://github.com/Azure/azure-functions-core-tools/wiki/Enable-Debugging-for-language-workers). Version 2.x only. |
352+
| **`--nodeDebugPort`**, **`-n`** | The port for the Node.js debugger to use. Default: A value from launch.json or 5858. Version 1.x only. |
353353
| **`--password`** | Either the password or a file that contains the password for a .pfx file. Only used with `--cert`. Version 2.x only. |
354-
| **`--port -p`** | The local port to listen on. Default value: 7071. |
354+
| **`--port`**, **`-p`** | The local port to listen on. Default value: 7071. |
355355
| **`--pause-on-error`** | Pause for additional input before exiting the process. Used only when launching Core Tools from an integrated development environment (IDE).|
356-
| **`--script-root --prefix`** | Used to specify the path to the root of the function app that is to be run or deployed. This is used for compiled projects that generate project files into a subfolder. For example, when you build a C# class library project, the host.json, local.settings.json, and function.json files are generated in a *root* subfolder with a path like `MyProject/bin/Debug/netstandard2.0`. In this case, set the prefix as `--script-root MyProject/bin/Debug/netstandard2.0`. This is the root of the function app when running in Azure. |
357-
| **`--timeout -t`** | The timeout for the Functions host to start, in seconds. Default: 20 seconds.|
356+
| **`--script-root`**, **`--prefix`** | Used to specify the path to the root of the function app that is to be run or deployed. This is used for compiled projects that generate project files into a subfolder. For example, when you build a C# class library project, the host.json, local.settings.json, and function.json files are generated in a *root* subfolder with a path like `MyProject/bin/Debug/netstandard2.0`. In this case, set the prefix as `--script-root MyProject/bin/Debug/netstandard2.0`. This is the root of the function app when running in Azure. |
357+
| **`--timeout`**, **`-t`** | The timeout for the Functions host to start, in seconds. Default: 20 seconds.|
358358
| **`--useHttps`** | Bind to `https://localhost:{port}` rather than to `http://localhost:{port}`. By default, this option creates a trusted certificate on your computer.|
359359

360360
When the Functions host starts, it outputs the URL of HTTP-triggered functions:
@@ -434,10 +434,10 @@ You can also invoke a function directly by using `func run <FunctionName>` and p
434434
435435
| Option | Description |
436436
| ------------ | -------------------------------------- |
437-
| **`--content -c`** | Inline content. |
438-
| **`--debug -d`** | Attach a debugger to the host process before running the function.|
439-
| **`--timeout -t`** | Time to wait (in seconds) until the local Functions host is ready.|
440-
| **`--file -f`** | The file name to use as content.|
437+
| **`--content`**, **`-c`** | Inline content. |
438+
| **`--debug`**, **`-d`** | Attach a debugger to the host process before running the function.|
439+
| **`--timeout`**, **`-t`** | Time to wait (in seconds) until the local Functions host is ready.|
440+
| **`--file`**, **`-f`** | The file name to use as content.|
441441
| **`--no-interactive`** | Does not prompt for input. Useful for automation scenarios.|
442442
443443
For example, to call an HTTP-triggered function and pass content body, run the following command:
@@ -477,12 +477,12 @@ The following publish options are only supported in version 2.x:
477477

478478
| Option | Description |
479479
| ------------ | -------------------------------------- |
480-
| **`--publish-settings-only -o`** | Only publish settings and skip the content. Default is prompt. |
480+
| **`--publish-settings-only`**, **`-o`** | Only publish settings and skip the content. Default is prompt. |
481481
|**`--list-ignored-files`** | Displays a list of files that are ignored during publishing, which is based on the .funcignore file. |
482482
| **`--list-included-files`** | Displays a list of files that are published, which is based on the .funcignore file. |
483483
| **`--nozip`** | Turns the default `Run-From-Package` mode off. |
484484
| **`--build-native-deps`** | Skips generating .wheels folder when publishing Python function apps. |
485-
| **`--build`**<br/>**`-b`** | Performs build action when deploying to a Linux function app. Accepts: `remote` and `local`. |
485+
| **`--build`**, **`-b`** | Performs build action when deploying to a Linux function app. Accepts: `remote` and `local`. |
486486
| **`--additional-packages`** | List of packages to install when building native dependencies. For example: `python3-dev libevent-dev`. |
487487
| **`--force`** | Ignore pre-publishing verification in certain scenarios. |
488488
| **`--csx`** | Publish a C# script (.csx) project. |

0 commit comments

Comments
 (0)