Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -421,4 +421,9 @@ local.settings.json

# Java files
target/
.idea/
.idea/
# Azure Developer CLI
.azure/

# npm artifact from language: js workaround
package-lock.json
22 changes: 10 additions & 12 deletions azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
name: functions-quickstart-powershell-azd
metadata:
template: functions-quickstart-powershell-azd@0.0.2-beta
hooks:
postprovision:
windows:
shell: pwsh
run: ./scripts/deploy.ps1
interactive: true
continueOnError: false
posix:
shell: sh
run: ./scripts/deploy.sh
interactive: true
continueOnError: false
services:
api:
project: ./src/
# NOTE: language is set to 'js' as a workaround -- azd has no built-in
# packager for PowerShell. The 'js' packager uses generic ZIP packaging
# which works for any runtime. The actual runtime is set via
# FUNCTIONS_WORKER_RUNTIME=powershell in Bicep.
language: js
remoteBuild: false
host: function
27 changes: 0 additions & 27 deletions scripts/deploy.ps1

This file was deleted.

27 changes: 0 additions & 27 deletions scripts/deploy.sh

This file was deleted.

5 changes: 5 additions & 0 deletions src/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "functions-quickstart-powershell-azd",
"version": "1.0.0",
"description": "PowerShell Functions quickstart - no JS dependencies needed (azd packaging stub)"
}
8 changes: 4 additions & 4 deletions src/profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

# Authenticate with Azure PowerShell using MSI.
# Remove this if you are not planning on using MSI or Azure PowerShell.
if ($env:MSI_SECRET) {
Disable-AzContextAutosave -Scope Process | Out-Null
Connect-AzAccount -Identity
}
# if ($env:MSI_SECRET) {
# Disable-AzContextAutosave -Scope Process | Out-Null
# Connect-AzAccount -Identity
# }

# Uncomment the next line to enable legacy AzureRm alias in Azure PowerShell.
# Enable-AzureRmAlias
Expand Down