Sdílet prostřednictvím


Deploy a network function using Azure CLI

This article shows you how to deploy various network functions, including Session Management Functions (SMF), User Plane Functions (UPF), Network Repository Functions (NRF), Network Slice Selection Functions (NSSF), and Access and Mobility Functions (AMF) in Azure Operator 5G Core Preview.

Prerequisites

You must deploy the clusterServices resource before you can deploy any other network function.

See Quickstart: Deploy Azure Operator 5G Core Preview for available network function resources.

Deploy a network function-Azure CLI

Use the following Azure CLI commands to deploy the network function:

$ export resourceGroupName <Name of resource group> 
$ export templateFile <Path to bicep scripts> 
$ export resourceName <Choose name for the AO5GC resource – note the same resourceName should be used for clusterServices and all associated NFs> 
$ export location <Azure region where resources are deployed> 
$ export templateParamsFile <Path to bicep script parameters file> 

$ az deployment group create  
--resource-group $resourceGroupName \ 
--template-file $templateFile \ 
--parameters resourceName=$resourceName \ 
--parameters locationName=$location \ 
--parameters $templateParamsFile 

Next step