This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- HttpTrigger1 | |
- function.json | |
- run.ps1 | |
- sample.dat | |
- .funcignore | |
- .gitignore | |
- host.json | |
- local.settings.json | |
- profile.ps1 | |
- requirements.psd1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
az resource list --resource-group bpdev-azure-functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
az deployment group create --resource-group bpdev-azure-functions --template-file main.bicep --name 'First Deployment' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
az bicep build --file .\main.bicep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
az login |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
az group create --location 'westeurope' --resource-group bpdev-azure-functions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Variables | |
$wacDownloadUrl = 'http://aka.ms/WACDownload' | |
$downloadPath = "$env:USERPROFILE\Downloads\WAC.msi" | |
$port = 443 | |
# Download the Windows Admin Center MSI from Microsoft | |
Invoke-WebRequest $wacDownloadUrl -OutFile $downloadPath | |
# Install Windows Admin Center using msiexec | |
Start-Process -FilePath 'msiexec.exe' -ArgumentList "/i $downloadPath /qn /L*v log.txt SME_PORT=$port SSL_CERTIFICATE_OPTION=generate" -Wait |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install the required module just to be sure | |
Install-Module Az.ConnectedMachine | |
# Create a resource group in the selected subscription | |
New-AzResourceGroup -Name 'azure-arc' -Location 'West Europe' | |
# Download the agent and deploy the machine in the resource group | |
Connect-AzConnectedMachine -ResourceGroupName 'azure-arc' -Name 'hostname of your machine' -Location 'West Europe' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Connect with the Azure service | |
Connect-AzAccount | |
# Get available subscriptions within the tenant | |
Get-AzSubscription | |
# Set the context to the selected subscription | |
Set-AzContext -SubscriptionId 'subscription ID you want to use' | |
# Register the required resource providers for Azure Arc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Variables for Azure Functions | |
$localFunctionDirectory = "~/github" | |
$functionAppName = 'microsoft-graph-func' | |
# Variables for the trigger inside the Azure Function app | |
$functionTriggerName = 'getgraph' | |
$functionTemplate = 'HTTP trigger' | |
$functionAuthLevel = 'function' | |
# Set location to the new Function App directory |
NewerOlder