forked from jamesmcroft/bicep-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-management-subscription.bicep
More file actions
28 lines (25 loc) · 1.05 KB
/
api-management-subscription.bicep
File metadata and controls
28 lines (25 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@description('Name of the Subscription.')
param name string
@description('Name of the API Management associated with the Subscription.')
param apiManagementName string
@description('Display name of the Subscription.')
param displayName string
@description('Scope of the Subscription (e.g., /products or /apis) associated with the API Management resource.')
param scope string
resource apiManagement 'Microsoft.ApiManagement/service@2023-09-01-preview' existing = {
name: apiManagementName
resource subscription 'subscriptions@2023-09-01-preview' = {
name: name
properties: {
displayName: displayName
scope: scope
state: 'active'
}
}
}
@description('The deployed API Management Subscription resource.')
output resource resource = apiManagement::subscription
@description('ID for the deployed API Management Subscription resource.')
output id string = apiManagement::subscription.id
@description('Name for the deployed API Management Subscription resource.')
output name string = apiManagement::subscription.name