Skip to content

Instantly share code, notes, and snippets.

@chutch1122
Created October 25, 2022 19:06
Show Gist options
  • Save chutch1122/0e925605194a62849d62cbbd0570d1ca to your computer and use it in GitHub Desktop.
Save chutch1122/0e925605194a62849d62cbbd0570d1ca to your computer and use it in GitHub Desktop.

Azure Spring Apps Sub-Resources

Build Service Agent Pool

  • There is only one Build Service and it is named default. It is created automatically.
  • agentPools are a sub-resource of buildServices
  • It seems like you cannot have more than one Agent Pool (named default)

Whenever you create an Azure Spring Apps Service instance with the Enterprise SKU (Build Service is a VMWare Tanzu component and only available on the Enterprise SKU), there is no Agent Pool. In other words, the "Build Service Agent Pool - List" endpoint returns as follows:

// GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{asaServiceName}/buildServices/default/agentPools?api-version=2022-09-01-preview

// Response Body:
{
	"value": []
}

You create (and update) the Build Service Agent Pool using the "Build Service Agent Pool - Update Put" endpoint.

// PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{asaServiceName}/buildServices/default/agentPools/default?api-version=2022-09-01-preview

// Request Body:
{
  "properties": {
    "poolSize": {
      "name": "S1"
    }
  }
}

// Response Body:
{
	"properties": {
		"provisioningState": "Updating",
		"poolSize": {
			"name": "S1",
			"cpu": "2",
			"memory": "4Gi"
		}
	},
	"type": "Microsoft.AppPlatform/Spring/buildServices/agentPools",
	"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{asaServiceName}/buildServices/default/agentPools/default",
	"name": "default"
}

After the Build Service Agent Pool is created, it cannot be deleted (there's no "delete" endpoint).

Config Server

Whenever you create an Azure Spring Apps Service with the Standard SKU the "Config Servers - Get" endpoint returns as follows:

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{asaServiceName}/configServers/default?api-version=2022-09-01-preview

{
	"properties": {
		"provisioningState": "Succeeded"
	},
	"type": "Microsoft.AppPlatform/Spring/configServers",
	"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{asaServiceName}/configServers/default",
	"name": "default"
}

Monitoring Settings

Whenever you create an Azure Spring Apps Service instance, regardless of SKU, the "Monitoring Settings - Get" endpoint returns as follows:

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{asaServiceName}/monitoringSettings/default?api-version=2022-09-01-preview

{
	"properties": {
		"provisioningState": "Succeeded",
		"traceEnabled": false,
		"appInsightsInstrumentationKey": null,
		"appInsightsSamplingRate": 10.0,
		"appInsightsAgentVersions": {
			"java": "3.3.1"
		}
	},
	"type": "Microsoft.AppPlatform/Spring/monitoringSettings",
	"id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{asaServiceName}/monitoringSettings/default",
	"name": "default"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment