Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-machinelearning] [MIR] Add contract changes to ARM repo for startupProbe property #14624

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,188 changes: 1,184 additions & 4 deletions sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md

Large diffs are not rendered by default.

72 changes: 34 additions & 38 deletions sdk/machinelearning/azure-resourcemanager-machinelearning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager Machine Learning client library for Java.

This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2024-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-preview-2025-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:

```java
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
MachineLearningManager manager = MachineLearningManager
.authenticate(credential, profile);
```

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

See [Authentication][authenticate] for more options.

Expand All @@ -78,39 +78,37 @@ workspace = machineLearningManager.workspaces()
.withSku(new Sku().withName("Basic").withTier(SkuTier.BASIC))
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED))
.withFriendlyName(workspaceName)
.withStorageAccount(
storageManager.storageAccounts()
.define(storageName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withSku(StorageAccountSkuType.STANDARD_LRS)
.withMinimumTlsVersion(MinimumTlsVersion.TLS1_0)
.withHnsEnabled(false)
.withAccessFromAzureServices()
.withOnlyHttpsTraffic()
.withBlobStorageAccountKind().withAccessTier(AccessTier.HOT)
.create()
.id())
.withKeyVault(
keyVaultManager.vaults()
.define(keyVaultName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withEmptyAccessPolicy()
.withSku(SkuName.STANDARD)
.withDeploymentDisabled()
.withAccessFromAllNetworks()
.create()
.id())
.withApplicationInsights(
applicationInsightsManager.components()
.define(insightName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withKind("web")
.withApplicationType(ApplicationType.WEB)
.create()
.id())
.withStorageAccount(storageManager.storageAccounts()
.define(storageName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withSku(StorageAccountSkuType.STANDARD_LRS)
.withMinimumTlsVersion(MinimumTlsVersion.TLS1_0)
.withHnsEnabled(false)
.withAccessFromAzureServices()
.withOnlyHttpsTraffic()
.withBlobStorageAccountKind()
.withAccessTier(AccessTier.HOT)
.create()
.id())
.withKeyVault(keyVaultManager.vaults()
.define(keyVaultName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withEmptyAccessPolicy()
.withSku(SkuName.STANDARD)
.withDeploymentDisabled()
.withAccessFromAllNetworks()
.create()
.id())
.withApplicationInsights(applicationInsightsManager.components()
.define(insightName)
.withRegion(REGION)
.withExistingResourceGroup(resourceGroupName)
.withKind("web")
.withApplicationType(ApplicationType.WEB)
.create()
.id())
.create();
```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md)
Expand Down Expand Up @@ -143,5 +141,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/


Loading