Skip to content

Commit

Permalink
v4 fluentlite, bug fix on readme template (#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Dec 16, 2020
1 parent e588362 commit 1d336d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fluentgen/src/main/resources/Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ Azure Resource Manager {{service-name}} client library for Java.

### Adding the package to your product

[//]: # ({x-version-update-start;{{group-id}}:{{artifact-id}};current})
```xml
<dependency>
<groupId>{{group-id}}</groupId>
<artifactId>{{artifact-id}}</artifactId>
<version>{{artifact-version}}</version>
</dependency>
```
[//]: # ({x-version-update-end})

### Include the recommended packages

Expand All @@ -39,7 +41,6 @@ In addition, Azure subscription ID can be configured via environment variable `A

With above configuration, `azure` client can be authenticated by following code:

[//]: # ({x-version-update-start;{{group-id}}:{{artifact-id}};current})
```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
TokenCredential credential = new DefaultAzureCredentialBuilder()
Expand All @@ -48,7 +49,6 @@ TokenCredential credential = new DefaultAzureCredentialBuilder()
{{manager-class}} manager = {{manager-class}}
.authenticate(credential, profile);
```
[//]: # ({x-version-update-end})

The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.

Expand Down

0 comments on commit 1d336d5

Please sign in to comment.