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
- Client `AdvisorManagementClient` added operation group `advisor_scores`
9
+
- Client `AdvisorManagementClient` added operation group `assessments`
10
+
- Client `AdvisorManagementClient` added operation group `assessment_types`
11
+
- Client `AdvisorManagementClient` added operation group `workloads`
12
+
- Client `AdvisorManagementClient` added operation group `resiliency_reviews`
13
+
- Client `AdvisorManagementClient` added operation group `triage_recommendations`
14
+
- Client `AdvisorManagementClient` added operation group `triage_resources`
15
+
- Model `ConfigData` added property `duration`
16
+
- Model `ConfigData` added property `system_data`
17
+
- Model `Resource` added property `system_data`
18
+
- Model `ResourceRecommendationBase` added property `risk`
19
+
- Model `ResourceRecommendationBase` added property `tracked`
20
+
- Model `ResourceRecommendationBase` added property `tracked_properties`
21
+
- Model `ResourceRecommendationBase` added property `review`
22
+
- Model `ResourceRecommendationBase` added property `resource_workload`
23
+
- Model `ResourceRecommendationBase` added property `source_system`
24
+
- Model `ResourceRecommendationBase` added property `notes`
25
+
- Model `ResourceRecommendationBase` added property `system_data`
26
+
- Model `SuppressionContract` added property `system_data`
27
+
- Added model `AdvisorScoreEntity`
28
+
- Added model `AdvisorScoreEntityProperties`
29
+
- Added model `AdvisorScoreResponse`
30
+
- Added enum `Aggregated`
31
+
- Added model `AssessmentListResult`
32
+
- Added model `AssessmentResult`
33
+
- Added model `AssessmentTypeListResult`
34
+
- Added model `AssessmentTypeResult`
35
+
- Added enum `CreatedByType`
36
+
- Added enum `Duration`
37
+
- Added model `ErrorAdditionalInfo`
38
+
- Added model `ErrorDetail`
39
+
- Added model `ErrorResponse`
40
+
- Added model `PredictionRequest`
41
+
- Added model `PredictionResponse`
42
+
- Added enum `PredictionType`
43
+
- Added enum `Priority`
44
+
- Added enum `PriorityName`
45
+
- Added model `ProxyResource`
46
+
- Added enum `Reason`
47
+
- Added enum `ReasonForRejectionName`
48
+
- Added model `RecommendationPropertiesResourceWorkload`
49
+
- Added model `RecommendationPropertiesReview`
50
+
- Added model `RecommendationRejectBody`
51
+
- Added enum `RecommendationStatusName`
52
+
- Added model `ResiliencyReview`
53
+
- Added model `ResiliencyReviewCollection`
54
+
- Added enum `ReviewStatus`
55
+
- Added enum `Risk`
56
+
- Added model `ScoreEntity`
57
+
- Added enum `State`
58
+
- Added model `SystemData`
59
+
- Added model `TimeSeriesEntityItem`
60
+
- Added model `TrackedRecommendationProperties`
61
+
- Added model `TrackedRecommendationPropertiesPayload`
62
+
- Added model `TrackedRecommendationPropertiesPayloadProperties`
63
+
- Added model `TriageRecommendation`
64
+
- Added model `TriageRecommendationCollection`
65
+
- Added model `TriageResource`
66
+
- Added model `TriageResourceCollection`
67
+
- Added model `WorkloadListResult`
68
+
- Added model `WorkloadResult`
69
+
- Model `RecommendationsOperations` added method `patch`
70
+
- Added model `AdvisorManagementClientOperationsMixin`
71
+
- Added model `AdvisorScoresOperations`
72
+
- Added model `AssessmentTypesOperations`
73
+
- Added model `AssessmentsOperations`
74
+
- Added model `ResiliencyReviewsOperations`
75
+
- Added model `TriageRecommendationsOperations`
76
+
- Added model `TriageResourcesOperations`
77
+
- Added model `WorkloadsOperations`
78
+
- Method `AdvisorManagementClient.predict` has a new overload `def predict(self: None, prediction_request: PredictionRequest, content_type: str)`
79
+
- Method `AdvisorManagementClient.predict` has a new overload `def predict(self: None, prediction_request: IO[bytes], content_type: str)`
80
+
- Method `ConfigurationsOperations.create_in_resource_group` has a new overload `def create_in_resource_group(self: None, configuration_name: Union[str, ConfigurationName], resource_group: str, config_contract: IO[bytes], content_type: str)`
81
+
- Method `ConfigurationsOperations.create_in_subscription` has a new overload `def create_in_subscription(self: None, configuration_name: Union[str, ConfigurationName], config_contract: IO[bytes], content_type: str)`
82
+
- Method `RecommendationsOperations.patch` has a new overload `def patch(self: None, resource_uri: str, recommendation_id: str, tracked_properties: TrackedRecommendationPropertiesPayload, content_type: str)`
83
+
- Method `RecommendationsOperations.patch` has a new overload `def patch(self: None, resource_uri: str, recommendation_id: str, tracked_properties: IO[bytes], content_type: str)`
84
+
- Method `SuppressionsOperations.create` has a new overload `def create(self: None, resource_uri: str, recommendation_id: str, name: str, suppression_contract: IO[bytes], content_type: str)`
85
+
- Method `AdvisorManagementClientOperationsMixin.predict` has a new overload `def predict(self: None, prediction_request: PredictionRequest, content_type: str)`
86
+
- Method `AdvisorManagementClientOperationsMixin.predict` has a new overload `def predict(self: None, prediction_request: IO[bytes], content_type: str)`
87
+
- Method `AssessmentsOperations.put` has a new overload `def put(self: None, assessment_name: str, assessment_contract: AssessmentResult, content_type: str)`
88
+
- Method `AssessmentsOperations.put` has a new overload `def put(self: None, assessment_name: str, assessment_contract: IO[bytes], content_type: str)`
89
+
- Method `TriageRecommendationsOperations.reject_triage_recommendation` has a new overload `def reject_triage_recommendation(self: None, review_id: str, recommendation_id: str, recommendation_reject_body: RecommendationRejectBody, content_type: str)`
90
+
- Method `TriageRecommendationsOperations.reject_triage_recommendation` has a new overload `def reject_triage_recommendation(self: None, review_id: str, recommendation_id: str, recommendation_reject_body: IO[bytes], content_type: str)`
This is the Microsoft Azure Advisor Client Library.
4
-
This package has been tested with Python 3.7+.
4
+
This package has been tested with Python 3.9+.
5
5
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
6
6
7
7
## _Disclaimer_
8
8
9
9
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
10
10
11
-
#Usage
11
+
## Getting started
12
12
13
+
### Prerequisites
13
14
14
-
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
15
-
16
-
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/advisor)
17
-
Code samples for this package can be found at [Advisor](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
18
-
Additional code samples for different Azure services are available at [Samples Repo](https://github.com/Azure-Samples/azure-samples-python-management/tree/main/samples/advisor)
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
28
+
29
+
-`AZURE_CLIENT_ID` for Azure client ID.
30
+
-`AZURE_TENANT_ID` for Azure tenant ID.
31
+
-`AZURE_CLIENT_SECRET` for Azure client secret.
32
+
33
+
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
34
+
35
+
With above configuration, client can be authenticated by following code:
36
+
37
+
```python
38
+
from azure.identity import DefaultAzureCredential
39
+
from azure.mgmt.advisor import AdvisorManagementClient
-[Search Advisor](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
0 commit comments