Skip to content

Commit 4ed819c

Browse files
Final tweaks to add <SUB_ID> variable
1 parent ff7bd77 commit 4ed819c

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

articles/private-5g-core/deploy-private-mobile-network-with-site-powershell.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ Azure Private 5G Core is an Azure cloud service for deploying and managing 5G co
5252

5353
You must complete the following steps in order to successfully deploy a private mobile network, site and SIM. Each step must be fully complete before proceeding to the next.
5454

55+
Several commands will require the ID of the Azure subscription in which the Azure resources are to be deployed. This appears as `<SUB_ID>` in the commands below. Obtain that value before you proceed.
56+
5557
### Create a Mobile Network resource
5658

5759
Use `New-AzMobileNetwork` to create a new **Mobile Network** resource. The example command uses the following placeholder values, replace them with the information gathered in [Prerequisite: Prepare to deploy a private mobile network and site](#prerequisite-prepare-to-deploy-a-private-mobile-network-and-site).
@@ -74,6 +76,7 @@ Use `New-AzMobileNetworkSite` to create a new **Site** resource. The example com
7476
| `<MOBILENETWORK>` | Enter the name of the private mobile network you created. |
7577
| `<SITE>` | Enter the name for the site. |
7678
| `<RESOURCEGROUP>` | Enter the name of the resource group. |
79+
| `<SUB_ID>` | The ID of the Azure subscription in which the Azure resources are to be deployed. |
7780

7881
```powershell
7982
New-AzMobileNetworkSite -MobileNetworkName <MOBILENETWORK> -Name <SITE> -ResourceGroupName <RESOURCEGROUP> -Location eastus
@@ -82,7 +85,7 @@ New-AzMobileNetworkSite -MobileNetworkName <MOBILENETWORK> -Name <SITE> -Resourc
8285
Create a variable containing the **Site** resource's ID.
8386

8487
```powershell
85-
$siteResourceId = New-AzMobileNetworkSiteResourceIdObject -Id /subscriptions/2c5961fe-118a-40e2-856b-382f8e0c71d0/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/sites/<SITE>
88+
$siteResourceId = New-AzMobileNetworkSiteResourceIdObject -Id /subscriptions/<SUB_ID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/sites/<SITE>
8689
```
8790

8891
### Create a Packet Core Control Plane resource
@@ -93,10 +96,11 @@ Use `New-AzMobileNetworkPacketCoreControlPlane` to create a new **Packet Core Co
9396
|-|-|
9497
| `<CONTROLPLANE>` | Enter the name for the packet core control plane. |
9598
| `<RESOURCEGROUP>` | Enter the name of the resource group. |
99+
| `<SUB_ID>` | The ID of the Azure subscription in which the Azure resources are to be deployed. |
96100

97101
```powershell
98-
$aseId = "/subscriptions/9e276fe5-9273-4474-80c6-032321ab3795/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/<ASE>"
99-
$customLocationId = "/subscriptions/9e276fe5-9273-4474-80c6-032321ab3795/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.ExtendedLocation/customLocations/<CUSTOMLOCATION>"
102+
$aseId = "/subscriptions/<SUB_ID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.DataBoxEdge/DataBoxEdgeDevices/<ASE>"
103+
$customLocationId = "/subscriptions/<SUB_ID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.ExtendedLocation/customLocations/<CUSTOMLOCATION>"
100104
New-AzMobileNetworkPacketCoreControlPlane -Name <CONTROLPLANE> -ResourceGroupName <RESOURCEGROUP> -LocalDiagnosticAccessAuthenticationType Password -Location eastus -PlatformType AKS-HCI -Site $siteResourceId -Sku G0 -ControlPlaneAccessInterfaceIpv4Address 10.232.44.56 -ControlPlaneAccessInterfaceName N2 -AzureStackEdgeDeviceId $aseId -CustomLocationId $customLocationId
101105
```
102106

@@ -123,6 +127,7 @@ Use `New-AzMobileNetworkDataNetwork` to create a new **Data Network** resource.
123127
| `<MOBILENETWORK>` | Enter the name of the private mobile network. |
124128
| `<DATANETWORK>` | Enter the name for the data network. |
125129
| `<RESOURCEGROUP>` | Enter the name of the resource group. |
130+
| `<SUB_ID>` | The ID of the Azure subscription in which the Azure resources are to be deployed. |
126131

127132
```powershell
128133
New-AzMobileNetworkDataNetwork -MobileNetworkName <MOBILENETWORK> -Name
@@ -132,7 +137,7 @@ New-AzMobileNetworkDataNetwork -MobileNetworkName <MOBILENETWORK> -Name
132137
Create a variable for the **Data Network** resource's configuration.
133138

134139
```powershell
135-
$dataNetworkConfiguration = New-AzMobileNetworkDataNetworkConfigurationObject -AllowedService $ServiceResourceId -DataNetworkId "/subscriptions/2c5961fe-118a-40e2-856b-382f8e0c71d0/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/dataNetworks/<DATANETWORK>" -SessionAmbrDownlink "1 Gbps" -SessionAmbrUplink "500 Mbps" -FiveQi 9 -AllocationAndRetentionPriorityLevel 9 -DefaultSessionType 'IPv4' -MaximumNumberOfBufferedPacket 200 -PreemptionCapability 'NotPreempt' -PreemptionVulnerability 'Preemptable'
140+
$dataNetworkConfiguration = New-AzMobileNetworkDataNetworkConfigurationObject -AllowedService $ServiceResourceId -DataNetworkId "/subscriptions/<SUB_ID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/dataNetworks/<DATANETWORK>" -SessionAmbrDownlink "1 Gbps" -SessionAmbrUplink "500 Mbps" -FiveQi 9 -AllocationAndRetentionPriorityLevel 9 -DefaultSessionType 'IPv4' -MaximumNumberOfBufferedPacket 200 -PreemptionCapability 'NotPreempt' -PreemptionVulnerability 'Preemptable'
136141
```
137142

138143
### Create a SIM Group
@@ -143,9 +148,10 @@ Use `New-AzMobileNetworkSimGroup` to create a new **SIM Group**. The example com
143148
|-|-|
144149
| `<SIMGROUP>` | Enter the name for the sim group. |
145150
| `<RESOURCEGROUP>` | Enter the name of the resource group. |
151+
| `<SUB_ID>` | The ID of the Azure subscription in which the Azure resources are to be deployed. |
146152

147153
```powershell
148-
New-AzMobileNetworkSimGroup -Name <SIMGROUP> -ResourceGroupName <RESOURCEGROUP> -Location eastus -MobileNetworkId "/subscriptions/2e6a1160-c68f-4298-b9fe-c510912f8b3a/resourceGroups/rf4-https-dev-msi/providers/Microsoft.MobileNetwork/mobileNetworks/MOBILENETWORK8"
154+
New-AzMobileNetworkSimGroup -Name <SIMGROUP> -ResourceGroupName <RESOURCEGROUP> -Location eastus -MobileNetworkId "/subscriptions/<SUB_ID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/MOBILENETWORK8"
149155
```
150156

151157
Confirm that you want to perform the action by typing <kbd>Y</kbd>.
@@ -159,6 +165,7 @@ Use `New-AzMobileNetworkSlice` to create a new **Slice**. The example command us
159165
| `<MOBILENETWORK>` | Enter the name for the private mobile network. |
160166
| `<RESOURCEGROUP>` | Enter the name of the resource group. |
161167
| `<SLICE>` | Enter the name of the slice. |
168+
| `<SUB_ID>` | The ID of the Azure subscription in which the Azure resources are to be deployed. |
162169

163170
```powershell
164171
New-AzMobileNetworkSlice -MobileNetworkName <MOBILENETWORK> -ResourceGroupName <RESOURCEGROUP> -SliceName <SLICE> -Location eastus -SnssaiSst 1
@@ -167,7 +174,7 @@ New-AzMobileNetworkSlice -MobileNetworkName <MOBILENETWORK> -ResourceGroupName <
167174
Create a variable for the **Slice** resource's configuration.
168175

169176
```powershell
170-
$sliceConfiguration = New-AzMobileNetworkSliceConfigurationObject -DataNetworkConfiguration $dataNetworkConfiguration -DefaultDataNetworkId "/subscriptions/2c5961fe-118a-40e2-856b-382f8e0c71d0/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/dataNetworks/<DATANETWORK>" -SliceId "/subscriptions/2c5961fe-118a-40e2-856b-382f8e0c71d0/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/slices/<SLICE>"
177+
$sliceConfiguration = New-AzMobileNetworkSliceConfigurationObject -DataNetworkConfiguration $dataNetworkConfiguration -DefaultDataNetworkId "/subscriptions/<SUB_ID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/dataNetworks/<DATANETWORK>" -SliceId "/subscriptions/<SUB_ID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/slices/<SLICE>"
171178
```
172179

173180
### Create a Service
@@ -179,6 +186,7 @@ Use `New-AzMobileNetworkService` to create a new **Service**. The example comman
179186
| `<MOBILENETWORK>` | Enter the name for the private mobile network. |
180187
| `<RESOURCEGROUP>` | Enter the name of the resource group. |
181188
| `<SERVICE>` | Enter the name of the service. |
189+
| `<SUB_ID>` | The ID of the Azure subscription in which the Azure resources are to be deployed. |
182190

183191
```powershell
184192
$dataFlowTemplates = New-AzMobileNetworkServiceDataFlowTemplateObject -Direction Bidirectional -Protocol ip -RemoteIPList any -TemplateName any
@@ -191,7 +199,7 @@ New-AzMobileNetworkService -MobileNetworkName <MOBILENETWORK> -Name <SERVICE> -R
191199
Create a variable for the **Service** resource's ID.
192200

193201
```powershell
194-
$serviceResourceId = New-AzMobileNetworkServiceResourceIdObject -Id "/subscriptions/2c5961fe-118a-40e2-856b-382f8e0c71d0/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/services/<SERVICE>"
202+
$serviceResourceId = New-AzMobileNetworkServiceResourceIdObject -Id "/subscriptions/<SUB_ID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/services/<SERVICE>"
195203
```
196204

197205
### Create a SIM Policy
@@ -206,9 +214,10 @@ Use `New-AzMobileNetworkSimPolicy` to create a new **SIM Policy**. The example c
206214
| `<DATANETWORK>` | Enter the name for the data network. |
207215
| `<SLICE>` | Enter the name of the slice. |
208216
| `<SIMPOLICY>` | Enter the name for the SIM policy. |
217+
| `<SUB_ID>` | The ID of the Azure subscription in which the Azure resources are to be deployed. |
209218

210219
```powershell
211-
New-AzMobileNetworkSimPolicy -MobileNetworkName <MOBILENETWORK> -Name <SIMPOLICY> -ResourceGroupName <RESOURCEGROUP> -DefaultSlouseId "/subscriptions/2c5961fe-118a-40e2-856b-382f8e0c71d0/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/slices/<SLICE>" -Location eastus -SliceConfiguration $sliceConfiguration -UeAmbrDownlink "2 Gbps" -UeAmbrUplink "2 Gbps"
220+
New-AzMobileNetworkSimPolicy -MobileNetworkName <MOBILENETWORK> -Name <SIMPOLICY> -ResourceGroupName <RESOURCEGROUP> -DefaultSliceId "/subscriptions/<SUB_ID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/slices/<SLICE>" -Location eastus -SliceConfiguration $sliceConfiguration -UeAmbrDownlink "2 Gbps" -UeAmbrUplink "2 Gbps"
212221
```
213222

214223
### Create a SIM
@@ -225,11 +234,12 @@ Use `New-AzMobileNetworkSim` to create a new **SIM**. The example command uses t
225234
| `<DATANETWORK>` | Enter the name for the data network. |
226235
| `<SLICE>` | Enter the name of the slice. |
227236
| `<SIMPOLICY>` | Enter the name of the SIM policy. |
237+
| `<SUB_ID>` | The ID of the Azure subscription in which the Azure resources are to be deployed. |
228238

229239
```powershell
230240
$staticIp = New-AzMobileNetworkSimStaticIPPropertiesObject -StaticIPIpv4Address 10.0.0.20
231241
232-
New-AzMobileNetworkSim -GroupName <SIMGROUP> -Name <SIM> -ResourceGroupName <RESOURCEGROUP> -InternationalMobileSubscriberIdentity 000000000000001 -AuthenticationKey 00112233445566778899AABBCCDDEEFF -DeviceType Mobile -IntegratedCircuitCardIdentifier 8900000000000000001 -OperatorKeyCode 00000000000000000000000000000001 -SimPolicyId "/subscriptions/2c5961fe-118a-40e2-856b-382f8e0c71d0/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/simPolicies/<SIMPOLICY>" -StaticIPConfiguration $staticIp
242+
New-AzMobileNetworkSim -GroupName <SIMGROUP> -Name <SIM> -ResourceGroupName <RESOURCEGROUP> -InternationalMobileSubscriberIdentity 000000000000001 -AuthenticationKey 00112233445566778899AABBCCDDEEFF -DeviceType Mobile -IntegratedCircuitCardIdentifier 8900000000000000001 -OperatorKeyCode 00000000000000000000000000000001 -SimPolicyId "/subscriptions/<SUB_ID>/resourceGroups/<RESOURCEGROUP>/providers/Microsoft.MobileNetwork/mobileNetworks/<MOBILENETWORK>/simPolicies/<SIMPOLICY>" -StaticIPConfiguration $staticIp
233243
```
234244

235245
### Attach the Data Network

0 commit comments

Comments
 (0)