Skip to content

Commit cb4a4ce

Browse files
Merge pull request #8891 from MicrosoftDocs/main
Auto Publish – main to live - 2026-04-16 23:00 UTC
2 parents e32c395 + f970b78 commit cb4a4ce

7 files changed

Lines changed: 101 additions & 101 deletions

File tree

articles/java/migration/migrate-github-copilot-app-modernization-for-java-quickstart-chat-window.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ With the AppModernization agent selected, use simple, natural language prompts t
5050

5151
1. In the Copilot chat window with the AppModernization agent selected, enter the following prompt:
5252

53-
```
53+
```prompt
5454
migrate from rabbitmq to Azure service bus
5555
```
5656

@@ -62,31 +62,31 @@ The AppModernization agent supports various migration scenarios with simple prom
6262

6363
- **Database migration**:
6464

65-
```
65+
```prompt
6666
migrate from Oracle to Azure PostgreSQL
6767
```
6868

6969
- **Authentication migration**:
7070

71-
```
71+
```prompt
7272
migrate to Managed Identity for Azure SQL Database
7373
```
7474

7575
- **Storage migration**:
7676

77-
```
77+
```prompt
7878
migrate from AWS S3 to Azure Storage Blob
7979
```
8080

8181
- **Messaging migration**:
8282

83-
```
83+
```prompt
8484
migrate from ActiveMQ to Azure Service Bus
8585
```
8686

8787
- **Secret management**:
8888

89-
```
89+
```prompt
9090
migrate secrets to Azure Key Vault
9191
```
9292

articles/java/sdk/lro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Both `SyncPoller` and `PollerFlux` are the client-side abstractions intended to
2727
Calling any API that returns a `SyncPoller` will immediately start the long-running operation. The API will return the `SyncPoller` immediately, letting you monitor the progress of the long-running operation and retrieve the final result. The following example shows how to monitor the progress of a long-running operation using the `SyncPoller`.
2828

2929
```java
30-
SyncPoller<UploadBlobProgress, UploadedBlobProperties> poller = syncClient.beginUploadFromUri(<URI to upload from>)
30+
SyncPoller<UploadBlobProgress, UploadedBlobProperties> poller = syncClient.beginUploadFromUri(<URI to upload from>);
3131
PollResponse<UploadBlobProgress> response;
3232

3333
do {

articles/java/sdk/pagination.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Iterable<PagedResponse<Secret>> secretPages = client.listSecrets().iterableByPag
7474
for (PagedResponse<Secret> page : secretPages) {
7575
System.out.println("Response code: " + page.getStatusCode());
7676
System.out.println("Continuation Token: " + page.getContinuationToken());
77-
page.getElements().forEach(secret -> System.out.println("Secret value: " + secret))
77+
page.getElements().forEach(secret -> System.out.println("Secret value: " + secret));
7878
}
7979
```
8080

@@ -90,7 +90,7 @@ client.listSecrets()
9090
.forEach(page -> {
9191
System.out.println("Response code: " + page.getStatusCode());
9292
System.out.println("Continuation Token: " + page.getContinuationToken());
93-
page.getElements().forEach(secret -> System.out.println("Secret value: " + secret))
93+
page.getElements().forEach(secret -> System.out.println("Secret value: " + secret));
9494
});
9595
```
9696

@@ -118,7 +118,7 @@ asyncClient.listSecrets().byPage()
118118
.subscribe(page -> {
119119
System.out.println("Response code: " + page.getStatusCode());
120120
System.out.println("Continuation Token: " + page.getContinuationToken());
121-
page.getElements().forEach(secret -> System.out.println("Secret value: " + secret))
121+
page.getElements().forEach(secret -> System.out.println("Secret value: " + secret));
122122
},
123123
ex -> System.out.println("Error listing pages with secret: " + ex.getMessage()),
124124
() -> System.out.println("Successfully listed all pages with secret"));

articles/java/spring-framework/spring-cloud-stream-support.md

Lines changed: 82 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ spring:
757757
subscription-id: ${AZURE_SUBSCRIPTION_ID}
758758
eventhubs:
759759
resource:
760-
resource-group: ${AZURE_EVENTHUBS_RESOURECE_GROUP}
760+
resource-group: ${AZURE_EVENTHUBS_RESOURCE_GROUP}
761761
```
762762

763763
> [!NOTE]
@@ -899,99 +899,99 @@ The above [connection](#connection-configuration-properties-1) and [common Azure
899899

900900
* For credentials as connection string, configure the following properties in your **application.yml** file:
901901

902-
```yaml
903-
spring:
904-
cloud:
905-
azure:
906-
servicebus:
907-
connection-string: ${SERVICEBUS_NAMESPACE_CONNECTION_STRING}
908-
function:
909-
definition: consume;supply
910-
stream:
911-
bindings:
912-
consume-in-0:
913-
destination: ${SERVICEBUS_ENTITY_NAME}
914-
# If you use Service Bus Topic, add the following configuration
915-
# group: ${SUBSCRIPTION_NAME}
916-
supply-out-0:
917-
destination: ${SERVICEBUS_ENTITY_NAME_SAME_AS_ABOVE}
918-
servicebus:
919-
bindings:
920-
consume-in-0:
921-
consumer:
922-
auto-complete: false
923-
supply-out-0:
924-
producer:
925-
entity-type: queue # set as "topic" if you use Service Bus Topic
902+
```yaml
903+
spring:
904+
cloud:
905+
azure:
906+
servicebus:
907+
connection-string: ${SERVICEBUS_NAMESPACE_CONNECTION_STRING}
908+
function:
909+
definition: consume;supply
910+
stream:
911+
bindings:
912+
consume-in-0:
913+
destination: ${SERVICEBUS_ENTITY_NAME}
914+
# If you use Service Bus Topic, add the following configuration
915+
# group: ${SUBSCRIPTION_NAME}
916+
supply-out-0:
917+
destination: ${SERVICEBUS_ENTITY_NAME_SAME_AS_ABOVE}
918+
servicebus:
919+
bindings:
920+
consume-in-0:
921+
consumer:
922+
auto-complete: false
923+
supply-out-0:
924+
producer:
925+
entity-type: queue # set as "topic" if you use Service Bus Topic
926926
```
927927

928928
[!INCLUDE [security-note](../includes/security-note.md)]
929929

930930
* For credentials as service principal, configure the following properties in your **application.yml** file:
931931

932-
```yaml
933-
spring:
934-
cloud:
935-
azure:
936-
credential:
937-
client-id: ${AZURE_CLIENT_ID}
938-
client-secret: ${AZURE_CLIENT_SECRET}
939-
profile:
940-
tenant-id: <tenant>
941-
servicebus:
942-
namespace: ${SERVICEBUS_NAMESPACE}
943-
function:
944-
definition: consume;supply
945-
stream:
946-
bindings:
947-
consume-in-0:
948-
destination: ${SERVICEBUS_ENTITY_NAME}
949-
# If you use Service Bus Topic, add the following configuration
950-
# group: ${SUBSCRIPTION_NAME}
951-
supply-out-0:
952-
destination: ${SERVICEBUS_ENTITY_NAME_SAME_AS_ABOVE}
953-
servicebus:
954-
bindings:
955-
consume-in-0:
956-
consumer:
957-
auto-complete: false
958-
supply-out-0:
959-
producer:
960-
entity-type: queue # set as "topic" if you use Service Bus Topic
932+
```yaml
933+
spring:
934+
cloud:
935+
azure:
936+
credential:
937+
client-id: ${AZURE_CLIENT_ID}
938+
client-secret: ${AZURE_CLIENT_SECRET}
939+
profile:
940+
tenant-id: <tenant>
941+
servicebus:
942+
namespace: ${SERVICEBUS_NAMESPACE}
943+
function:
944+
definition: consume;supply
945+
stream:
946+
bindings:
947+
consume-in-0:
948+
destination: ${SERVICEBUS_ENTITY_NAME}
949+
# If you use Service Bus Topic, add the following configuration
950+
# group: ${SUBSCRIPTION_NAME}
951+
supply-out-0:
952+
destination: ${SERVICEBUS_ENTITY_NAME_SAME_AS_ABOVE}
953+
servicebus:
954+
bindings:
955+
consume-in-0:
956+
consumer:
957+
auto-complete: false
958+
supply-out-0:
959+
producer:
960+
entity-type: queue # set as "topic" if you use Service Bus Topic
961961
```
962962

963963
> [!NOTE]
964964
> The values allowed for `tenant-id` are: `common`, `organizations`, `consumers`, or the tenant ID. For more information about these values, see the [Used the wrong endpoint (personal and organization accounts)](/troubleshoot/azure/active-directory/error-code-aadsts50020-user-account-identity-provider-does-not-exist#cause-3-used-the-wrong-endpoint-personal-and-organization-accounts) section of [Error AADSTS50020 - User account from identity provider does not exist in tenant](/troubleshoot/azure/active-directory/error-code-aadsts50020-user-account-identity-provider-does-not-exist). For information on converting your single-tenant app, see [Convert single-tenant app to multitenant on Microsoft Entra ID](/entra/identity-platform/howto-convert-app-to-be-multi-tenant).
965965

966966
* For credentials as managed identities, configure the following properties in your **application.yml** file:
967967

968-
```yaml
969-
spring:
970-
cloud:
971-
azure:
972-
credential:
973-
managed-identity-enabled: true
974-
client-id: ${MANAGED_IDENTITY_CLIENT_ID} # Only needed when using a user-assigned managed identity
975-
servicebus:
976-
namespace: ${SERVICEBUS_NAMESPACE}
977-
function:
978-
definition: consume;supply
979-
stream:
980-
bindings:
981-
consume-in-0:
982-
destination: ${SERVICEBUS_ENTITY_NAME}
983-
# If you use Service Bus Topic, add the following configuration
984-
# group: ${SUBSCRIPTION_NAME}
985-
supply-out-0:
986-
destination: ${SERVICEBUS_ENTITY_NAME_SAME_AS_ABOVE}
987-
servicebus:
988-
bindings:
989-
consume-in-0:
990-
consumer:
991-
auto-complete: false
992-
supply-out-0:
993-
producer:
994-
entity-type: queue # set as "topic" if you use Service Bus Topic
968+
```yaml
969+
spring:
970+
cloud:
971+
azure:
972+
credential:
973+
managed-identity-enabled: true
974+
client-id: ${MANAGED_IDENTITY_CLIENT_ID} # Only needed when using a user-assigned managed identity
975+
servicebus:
976+
namespace: ${SERVICEBUS_NAMESPACE}
977+
function:
978+
definition: consume;supply
979+
stream:
980+
bindings:
981+
consume-in-0:
982+
destination: ${SERVICEBUS_ENTITY_NAME}
983+
# If you use Service Bus Topic, add the following configuration
984+
# group: ${SUBSCRIPTION_NAME}
985+
supply-out-0:
986+
destination: ${SERVICEBUS_ENTITY_NAME_SAME_AS_ABOVE}
987+
servicebus:
988+
bindings:
989+
consume-in-0:
990+
consumer:
991+
auto-complete: false
992+
supply-out-0:
993+
producer:
994+
entity-type: queue # set as "topic" if you use Service Bus Topic
995995
```
996996

997997
1. Define supplier and consumer.
@@ -1392,7 +1392,7 @@ spring:
13921392
subscription-id: ${AZURE_SUBSCRIPTION_ID}
13931393
servicebus:
13941394
resource:
1395-
resource-group: ${AZURE_SERVICEBUS_RESOURECE_GROUP}
1395+
resource-group: ${AZURE_SERVICEBUS_RESOURCE_GROUP}
13961396
stream:
13971397
servicebus:
13981398
bindings:

articles/java/spring-framework/spring-integration-support.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ developers can use `EventHubsContainerProperties` for the configuration. See [th
254254
public EventHubsInboundChannelAdapter messageChannelAdapter(
255255
@Qualifier(INPUT_CHANNEL) MessageChannel inputChannel,
256256
EventHubsMessageListenerContainer listenerContainer) {
257-
EventHubsInboundChannelAdapter adapter = new EventHubsInboundChannelAdapter(processorContainer);
257+
EventHubsInboundChannelAdapter adapter = new EventHubsInboundChannelAdapter(listenerContainer);
258258
adapter.setOutputChannel(inputChannel);
259259
return adapter;
260260
}
@@ -307,7 +307,7 @@ class Demo {
307307
public EventHubsInboundChannelAdapter messageChannelAdapter(
308308
@Qualifier(INPUT_CHANNEL) MessageChannel inputChannel,
309309
EventHubsMessageListenerContainer listenerContainer) {
310-
EventHubsInboundChannelAdapter adapter = new EventHubsInboundChannelAdapter(processorContainer, ListenerMode.BATCH);
310+
EventHubsInboundChannelAdapter adapter = new EventHubsInboundChannelAdapter(listenerContainer, ListenerMode.BATCH);
311311
adapter.setOutputChannel(inputChannel);
312312
return adapter;
313313
}
@@ -488,7 +488,7 @@ developers can use `ServiceBusContainerProperties` for the configuration. See [t
488488
489489
@Override
490490
public void onFailure(Throwable ex) {
491-
LOGGER.info("There was an error sending the message.");
491+
LOGGER.error("There was an error sending the message.", ex);
492492
}
493493
});
494494
@@ -808,7 +808,7 @@ Connection configurable properties of `spring-cloud-azure-starter-integration-st
808808
809809
@Override
810810
public void onFailure(Throwable ex) {
811-
LOGGER.info("There was an error sending the message.");
811+
LOGGER.error("There was an error sending the message.", ex);
812812
}
813813
});
814814
return handler;

articles/java/spring-framework/spring-security-support.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -507,14 +507,14 @@ Then you can use `OAuth2AuthorizedClient` in application like this
507507
public class Demo {
508508
@GetMapping("/resource-server-1")
509509
@ResponseBody
510-
public String graph(
510+
public String graph1(
511511
@RegisteredOAuth2AuthorizedClient("resource-server-1") OAuth2AuthorizedClient client) {
512512
return callResourceServer1(client);
513513
}
514514
515515
@GetMapping("/resource-server-2")
516516
@ResponseBody
517-
public String graph(
517+
public String graph2(
518518
@RegisteredOAuth2AuthorizedClient("resource-server-2") OAuth2AuthorizedClient client) {
519519
return callResourceServer2(client);
520520
}
@@ -1352,7 +1352,7 @@ public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
13521352
private final AadB2cOidcLoginConfigurer configurer;
13531353

13541354
public WebSecurityConfiguration(AadB2cOidcLoginConfigurer configurer) {
1355-
this.configurer == configurer;
1355+
this.configurer = configurer;
13561356
}
13571357

13581358
@Override
@@ -1362,7 +1362,7 @@ public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
13621362
.anyRequest().authenticated()
13631363
.and()
13641364
.apply(configurer);
1365-
// @formatter:off
1365+
// @formatter:on
13661366
}
13671367
}
13681368
```

articles/rust/sdk/use-crates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ The code shown in this article is available on <https://github.com/azure-samples
7070

7171
[Azure SDK main Cargo.toml]: https://github.com/Azure/azure-sdk-for-rust/blob/main/Cargo.toml
7272

73-
[Ref doc - secret - SecretClient]: https://docs.rs/azure_security_keyvault_secrets/latest/azure_security_keyvault_secrets/struct.SecretClient.html
73+
[Ref doc - secret - SecretClient]: https://docs.rs/azure_security_keyvault_secrets/latest/azure_security_keyvault_secrets/
7474
[Ref doc - core - ClientOptions]:https://docs.rs/azure_core/latest/azure_core/http/struct.ClientOptions.html
7575
[Ref doc - core - Response]: https://docs.rs/azure_core/latest/azure_core/http/response/struct.Response.html
7676
[Ref doc - core - http status code]: https://docs.rs/azure_core/latest/azure_core/http/enum.StatusCode.html

0 commit comments

Comments
 (0)