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
--output tsv | sed -e 's/https:\/\///' -e 's/:443\///')
145
+
--name $SERVICEBUS_NAME \
146
+
--resource-group $RESOURCE_GROUP \
147
+
--disable-local-auth \
148
+
--query serviceBusEndpoint \
149
+
--output tsv | sed -e 's/https:\/\///' -e 's/:443\///')
150
150
151
151
# Create a new queue in the service bus namespace
152
152
az servicebus queue create \
153
-
--name myqueue \
154
-
--namespace $SERVICEBUS_NAME \
155
-
--resource-group $RESOURCE_GROUP
153
+
--name myqueue \
154
+
--namespace $SERVICEBUS_NAME \
155
+
--resource-group $RESOURCE_GROUP
156
156
```
157
157
158
158
1. Create a user-assigned managed identity in *Tenant B* using the [`az identity create`][az-identity-create] command.
@@ -257,7 +257,7 @@ In this section, you deploy an application to your AKS cluster in *Tenant A* tha
257
257
258
258
### Create Kubernetes resources to send messages to Azure Service Bus queue
259
259
260
-
1. Create a new Kubernetes ServiceAccount in the `default` namespace and pass in the client ID of your managed identity in *Tenant B* to the `kubectl apply` command. The client ID is used to authenticate the pod to the Azure Service Bus.
260
+
1. Create a new Kubernetes ServiceAccount in the `default` namespace and pass in the client ID of your managed identity in *Tenant B* to the `kubectl apply` command. The client ID is used to authenticate the app in *Tenant A* to the Azure Service Bus in *Tenant B*.
261
261
262
262
```azurecli-interactive
263
263
kubectl apply -f - <<EOF
@@ -312,7 +312,7 @@ In this section, you deploy an application to your AKS cluster in *Tenant A* tha
312
312
# Get the dynamically generated pod name
313
313
POD_NAME=$(kubectl get po --selector job-name=myproducer -o jsonpath='{.items[0].metadata.name}')
314
314
315
-
# Get the tenant ID environment variable
315
+
# Verify the tenant ID environment variable is set for Tenant B
316
316
kubectl describe pod $POD_NAME | grep AZURE_TENANT_ID
317
317
```
318
318
@@ -332,6 +332,9 @@ In this section, you deploy an application to your AKS cluster in *Tenant A* tha
332
332
Sent 100 messages
333
333
```
334
334
335
+
> [!NOTE]
336
+
> As an extra verification step, you can go to the [Azure portal][azure-portal] and navigate to the Azure Service Bus queue in *Tenant B* to view the messages that were sent in the Service Bus Explorer.
337
+
335
338
## Clean up resources
336
339
337
340
After you verify that the deployment is successful, you can clean up the resources to avoid incurring Azure costs.
@@ -402,3 +405,5 @@ In this article, you learned how to configure cross-tenant workload identity on
0 commit comments