Skip to content

Commit c720fe5

Browse files
Merge pull request #284747 from majguo/not-recommend-azure-cloud-shell
Update guides by not recommending to use Azure Cloud Shell
2 parents 531de16 + 0327fcd commit c720fe5

4 files changed

+22
-33
lines changed

articles/azure-functions/functions-create-first-quarkus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ Now that you've opened your Azure function in the portal, here are more features
305305
306306
## Clean up resources
307307
308-
If you don't need these resources, you can delete them by running the following command in Azure Cloud Shell or on your local terminal:
308+
If you don't need these resources, you can delete them by running the following command:
309309
310310
```azurecli
311311
az group delete --name <yourResourceGroupName> --yes

articles/openshift/howto-deploy-java-jboss-enterprise-application-platform-app.md

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,9 @@ If you're interested in providing feedback or working closely on your migration
2525

2626
- A local developer command line with a UNIX-like command environment - for example, Ubuntu, macOS, or Windows Subsystem for Linux - and Azure CLI installed. To learn how to install the Azure CLI, see [How to install the Azure CLI](/cli/azure/install-azure-cli).
2727

28-
> [!NOTE]
29-
> You can also execute this guidance from the [Azure Cloud Shell](../cloud-shell/get-started/classic.md). This approach has all the prerequisite tools pre-installed.
30-
>
31-
> :::image type="icon" source="~/reusable-content/ce-skilling/azure/media/cloud-shell/launch-cloud-shell-button.png" alt-text="Button to launch the Azure Cloud Shell." border="false" link="https://shell.azure.com":::
28+
- The `mysql` CLI. For example, you can install the CLI by using the following commands on Ubuntu or Debian-based systems:
3229

33-
- The `mysql` CLI. You can install the CLI by using the following commands:
34-
35-
```azurecli-interactive
30+
```bash
3631
sudo apt update
3732
sudo apt install mysql-server
3833
```
@@ -146,7 +141,7 @@ The sample is a Java application backed by a MySQL database, and is deployed to
146141

147142
Open a shell and set the following environment variables. Replace the substitutions as appropriate.
148143

149-
```azurecli-interactive
144+
```bash
150145
RG_NAME=<resource-group-name>
151146
SERVER_NAME=<database-server-name>
152147
DB_DATABASE_NAME=testdb
@@ -179,7 +174,7 @@ Next, use the following steps to create an Azure Database for MySQL - Flexible S
179174

180175
1. Use the following command to create an Azure Database for MySQL - Flexible Server:
181176

182-
```azurecli-interactive
177+
```azurecli
183178
az mysql flexible-server create \
184179
--resource-group ${RG_NAME} \
185180
--name ${SERVER_NAME} \
@@ -210,7 +205,7 @@ Next, use the following steps to create an Azure Database for MySQL - Flexible S
210205

211206
1. Use the following commands to get the host of the created MySQL server:
212207

213-
```azurecli-interactive
208+
```azurecli
214209
DB_HOST=$(az mysql flexible-server show \
215210
--resource-group ${RG_NAME} \
216211
--name ${SERVER_NAME} \
@@ -223,7 +218,7 @@ Next, use the following steps to create an Azure Database for MySQL - Flexible S
223218

224219
1. Use the following command to create a temporary firewall rule to allow connection to the MySQL server from the public internet:
225220

226-
```azurecli-interactive
221+
```azurecli
227222
az mysql flexible-server firewall-rule create \
228223
--resource-group ${RG_NAME} \
229224
--name ${SERVER_NAME} \
@@ -234,7 +229,7 @@ Next, use the following steps to create an Azure Database for MySQL - Flexible S
234229

235230
1. Use the following command to create a new database user with permissions to read and write the specific database. This command is useful to send SQL directly to the database.
236231

237-
```azurecli-interactive
232+
```bash
238233
mysql --host ${DB_HOST} --user ${ADMIN_USERNAME} --password=${ADMIN_PASSWORD} << EOF
239234
CREATE USER '${DB_USERNAME}'@'%' IDENTIFIED BY '${DB_PASSWORD}';
240235
GRANT ALL PRIVILEGES ON ${DB_DATABASE_NAME} . * TO '${DB_USERNAME}'@'%';
@@ -244,7 +239,7 @@ Next, use the following steps to create an Azure Database for MySQL - Flexible S
244239
245240
1. Use the following command to delete the temporary firewall rule:
246241
247-
```azurecli-interactive
242+
```azurecli
248243
az mysql flexible-server firewall-rule delete \
249244
--resource-group ${RG_NAME} \
250245
--name ${SERVER_NAME} \
@@ -295,7 +290,7 @@ Next, use the following steps to connect to the OpenShift cluster using the Open
295290
296291
1. In the shell, use the following commands to download the latest OpenShift 4 CLI for GNU/Linux. If running on an OS other than GNU/Linux, download the appropriate binary for that OS.
297292
298-
```azurecli-interactive
293+
```bash
299294
cd ~
300295
wget https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz
301296
@@ -306,7 +301,7 @@ Next, use the following steps to connect to the OpenShift cluster using the Open
306301
307302
1. Paste the value from the **cmdToLoginWithKubeadmin** field into the shell, and execute it. You should see the `login successful` message and the project you're using. The following content is an example of the command to connect to the OpenShift cluster using the OpenShift CLI.
308303
309-
```azurecli-interactive
304+
```azurecli
310305
oc login \
311306
$(az aro show \
312307
--resource-group ${RG_NAME} \
@@ -345,7 +340,7 @@ Use the following steps to deploy the app to the cluster. The app is hosted in t
345340
346341
1. In the shell, run the following commands. The commands create a project, apply a permission to enable S2I to work, image the pull secret, and link the secret to the relative service accounts in the project to enable the image pull. Disregard the Git warning about "'detached HEAD' state".
347342
348-
```azurecli-interactive
343+
```bash
349344
git clone https://github.com/Azure/rhel-jboss-templates.git
350345
cd rhel-jboss-templates
351346
git checkout 20230615
@@ -363,7 +358,7 @@ Use the following steps to deploy the app to the cluster. The app is hosted in t
363358
364359
Because the next section uses HEREDOC format, it's best to include and execute it in its own code excerpt.
365360
366-
```azurecli-interactive
361+
```bash
367362
cat <<EOF | oc apply -f -
368363
apiVersion: v1
369364
kind: Secret
@@ -380,14 +375,14 @@ Use the following steps to deploy the app to the cluster. The app is hosted in t
380375
381376
You must see `secret/eaparo-sample-pull-secret created` to indicate successful creation of the secret. If you don't see this output, troubleshoot and resolve the problem before proceeding. Finally, link the secret to the default service account for downloading container images so the cluster can run them.
382377
383-
```azurecli-interactive
378+
```bash
384379
oc secrets link default ${CON_REG_SECRET_NAME} --for=pull
385380
oc secrets link builder ${CON_REG_SECRET_NAME} --for=pull
386381
```
387382
388383
1. Use the following commands to pull the image stream `jboss-eap74-openjdk11-openshift`. Then, start the source to image process and wait until it completes.
389384
390-
```azurecli-interactive
385+
```bash
391386
oc apply -f https://raw.githubusercontent.com/jboss-container-images/jboss-eap-openshift-templates/eap74/eap74-openjdk11-image-stream.json
392387
oc new-build --name=${APPLICATION_NAME} --binary --image-stream=jboss-eap74-openjdk11-openshift:7.4.0 -e CUSTOM_INSTALL_DIRECTORIES=extensions
393388
oc start-build ${APPLICATION_NAME} --from-dir=rhel-jboss-templates/eap-coffee-app --follow
@@ -410,13 +405,13 @@ Next, use the following steps to create a secret:
410405
411406
1. Use the following command to create a secret for holding the password of the database:
412407
413-
```azurecli-interactive
408+
```bash
414409
oc create secret generic db-secret --from-literal=password=${DB_PASSWORD}
415410
```
416411
417412
1. Use the following commands to deploy and run three replicas of the containerized app in the cluster:
418413
419-
```azurecli-interactive
414+
```bash
420415
cat <<EOF | oc apply -f -
421416
apiVersion: wildfly.org/v1alpha1
422417
kind: WildFlyServer
@@ -466,7 +461,7 @@ Next, use the following steps to create a secret:
466461
467462
1. Run the following command to return the URL of the application. You can use this URL to access the deployed sample app. Copy the output to the clipboard.
468463
469-
```azurecli-interactive
464+
```bash
470465
echo http://$(oc get route ${APPLICATION_NAME}-route -o=jsonpath='{.spec.host}')/javaee-cafe
471466
```
472467

articles/openshift/howto-deploy-java-jboss-enterprise-application-platform-with-auto-redeploy.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ This article uses the Azure Marketplace offer for JBoss EAP to accelerate your j
3636

3737
Use the following steps to create a service principal:
3838

39-
1. Open the Azure portal and navigate to the Azure Cloud Shell.
4039
1. Create a service principal by using the following command:
4140

4241
```azurecli
@@ -138,7 +137,7 @@ If you navigated away from the **Deployment is in progress** page, use the follo
138137

139138
:::image type="content" source="media/howto-deploy-java-jboss-enterprise-application-platform-app/deployment-outputs.png" alt-text="Screenshot of the Azure portal that shows JBoss EAP on Azure Red Hat OpenShift deployment outputs." lightbox="media/howto-deploy-java-jboss-enterprise-application-platform-app/deployment-outputs.png":::
140139

141-
1. Open the Azure Cloud Shell, paste the value from the **cmdToGetKubeadminCredentials** field, and execute it. You see the admin account and credential for signing in to the OpenShift cluster console portal. The following example shows an admin account:
140+
1. Open your local terminal, paste the value from the **cmdToGetKubeadminCredentials** field, and execute it. You see the admin account and credential for signing in to the OpenShift cluster console portal. The following example shows an admin account:
142141

143142
```azurecli
144143
az aro list-credentials -g eaparo033123rg -n aro-cluster

articles/openshift/howto-deploy-java-liberty-app.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,14 @@ If you're interested in providing feedback or working closely on your migration
2727
- An Azure subscription. [!INCLUDE [quickstarts-free-trial-note](~/reusable-content/ce-skilling/azure/includes/quickstarts-free-trial-note.md)]
2828
- A local machine with a Unix-like operating system installed (for example, Ubuntu, macOS, or Windows Subsystem for Linux).
2929
- The [Azure CLI](/cli/azure/install-azure-cli). If you're running on Windows or macOS, consider running Azure CLI in a Docker container. For more information, see [How to run the Azure CLI in a Docker container](/cli/azure/run-azure-cli-docker).
30-
- Sign in to the Azure CLI by using the [az login](/cli/azure/reference-index#az-login) command. To finish the authentication process, follow the steps displayed in your terminal. For other sign-in options, see [Sign in with the Azure CLI](/cli/azure/authenticate-azure-cli).
31-
- When you're prompted, install the Azure CLI extension on first use. For more information about extensions, see [Use extensions with the Azure CLI](/cli/azure/azure-cli-extensions-overview).
32-
- Run [az version](/cli/azure/reference-index?#az-version) to find the version and dependent libraries that are installed. To upgrade to the latest version, run [az upgrade](/cli/azure/reference-index?#az-upgrade). This article requires at least version 2.31.0 of Azure CLI.
30+
- Sign in to the Azure CLI by using the [az login](/cli/azure/reference-index#az-login) command. To finish the authentication process, follow the steps displayed in your terminal. For other sign-in options, see [Sign into Azure with Azure CLI](/cli/azure/authenticate-azure-cli#sign-into-azure-with-azure-cli).
31+
- When you're prompted, install the Azure CLI extension on first use. For more information about extensions, see [Use and manage extensions with the Azure CLI](/cli/azure/azure-cli-extensions-overview).
32+
- Run [az version](/cli/azure/reference-index?#az-version) to find the version and dependent libraries that are installed. To upgrade to the latest version, run [az upgrade](/cli/azure/reference-index?#az-upgrade). This article requires at least version 2.31.0 of Azure CLI.
3333
- A Java Standard Edition (SE) implementation, version 17 or later (for example, [Eclipse Open J9](https://www.eclipse.org/openj9/)).
3434
- [Maven](https://maven.apache.org/download.cgi) version 3.5.0 or higher.
3535
- [Docker](https://docs.docker.com/get-docker/) for your OS.
3636
- The Azure identity you use to sign in has either the [Contributor](/azure/role-based-access-control/built-in-roles#contributor) role and the [User Access Administrator](/azure/role-based-access-control/built-in-roles#user-access-administrator) role or the [Owner](/azure/role-based-access-control/built-in-roles#owner) role in the current subscription. For an overview of Azure roles, see [What is Azure role-based access control (Azure RBAC)?](/azure/role-based-access-control/overview)
3737

38-
> [!NOTE]
39-
> You can also execute this guidance from the [Azure Cloud Shell](/azure/cloud-shell/quickstart). This approach has all the prerequisite tools pre-installed, with the exception of Docker.
40-
>
41-
> :::image type="icon" source="~/reusable-content/ce-skilling/azure/media/cloud-shell/launch-cloud-shell-button.png" alt-text="Button to launch the Azure Cloud Shell." border="false" link="https://shell.azure.com":::
42-
4338
## Get a Red Hat pull secret
4439

4540
The Azure Marketplace offer you're going to use in this article requires a Red Hat pull secret. This section shows you how to get a Red Hat pull secret for Azure Red Hat OpenShift. To learn about what a Red Hat pull secret is and why you need it, see the [Get a Red Hat pull secret](create-cluster.md#get-a-red-hat-pull-secret-optional) section of [Create an Azure Red Hat OpenShift 4 cluster](create-cluster.md). To get the pull secret for use, follow the steps in this section.

0 commit comments

Comments
 (0)