ServiceResourceDescription Class
This type describes a service resource.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
ServiceResourceDescription
Constructor
ServiceResourceDescription(*, name: str, os_type, code_packages, network_refs=None, diagnostics=None, description: Optional[str] = None, replica_count: Optional[int] = None, execution_policy=None, auto_scaling_policies=None, identity_refs=None, dns_name: Optional[str] = None, **kwargs)
Parameters
- os_type
- str or OperatingSystemType
Required. The operation system required by the code in service. Possible values include: 'Linux', 'Windows'
- code_packages
- list[ContainerCodePackageProperties]
Required. Describes the set of code packages that forms the service. A code package describes the container and the properties for running it. All the code packages are started together on the same host and share the same context (network, process etc.).
- network_refs
- list[NetworkRef]
The names of the private networks that this service needs to be part of.
- replica_count
- int
The number of replicas of the service to create. Defaults to 1 if not specified.
Variables
- status
- str or ResourceStatus
Status of the service. Possible values include: 'Unknown', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'
- status_details
- str
Gives additional information about the current status of the service.
- health_state
- str or HealthState
Describes the health state of an application resource. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'
- unhealthy_evaluation
- str
When the service's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the service is marked unhealthy.
Feedback
Submit and view feedback for