-
Notifications
You must be signed in to change notification settings - Fork 200
Create autoscale resources for scaleset #1661
Create autoscale resources for scaleset #1661
Conversation
@@ -1,29 +1,9 @@ | |||
#!/usr/bin/env python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original file was moved to log_analytics.py
retry_on_auth_failure, | ||
) | ||
|
||
# TODO: Look into deleting auto scale resource when deleting scaleset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested this locally using onefuzz scalesets shutdown
. Azure automatically deletes the auto scale resource so we don't need to add any additional logic for that case.
@@ -0,0 +1,29 @@ | |||
#!/usr/bin/env python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
params: Dict[str, Any] = { | ||
"location": location, | ||
"profiles": [profile], | ||
"target_resource_uri": scaleset_uri, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When it comes time to enable autoscale by default, we just need to add:
"enabled": True,
Summary of the Pull Request
What is this about?
This PR creates an auto scale resource for scalesets that uses the pool work queue as the tirgger metric.
Info on Pull Request
What does this include?
Validation Steps Performed
How does someone test & validate?
.properties.profiles
.properties.enabled == false