|
2 | 2 |
|
3 | 3 | Azure Resource Manager SqlVirtualMachine client library for Java. |
4 | 4 |
|
5 | | -This package contains Microsoft Azure SDK for SqlVirtualMachine Management SDK. The SQL virtual machine management API provides a RESTful set of web APIs that interact with Azure Compute, Network & Storage services to manage your SQL Server virtual machine. The API enables users to create, delete and retrieve a SQL virtual machine, SQL virtual machine group or availability group listener. Package tag package-preview-2022-08. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). |
| 5 | +This package contains Microsoft Azure SDK for SqlVirtualMachine Management SDK. The SQL virtual machine management API provides a RESTful set of web APIs that interact with Azure Compute, Network & Storage services to manage your SQL Server virtual machine. The API enables users to create, delete and retrieve a SQL virtual machine, SQL virtual machine group or availability group listener. Package tag package-2023-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). |
6 | 6 |
|
7 | 7 | ## We'd love to hear your feedback |
8 | 8 |
|
@@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment |
52 | 52 | Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: |
53 | 53 |
|
54 | 54 | ```java |
55 | | -AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); |
| 55 | +AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD); |
56 | 56 | TokenCredential credential = new DefaultAzureCredentialBuilder() |
57 | 57 | .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint()) |
58 | 58 | .build(); |
59 | 59 | SqlVirtualMachineManager manager = SqlVirtualMachineManager |
60 | 60 | .authenticate(credential, profile); |
61 | 61 | ``` |
62 | 62 |
|
63 | | -The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise. |
| 63 | +The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise. |
64 | 64 |
|
65 | 65 | See [Authentication][authenticate] for more options. |
66 | 66 |
|
@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m |
100 | 100 | [cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md |
101 | 101 | [coc]: https://opensource.microsoft.com/codeofconduct/ |
102 | 102 | [coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ |
103 | | - |
104 | | - |
0 commit comments