ps1

mail@pastecode.io avatar
unknown
plain_text
2 months ago
361 B
2
Indexable
Never
$csvPath = "<Path to your CSV file>"
$functionAppName = "<Your Function App Name>"
$resourceGroupName = "<Your Resource Group Name>"

$envVars = Import-Csv $csvPath
$settings = $envVars | ForEach-Object { "$($_.Key)=$($_.Value)" } -join " "

az functionapp config appsettings set --name $functionAppName --resource-group $resourceGroupName --settings $settings
Leave a Comment