Share via


Managed Environments - List Workload Profile States

Get all workload Profile States for a Managed Environment.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/workloadProfileStates?api-version=2025-01-01

URI Parameters

Name In Required Type Description
environmentName
path True

string

Name of the Managed Environment.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

The name of the resource group. The name is case insensitive.

subscriptionId
path True

string

minLength: 1

The ID of the target subscription.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Responses

Name Type Description
200 OK

workloadProfileStatesCollection

OK

Other Status Codes

DefaultErrorResponse

Common error response.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

List environments by subscription

Sample request

GET https://management.azure.com/subscriptions/8efdecc5-919e-44eb-b179-915dca89ebf9/resourceGroups/examplerg/providers/Microsoft.App/managedEnvironments/jlaw-demo1/workloadProfileStates?api-version=2025-01-01

Sample response

{
  "value": [
    {
      "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/workloadProfileStates/GP1",
      "name": "GP1",
      "type": "/providers/Microsoft.App/workloadProfileStates",
      "properties": {
        "minimumCount": 3,
        "maximumCount": 10,
        "currentCount": 3
      }
    },
    {
      "id": "/subscriptions/55f240e3-3d66-44f6-8358-4e4f3d7a2e51/providers/Microsoft.App/workloadProfileStates/MO3",
      "name": "MO3",
      "type": "/providers/Microsoft.App/workloadProfileStates",
      "properties": {
        "minimumCount": 0,
        "maximumCount": 2,
        "currentCount": 0
      }
    }
  ]
}

Definitions

Name Description
createdByType

The type of identity that created the resource.

DefaultErrorResponse

App Service error response.

Details

Details or the error

Error

Error model.

Properties

Workload Profile resource specific properties.

systemData

Metadata pertaining to creation and last modification of the resource.

workloadProfileStates

Collection of all the workload Profile States for a Managed Environment..

workloadProfileStatesCollection

Collection of workloadProfileStates

createdByType

The type of identity that created the resource.

Value Description
User
Application
ManagedIdentity
Key

DefaultErrorResponse

App Service error response.

Name Type Description
error

Error

Error model.

Details

Details or the error

Name Type Description
code

string

Standardized string to programmatically identify the error.

message

string

Detailed error description and debugging information.

target

string

Detailed error description and debugging information.

Error

Error model.

Name Type Description
code

string

Standardized string to programmatically identify the error.

details

Details[]

Details or the error

innererror

string

More information to debug error.

message

string

Detailed error description and debugging information.

target

string

Detailed error description and debugging information.

Properties

Workload Profile resource specific properties.

Name Type Description
currentCount

integer (int32)

Current count of nodes.

maximumCount

integer (int32)

Maximum count of nodes.

minimumCount

integer (int32)

Minimum count of instances.

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string (date-time)

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string (date-time)

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.

workloadProfileStates

Collection of all the workload Profile States for a Managed Environment..

Name Type Description
id

string (arm-id)

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

The name of the resource

properties

Properties

Workload Profile resource specific properties.

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

workloadProfileStatesCollection

Collection of workloadProfileStates

Name Type Description
nextLink

string

Link to next page of resources.

value

workloadProfileStates[]

Collection of resources.