Skip to content

Commit 7ce9613

Browse files
Merge pull request #228176 from b-branco/cloudshell-bug
Remove interactive option from Azure CLI commands
2 parents d02f70a + 243ea59 commit 7ce9613

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

articles/private-5g-core/commission-cluster.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ The Azure Private 5G Core private mobile network requires a custom location and
244244
245245
1. Set the following environment variables using the required values for your deployment:
246246
247-
```azurecli-interactive
247+
```azurecli
248248
export SUBSCRIPTION_ID=<subscription ID>
249249
export RESOURCE_GROUP_NAME=<resource group name>
250250
export LOCATION=<deployment region, for example eastus>
@@ -255,13 +255,13 @@ The Azure Private 5G Core private mobile network requires a custom location and
255255
256256
1. Prepare your shell environment:
257257
258-
```azurecli-interactive
258+
```azurecli
259259
az account set --subscription "$SUBSCRIPTION_ID"
260260
```
261261
262262
1. Create the Network Function Operator Kubernetes extension:
263263
264-
```azurecli-interactive
264+
```azurecli
265265
cat > $TEMP_FILE <<EOF
266266
{
267267
"helm.versions": "v3",
@@ -290,7 +290,7 @@ The Azure Private 5G Core private mobile network requires a custom location and
290290
291291
1. Create the Packet Core Monitor Kubernetes extension:
292292
293-
```azurecli-interactive
293+
```azurecli
294294
az k8s-extension create \
295295
--name packet-core-monitor \
296296
--cluster-name "$RESOURCE_NAME" \
@@ -303,7 +303,7 @@ The Azure Private 5G Core private mobile network requires a custom location and
303303
304304
1. Create the custom location:
305305
306-
```azurecli-interactive
306+
```azurecli
307307
az customlocation create \
308308
-n "$CUSTOM_LOCATION" \
309309
-g "$RESOURCE_GROUP_NAME" \

articles/private-5g-core/complete-private-mobile-network-prerequisites.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,33 +114,33 @@ You must set these up in addition to the [ports required for Azure Stack Edge (A
114114
To use Azure Private 5G Core, you need to register some additional resource providers and features with your Azure subscription.
115115

116116
> [!TIP]
117-
> If you do not have the Azure CLI installed, see installation instructions at [How to install the Azure CLI](/cli/azure/install-azure-cli). Alternatively, you can use the Azure Cloud Shell on the portal.
117+
> If you do not have the Azure CLI installed, see installation instructions at [How to install the Azure CLI](/cli/azure/install-azure-cli). Alternatively, you can use the [Azure Cloud Shell](../cloud-shell/overview.md) on the portal.
118118
119119
1. Sign into the Azure CLI with a user account that is associated with the Azure tenant that you are deploying Azure Private 5G Core into:
120-
```azurecli-interactive
120+
```azurecli
121121
az login
122122
```
123123
> [!TIP]
124124
> See [Sign in interactively](/cli/azure/authenticate-azure-cli) for full instructions.
125125
1. If your account has multiple subscriptions, make sure you are in the correct one:
126-
```azurecli-interactive
126+
```azurecli
127127
az account set –-subscription <subscription_id>
128128
```
129129
1. Check the Azure CLI version:
130-
```azurecli-interactive
130+
```azurecli
131131
az version
132132
```
133133
If the CLI version is below 2.37.0, you will need to upgrade your Azure CLI to a newer version. See [How to update the Azure CLI](/cli/azure/update-azure-cli).
134134
1. Register the following resource providers:
135-
```azurecli-interactive
135+
```azurecli
136136
az provider register --namespace Microsoft.MobileNetwork
137137
az provider register --namespace Microsoft.HybridNetwork
138138
az provider register --namespace Microsoft.ExtendedLocation
139139
az provider register --namespace Microsoft.Kubernetes
140140
az provider register --namespace Microsoft.KubernetesConfiguration
141141
```
142142
1. Register the following features:
143-
```azurecli-interactive
143+
```azurecli
144144
az feature register --name allowVnfCustomer --namespace Microsoft.HybridNetwork
145145
az feature register --name previewAccess --namespace Microsoft.Kubernetes
146146
az feature register --name sourceControlConfiguration --namespace Microsoft.KubernetesConfiguration
@@ -150,13 +150,14 @@ To use Azure Private 5G Core, you need to register some additional resource prov
150150
151151
## Retrieve the Object ID (OID)
152152
153-
You need to obtain the object ID (OID) of the custom location resource provider in your Azure tenant. You will need to provide this OID when you configure your ASE to use AKS-HCI. You can obtain the OID using the Azure CLI. You will need to be an owner of your Azure subscription.
153+
You need to obtain the object ID (OID) of the custom location resource provider in your Azure tenant. You will need to provide this OID when you configure your ASE to use AKS-HCI. You can obtain the OID using the Azure CLI or the Azure Cloud Shell on the portal. You'll need to be an owner of your Azure subscription.
154154
155-
You can retrieve the OID using the Azure CLI:
155+
1. Sign in to the Azure CLI or Azure Cloud Shell.
156+
1. Retrieve the OID:
156157
157-
```azurecli-interactive
158-
az ad sp show --id bc313c14-388c-4e7d-a58e-70017303ee3b --query id -o tsv
159-
```
158+
```azurecli
159+
az ad sp show --id bc313c14-388c-4e7d-a58e-70017303ee3b --query id -o tsv
160+
```
160161
161162
This command queries the custom location and will output an OID string. Save this string for use later when you're commissioning the Azure Stack Edge device.
162163

0 commit comments

Comments
 (0)