Skip to content

Commit dcfab2c

Browse files
committed
Add back missing info, fix links
1 parent 1b0d1db commit dcfab2c

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

articles/azure-functions/durable/durable-functions-powershell-v2-sdk-migration-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Update-AzFunctionAppSetting -Name <FUNCTION_APP_NAME> -ResourceGroupName <RESOUR
8484

8585
### Install and import the SDK
8686

87-
You have two options for installing the SDK package: it can be installed as a [managed dependency](./../functions-reference-powershell.md#dependency-management), or as a [custom module](./../functions-reference-powershell.md#custom-modules).
87+
You have two options for installing the SDK package: it can be installed using [Managed Dependencies](./../functions-reference-powershell.md#managed-dependencies-feature), or [bundled with your app content](./../functions-reference-powershell.md#including-modules-in-app-content).
8888
In this section, we describe both options, but only one of them is needed.
8989

9090
#### Installation option 1: Use managed dependencies

articles/azure-functions/flex-consumption-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Keep these other considerations in mind when using Flex Consumption plan:
138138
+ **Regions**: Not all regions are currently supported. To learn more, see [View currently supported regions](flex-consumption-how-to.md#view-currently-supported-regions).
139139
+ **Deployments**: Deployment slots are not currently supported.
140140
+ **Scale**: The lowest maximum scale is currently `40`. The highest currently supported value is `1000`.
141-
+ **Managed dependencies**: [Managed dependencies in PowerShell](functions-reference-powershell.md#dependency-management) aren't supported by Flex Consumption. You must instead [define your own custom modules](functions-reference-powershell.md#custom-modules).
141+
+ **Managed dependencies**: [Managed dependencies in PowerShell](functions-reference-powershell.md#managed-dependencies-feature) aren't supported by Flex Consumption. You must instead [upload modules with app content](functions-reference-powershell.md#including-modules-in-app-content).
142142
+ **Diagnostic settings**: Diagnostic settings are not currently supported.
143143
+ **Certificates**: Loading certificates with the WEBSITE_LOAD_CERTIFICATES app setting is currently not supported.
144144
+ **Key Vault References**: Key Vault references in app settings don't work when Key Vault is network access restricted, even if the function app has Virtual Network integration. The current workaround is to directly reference the Key Vault in code and read the required secrets.

articles/azure-functions/functions-reference-powershell.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,23 @@ You can configure how Managed Dependencies are downloaded and installed using th
588588
- **Internet Access**: Managed Dependencies require access to `https://www.powershellgallery.com` to download modules. Ensure that your environment allows this access, including modifying firewall/VNet rules as needed.
589589
- **License Acceptance**: Managed Dependencies doesn't support modules that require license acceptance.
590590
- **Flex Consumption Plan**: The Managed Dependencies feature isn't supported in the Flex Consumption plan. Use custom modules instead.
591+
- **Module Locations**: On your local computer, modules are typically installed in one of the globally available folders in your `$env:PSModulePath`. When running in Azure, the `$env:PSModulePath` for a PowerShell function app differs from `$env:PSModulePath` in a regular PowerShell script and will contain both the `Modules` folder uploaded with your app contents and a separate location managed by Managed Dependencies.
592+
593+
## Environment variables
594+
595+
In Functions, [app settings](functions-app-settings.md), such as service connection strings, are exposed as environment variables during execution. You can access these settings using `$env:NAME_OF_ENV_VAR`, as shown in the following example:
596+
597+
```powershell
598+
param($myTimer)
599+
600+
Write-Host "PowerShell timer trigger function ran! $(Get-Date)"
601+
Write-Host $env:AzureWebJobsStorage
602+
Write-Host $env:WEBSITE_SITE_NAME
603+
```
604+
605+
[!INCLUDE [Function app settings](../../includes/functions-app-settings.md)]
606+
607+
When running locally, app settings are read from the [local.settings.json](functions-develop-local.md#local-settings-file) project file.
591608

592609
## Concurrency
593610

@@ -699,7 +716,7 @@ When developing Azure Functions in the [serverless hosting model](consumption-pl
699716

700717
Running `Install-Module` in your function script on each invocation can cause performance issues. Instead, use `Save-Module` or `Save-PSResource` before publishing your function app to bundle the necessary modules.
701718

702-
For more information, see the [Module Management](#module-management) section.
719+
For more information, see the [Dependency Management](#dependency-management) section.
703720

704721
## Next steps
705722

articles/azure-functions/opentelemetry-howto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ These instructions only apply for an OTLP exporter:
207207
208208
1. Add an application setting named `OTEL_FUNCTIONS_WORKER_ENABLED` with value of `True`.
209209
210-
1. Create an [app-level `Modules` folder](functions-reference-powershell.md#function-app-level-modules-folder) in the root of your app and run the following command:
210+
1. Create an [app-level `Modules` folder](functions-reference-powershell.md#including-modules-in-app-content) in the root of your app and run the following command:
211211
212212
```powershell
213213
Save-Module -Name AzureFunctions.PowerShell.OpenTelemetry.SDK

0 commit comments

Comments
 (0)