This script streamlines and automates the process of preparing Azure Stack Edge (ASE) for use with Azure Private 5G Core ('AP5GC'). The script supports Azure Stack Edge Pro and Azure Stack Edge Pro 2, running ASE software versions 2309, 2312 and 2403 only. It supports singleton installations of AP5GC. Also, this does not support any Trunk vlan configuration on the ASE.
A Windows laptop. You will need Administrator rights over your machine. Make sure that Excel is installed.
PowerShell 5.x. (Other versions of PowerShell are not supported.) You may already have it installed: run PowerShell from the Start menu and use the $PSVersionTable
command to verify the version.
The ImportExcel and Azure Resources (az.Resources) Powershell modules. To verify, run PowerShell as an Administrator and then execute the following:
Get-Module -Name Az.Resources -list
Get-Module -Name ImportExcel -list
If the module is installed, the version will be displayed; otherwise, no output is produced. To install them, run PowerShell as an Administrator and then execute the following, exiting and restarting your PowerShell session afterwards:
Install-Module -Name Az.Resources -AllowClobber -Scope CurrentUser
Install-Module -Name ImportExcel -AllowClobber -Scope CurrentUser
Remote execution support between your PC and ASE. Run PowerShell as an Administrator and execute: winrm quickconfig
. If remote execution support is not already enabled, you will be prompted to enable it.
If winrm
returns errors regarding Public interfaces being used, change them to private: from your Powershell console run:
Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private
Note: after using this script, you can disable remote execution via the commands:
Stop-Service winrm
Set-Service -Name winrm -StartupType Disabled
Install the Azure CLI tools on your PC, following the instructions to install Azure CLI on Windows. We suggest choosing the 64-bit MSI installation.
Azure: You will need access to the subscription used for your Azure Stack Edge device. You must have Ownership privileges on this subscription.
Your Azure subscription should have been explicitly authorized by Microsoft for AP5GC usage, so that you can later deploy AP5GC (outside of scope here).
You should create a Resource Group (RG) for the ASE, and ensure your have Owner permissions on it, before using the script.
Unblock-File PowerShellBasedConfiguration.psm1
Set-ExecutionPolicy Unrestricted -Scope CurrentUser
parameters_file_single_ASE_AP5GC
.az login
. Select the appropriate tenant ID in the browser pop up and sign in..\one_script_single_ASE.ps1
(A browser prompt may request that you log in to your tenant - this is for the Az cmdlet.)
Typically, all the ASE resources should be deployed within 35-45 minutes.