You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To manage the resources easily, create a resource group to hold these resources. Follow the following steps to create a new resource group.
68
68
69
-
1. Sign-in Azure CLI.
69
+
1. Signin to Azure by using the following command:
70
70
71
-
```azurecli-interactive
71
+
```azurecli
72
72
az login
73
73
```
74
74
75
-
1. Set default location.
75
+
1. Set the default location by using the following command:
76
76
77
-
```azurecli-interactive
77
+
```azurecli
78
78
az configure --defaults location=${LOCATION}
79
79
```
80
80
81
81
1. Set your default subscription. Firstly, list all available subscriptions:
82
82
83
-
```azurecli-interactive
83
+
```azurecli
84
84
az account list --output table
85
85
```
86
86
87
87
Determine the ID of the subscription you want to set and use it with the following command to set your default subscription.
88
88
89
-
```azurecli-interactive
89
+
```azurecli
90
90
az account set --subscription <subscription-ID>
91
91
```
92
92
93
93
1. Create a resource group.
94
94
95
-
```azurecli-interactive
95
+
```azurecli
96
96
az group create --resource-group ${RESOURCE_GROUP}
97
97
```
98
98
99
99
1. Set the newly created resource group as default resource group.
100
100
101
-
```azurecli-interactive
101
+
```azurecli
102
102
az configure --defaults group=${RESOURCE_GROUP}
103
103
```
104
104
105
105
### Step 3 - Create a Service Bus instance
106
106
107
-
1.Run the following command to create a Service Bus namespace.
107
+
1.Use the following command to create a Service Bus namespace.
108
108
109
-
```azurecli-interactive
109
+
```azurecli
110
110
az servicebus namespace create --name ${SERVICE_BUS_NAME_SPACE}
111
111
```
112
112
113
-
1.Run the following command to create two queues named `lower-case` and `upper-case`.
113
+
1.Use the following commands to create two queues named `lower-case` and `upper-case`.
114
114
115
-
```azurecli-interactive
115
+
```azurecli
116
116
az servicebus queue create \
117
117
--namespace-name ${SERVICE_BUS_NAME_SPACE} \
118
118
--name lower-case
@@ -129,71 +129,71 @@ An Azure Spring Apps Consumption plan hosts the Spring event-driven app. This se
129
129
130
130
The Azure Container Apps environment creates a secure boundary around a group of applications. Apps deployed to the same environment are deployed in the same virtual network and write logs to the same Log Analytics workspace.
131
131
132
-
1. Install the Azure Container Apps extension for the CLI.
132
+
1. Install the Azure Container Apps extension for the CLI by using the following command:
133
133
134
-
```azurecli-interactive
134
+
```azurecli
135
135
az extension add --name containerapp --upgrade
136
136
```
137
137
138
-
1. Register the `Microsoft.App` namespace.
138
+
1. Register the `Microsoft.App` namespace by using the following command:
139
139
140
-
```azurecli-interactive
140
+
```azurecli
141
141
az provider register --namespace Microsoft.App
142
142
```
143
143
144
-
1. If you haven't previously used the Azure Monitor Log Analytics workspace, register the `Microsoft.OperationalInsights` provider.
144
+
1. If you haven't previously used the Azure Monitor Log Analytics workspace, register the `Microsoft.OperationalInsights` provider by using the following command:
145
145
146
-
```azurecli-interactive
146
+
```azurecli
147
147
az provider register --namespace Microsoft.OperationalInsights
148
148
```
149
149
150
-
1. Create the environment by this command:
150
+
1. Create the environment by using the following command:
151
151
152
-
```azurecli-interactive
153
-
az containerapp env create --name ${MANAGED_ENVIRONMENT}
152
+
```azurecli
153
+
az containerapp env create --name ${AZURE_CONTAINER_APPS_ENVIRONMENT}
154
154
```
155
155
156
156
#### Step 4.2 - Create Azure Spring Apps instance
157
157
158
158
1. Install the Spring extension designed for StandardGen2 Azure Spring Apps.
To check whether the event-driven app works well, validate it by sending a message to the `lower-case` queue and check whether there's a message in the `upper-case`queue.
245
+
To check whether the event-driven app works well, validate it by sending a message to the `lower-case` queue and check whether there's a message in the `upper-case`queue.
246
246
247
-
1. Send a message to `lower-case` queue with Service Bus Explorer. For details see [Send a message to a queue or topic](/azure/service-bus-messaging/explorer#send-a-message-to-a-queue-or-topic).
248
-
1. Check whether there is a new message sent to the `upper-case` queue. For details see [Peek a message](/azure/service-bus-messaging/explorer#peek-a-message).
247
+
1. Send a message to `lower-case` queue with Service Bus Explorer. For more information, see the [Send a message to a queue or topic](../service-bus-messaging/explorer.md#send-a-message-to-a-queue-or-topic) section of [Use Service Bus Explorer to run data operations on Service Bus](../service-bus-messaging/explorer.md).
248
+
1. Check whether there is a new message sent to the `upper-case` queue. For more information, see the [Peek a message](../service-bus-messaging/explorer.md#peek-a-message) section of [Use Service Bus Explorer to run data operations on Service Bus](../service-bus-messaging/explorer.md).
0 commit comments