Microsoft.ApiCenter services

Bicep resource definition

The services resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Usage Examples

Azure Quickstart Samples

The following Azure Quickstart templates contain Bicep samples for deploying this resource type.

Bicep File Description
Create an Azure API Center instance using a template This template creates an API center and registers an API in the API center.

Resource format

To create a Microsoft.ApiCenter/services resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.ApiCenter/services@2024-06-01-preview' = {
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  location: 'string'
  name: 'string'
  properties: {
    restore: bool
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

Microsoft.ApiCenter/services

Name Description Value
identity The managed service identities assigned to this resource. ManagedServiceIdentity
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 1
Max length = 90
Pattern = ^[a-zA-Z0-9-]{3,90}$ (required)
properties The resource-specific properties for this resource. ServiceProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

ManagedServiceIdentity

Name Description Value
type Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned' (required)
userAssignedIdentities The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. UserAssignedIdentities

ServiceProperties

Name Description Value
restore Flag used to restore soft-deleted API Center service. If specified and set to 'true' all other properties will be ignored. bool

TrackedResourceTags

Name Description Value

UserAssignedIdentities

Name Description Value

UserAssignedIdentity

Name Description Value

ARM template resource definition

The services resource type can be deployed with operations that target:

Usage Examples

Azure Quickstart Templates

The following Azure Quickstart templates deploy this resource type.

Template Description
Create an Azure API Center instance using a template

Deploy to Azure
This template creates an API center and registers an API in the API center.

Resource format

To create a Microsoft.ApiCenter/services resource, add the following JSON to your template.

{
  "type": "Microsoft.ApiCenter/services",
  "apiVersion": "2024-06-01-preview",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "location": "string",
  "properties": {
    "restore": "bool"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

Microsoft.ApiCenter/services

Name Description Value
apiVersion The api version '2024-06-01-preview'
identity The managed service identities assigned to this resource. ManagedServiceIdentity
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 1
Max length = 90
Pattern = ^[a-zA-Z0-9-]{3,90}$ (required)
properties The resource-specific properties for this resource. ServiceProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.ApiCenter/services'

ManagedServiceIdentity

Name Description Value
type Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned' (required)
userAssignedIdentities The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. UserAssignedIdentities

ServiceProperties

Name Description Value
restore Flag used to restore soft-deleted API Center service. If specified and set to 'true' all other properties will be ignored. bool

TrackedResourceTags

Name Description Value

UserAssignedIdentities

Name Description Value

UserAssignedIdentity

Name Description Value

Terraform (AzAPI provider) resource definition

The services resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.ApiCenter/services resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ApiCenter/services@2024-06-01-preview"
  name = "string"
  parent_id = "string"
  identity {
    type = "string"
    identity_ids = [
      "string"
    ]
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      restore = bool
    }
  }
}

Property Values

Microsoft.ApiCenter/services

Name Description Value
identity The managed service identities assigned to this resource. ManagedServiceIdentity
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 1
Max length = 90
Pattern = ^[a-zA-Z0-9-]{3,90}$ (required)
properties The resource-specific properties for this resource. ServiceProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.ApiCenter/services@2024-06-01-preview"

ManagedServiceIdentity

Name Description Value
type Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned' (required)
userAssignedIdentities The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. UserAssignedIdentities

ServiceProperties

Name Description Value
restore Flag used to restore soft-deleted API Center service. If specified and set to 'true' all other properties will be ignored. bool

TrackedResourceTags

Name Description Value

UserAssignedIdentities

Name Description Value

UserAssignedIdentity

Name Description Value