Skip to content
Merged
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource server 'Microsoft.AnalysisServices/servers@2017-08-01' existing = {
name: last(split(resourceId, '/'))
}

resource roleAssignment 'Microsoft.Authorization/roleAssignments@2020-04-01-preview' = [for principalId in principalIds: {
resource roleAssignment 'Microsoft.Authorization/roleAssignments@2021-04-01-preview' = [for principalId in principalIds: {
name: guid(server.name, principalId, roleDefinitionIdOrName)
properties: {
roleDefinitionId: contains(builtInRoleNames, roleDefinitionIdOrName) ? builtInRoleNames[roleDefinitionIdOrName] : roleDefinitionIdOrName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
"diagnosticStorageAccountId": {
"value": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Storage/storageAccounts/adpsxxazsax001"
},
"workspaceId": {
"diagnosticWorkspaceId": {
"value": "/subscriptions/<<subscriptionId>>/resourcegroups/validation-rg/providers/microsoft.operationalinsights/workspaces/adp-sxx-az-law-x-001"
},
"eventHubAuthorizationRuleId": {
"diagnosticEventHubAuthorizationRuleId": {
"value": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.EventHub/namespaces/adp-sxx-az-evhns-x-001/AuthorizationRules/RootManageSharedAccessKey"
},
"eventHubName": {
"diagnosticEventHubName": {
"value": "adp-sxx-az-evh-x-001"
}
}
Expand Down
22 changes: 11 additions & 11 deletions arm/Microsoft.AnalysisServices/servers/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ param diagnosticLogsRetentionInDays int = 365
@description('Optional. Resource ID of the diagnostic storage account.')
param diagnosticStorageAccountId string = ''

@description('Optional. Resource ID of log analytics.')
param workspaceId string = ''
@description('Optional. Resource ID of the diagnostic log analytics workspace.')
param diagnosticWorkspaceId string = ''

@description('Optional. Resource ID of the event hub authorization rule for the Event Hubs namespace in which the event hub should be created or streamed to.')
param eventHubAuthorizationRuleId string = ''
@description('Optional. Resource ID of the diagnostic event hub authorization rule for the Event Hubs namespace in which the event hub should be created or streamed to.')
param diagnosticEventHubAuthorizationRuleId string = ''

@description('Optional. Name of the event hub within the namespace to which logs are streamed. Without this, an event hub is created for each log category.')
param eventHubName string = ''
@description('Optional. Name of the diagnostic event hub within the namespace to which logs are streamed. Without this, an event hub is created for each log category.')
param diagnosticEventHubName string = ''

@allowed([
'CanNotDelete'
Expand Down Expand Up @@ -111,7 +111,7 @@ resource server 'Microsoft.AnalysisServices/servers@2017-08-01' = {
}
}

resource server_lock 'Microsoft.Authorization/locks@2016-09-01' = if (lock != 'NotSpecified') {
resource server_lock 'Microsoft.Authorization/locks@2017-04-01' = if (lock != 'NotSpecified') {
name: '${server.name}-${lock}-lock'
properties: {
level: lock
Expand All @@ -120,13 +120,13 @@ resource server_lock 'Microsoft.Authorization/locks@2016-09-01' = if (lock != 'N
scope: server
}

resource server_diagnosticSettings 'Microsoft.Insights/diagnosticsettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(workspaceId)) || (!empty(eventHubAuthorizationRuleId)) || (!empty(eventHubName))) {
resource server_diagnosticSettings 'Microsoft.Insights/diagnosticsettings@2021-05-01-preview' = if ((!empty(diagnosticStorageAccountId)) || (!empty(diagnosticWorkspaceId)) || (!empty(diagnosticEventHubAuthorizationRuleId)) || (!empty(diagnosticEventHubName))) {
name: '${server.name}-diagnosticSettings'
properties: {
storageAccountId: !empty(diagnosticStorageAccountId) ? diagnosticStorageAccountId : null
workspaceId: !empty(workspaceId) ? workspaceId : null
eventHubAuthorizationRuleId: !empty(eventHubAuthorizationRuleId) ? eventHubAuthorizationRuleId : null
eventHubName: !empty(eventHubName) ? eventHubName : null
workspaceId: !empty(diagnosticWorkspaceId) ? diagnosticWorkspaceId : null
eventHubAuthorizationRuleId: !empty(diagnosticEventHubAuthorizationRuleId) ? diagnosticEventHubAuthorizationRuleId : null
eventHubName: !empty(diagnosticEventHubName) ? diagnosticEventHubName : null
metrics: diagnosticsMetrics
logs: diagnosticsLogs
}
Expand Down
16 changes: 8 additions & 8 deletions arm/Microsoft.AnalysisServices/servers/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ This module deploys an analysis service server.
| Resource Type | API Version |
| :-- | :-- |
| `Microsoft.AnalysisServices/servers` | 2017-08-01 |
| `Microsoft.Authorization/locks` | 2016-09-01 |
| `Microsoft.Authorization/roleAssignments` | 2020-04-01-preview |
| `Microsoft.Authorization/locks` | 2017-04-01 |
| `Microsoft.Authorization/roleAssignments` | 2021-04-01-preview |
| `Microsoft.Insights/diagnosticSettings` | 2021-05-01-preview |

### Resource dependency
Expand All @@ -22,10 +22,11 @@ The following resources are required to be able to deploy this resource.
| Parameter Name | Type | Default Value | Possible Values | Description |
| :-- | :-- | :-- | :-- | :-- |
| `cuaId` | string | | | Optional. Customer Usage Attribution ID (GUID). This GUID must be previously registered |
| `diagnosticEventHubAuthorizationRuleId` | string | | | Optional. Resource ID of the diagnostic event hub authorization rule for the Event Hubs namespace in which the event hub should be created or streamed to. |
| `diagnosticEventHubName` | string | | | Optional. Name of the diagnostic event hub within the namespace to which logs are streamed. Without this, an event hub is created for each log category. |
| `diagnosticLogsRetentionInDays` | int | `365` | | Optional. Specifies the number of days that logs will be kept for; a value of 0 will retain data indefinitely. |
| `diagnosticStorageAccountId` | string | | | Optional. Resource ID of the diagnostic storage account. |
| `eventHubAuthorizationRuleId` | string | | | Optional. Resource ID of the event hub authorization rule for the Event Hubs namespace in which the event hub should be created or streamed to. |
| `eventHubName` | string | | | Optional. Name of the event hub within the namespace to which logs are streamed. Without this, an event hub is created for each log category. |
| `diagnosticWorkspaceId` | string | | | Optional. Resource ID of the diagnostic log analytics workspace. |
| `firewallSettings` | object | `{object}` | | Optional. The inbound firewall rules to define on the server. If not specified, firewall is disabled. |
| `location` | string | `[resourceGroup().location]` | | Optional. Location for all Resources. |
| `lock` | string | `NotSpecified` | `[CanNotDelete, NotSpecified, ReadOnly]` | Optional. Specify the type of lock. |
Expand All @@ -36,7 +37,6 @@ The following resources are required to be able to deploy this resource.
| `skuCapacity` | int | `1` | | Optional. The total number of query replica scale-out instances. |
| `skuName` | string | `S0` | | Optional. The sku name of the Azure Analysis Services server to create. |
| `tags` | object | `{object}` | | Optional. Tags of the resource. |
| `workspaceId` | string | | | Optional. Resource ID of log analytics. |

### Parameter Usage: `tags`

Expand Down Expand Up @@ -87,7 +87,7 @@ Tag names and tag values can be provided as needed. A tag can be left without a

## Template references

- [Servers](https://docs.microsoft.com/en-us/azure/templates/Microsoft.AnalysisServices/2017-08-01/servers)
- [Locks](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2016-09-01/locks)
- [Roleassignments](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2020-04-01-preview/roleAssignments)
- [Diagnosticsettings](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Insights/2021-05-01-preview/diagnosticSettings)
- [Locks](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2017-04-01/locks)
- [Roleassignments](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Authorization/2021-04-01-preview/roleAssignments)
- [Servers](https://docs.microsoft.com/en-us/azure/templates/Microsoft.AnalysisServices/2017-08-01/servers)
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ resource service 'Microsoft.ApiManagement/service@2020-12-01' existing = {
name: last(split(resourceId, '/'))
}

resource roleAssignment 'Microsoft.Authorization/roleAssignments@2020-04-01-preview' = [for principalId in principalIds: {
resource roleAssignment 'Microsoft.Authorization/roleAssignments@2021-04-01-preview' = [for principalId in principalIds: {
name: guid(service.name, principalId, roleDefinitionIdOrName)
properties: {
roleDefinitionId: contains(builtInRoleNames, roleDefinitionIdOrName) ? builtInRoleNames[roleDefinitionIdOrName] : roleDefinitionIdOrName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@
"diagnosticStorageAccountId": {
"value": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Storage/storageAccounts/adpsxxazsax001"
},
"workspaceId": {
"diagnosticWorkspaceId": {
"value": "/subscriptions/<<subscriptionId>>/resourcegroups/validation-rg/providers/microsoft.operationalinsights/workspaces/adp-sxx-az-law-x-001"
},
"eventHubAuthorizationRuleId": {
"diagnosticEventHubAuthorizationRuleId": {
"value": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.EventHub/namespaces/adp-sxx-az-evhns-x-001/AuthorizationRules/RootManageSharedAccessKey"
},
"eventHubName": {
"diagnosticEventHubName": {
"value": "adp-sxx-az-evh-x-001"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ module pid_cuaId '.bicep/nested_cuaId.bicep' = if (!empty(cuaId)) {
params: {}
}

resource service 'Microsoft.ApiManagement/service@2021-04-01-preview' existing = {
resource service 'Microsoft.ApiManagement/service@2021-08-01' existing = {
name: apiManagementServiceName
}

resource apiVersionSet 'Microsoft.ApiManagement/service/apiVersionSets@2020-06-01-preview' = {
resource apiVersionSet 'Microsoft.ApiManagement/service/apiVersionSets@2021-08-01' = {
name: name
parent: service
properties: properties
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This module deploys API Management Service APIs Version Set.

| Resource Type | API Version |
| :-- | :-- |
| `Microsoft.ApiManagement/service/apiVersionSets` | 2020-06-01-preview |
| `Microsoft.ApiManagement/service/apiVersionSets` | 2021-08-01 |

## Parameters

Expand All @@ -27,4 +27,4 @@ This module deploys API Management Service APIs Version Set.

## Template references

- [Service/Apiversionsets](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2020-06-01-preview/service/apiVersionSets)
- [Service/Apiversionsets](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2021-08-01/service/apiVersionSets)
4 changes: 2 additions & 2 deletions arm/Microsoft.ApiManagement/service/apis/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ module pid_cuaId '.bicep/nested_cuaId.bicep' = if (!empty(cuaId)) {
params: {}
}

resource service 'Microsoft.ApiManagement/service@2021-04-01-preview' existing = {
resource service 'Microsoft.ApiManagement/service@2021-08-01' existing = {
name: apiManagementServiceName
}

resource api 'Microsoft.ApiManagement/service/apis@2020-06-01-preview' = {
resource api 'Microsoft.ApiManagement/service/apis@2021-08-01' = {
name: name
parent: service
properties: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ module pid_cuaId '.bicep/nested_cuaId.bicep' = if (!empty(cuaId)) {
params: {}
}

resource service 'Microsoft.ApiManagement/service@2021-04-01-preview' existing = {
resource service 'Microsoft.ApiManagement/service@2021-08-01' existing = {
name: apiManagementServiceName

resource api 'apis@2020-06-01-preview' existing = {
resource api 'apis@2021-08-01' existing = {
name: apiName
}
}

resource policy 'Microsoft.ApiManagement/service/apis/policies@2020-06-01-preview' = {
resource policy 'Microsoft.ApiManagement/service/apis/policies@2021-08-01' = {
name: name
parent: service::api
properties: {
Expand Down
4 changes: 2 additions & 2 deletions arm/Microsoft.ApiManagement/service/apis/policies/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This module deploys API Management Service APIs policies.

| Resource Type | API Version |
| :-- | :-- |
| `Microsoft.ApiManagement/service/apis/policies` | 2020-06-01-preview |
| `Microsoft.ApiManagement/service/apis/policies` | 2021-08-01 |

## Parameters

Expand All @@ -29,4 +29,4 @@ This module deploys API Management Service APIs policies.

## Template references

- [Service/Apis/Policies](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2020-06-01-preview/service/apis/policies)
- [Service/Apis/Policies](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2021-08-01/service/apis/policies)
8 changes: 4 additions & 4 deletions arm/Microsoft.ApiManagement/service/apis/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ This module deploys API Management Service APIs.

| Resource Type | API Version |
| :-- | :-- |
| `Microsoft.ApiManagement/service/apis` | 2020-06-01-preview |
| `Microsoft.ApiManagement/service/apis/policies` | 2020-06-01-preview |
| `Microsoft.ApiManagement/service/apis` | 2021-08-01 |
| `Microsoft.ApiManagement/service/apis/policies` | 2021-08-01 |

### Resource dependency

Expand Down Expand Up @@ -71,5 +71,5 @@ The following resources are required to be able to deploy this resource.

## Template references

- [Service/Apis](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2020-06-01-preview/service/apis)
- [Service/Apis/Policies](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2020-06-01-preview/service/apis/policies)
- [Service/Apis](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2021-08-01/service/apis)
- [Service/Apis/Policies](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2021-08-01/service/apis/policies)
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ module pid_cuaId '.bicep/nested_cuaId.bicep' = if (!empty(cuaId)) {
params: {}
}

resource service 'Microsoft.ApiManagement/service@2021-04-01-preview' existing = {
resource service 'Microsoft.ApiManagement/service@2021-08-01' existing = {
name: apiManagementServiceName
}

resource authorizationServer 'Microsoft.ApiManagement/service/authorizationServers@2020-06-01-preview' = {
resource authorizationServer 'Microsoft.ApiManagement/service/authorizationServers@2021-08-01' = {
name: name
parent: service
properties: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This module deploys API Management Service Authorization Servers.

| Resource Type | API Version |
| :-- | :-- |
| `Microsoft.ApiManagement/service/authorizationServers` | 2020-06-01-preview |
| `Microsoft.ApiManagement/service/authorizationServers` | 2021-08-01 |

### Resource dependency

Expand Down Expand Up @@ -47,4 +47,4 @@ The following resources are required to be able to deploy this resource.

## Template references

- [Service/Authorizationservers](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2020-06-01-preview/service/authorizationServers)
- [Service/Authorizationservers](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2021-08-01/service/authorizationServers)
4 changes: 2 additions & 2 deletions arm/Microsoft.ApiManagement/service/backends/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ module pid_cuaId '.bicep/nested_cuaId.bicep' = if (!empty(cuaId)) {
params: {}
}

resource service 'Microsoft.ApiManagement/service@2021-04-01-preview' existing = {
resource service 'Microsoft.ApiManagement/service@2021-08-01' existing = {
name: apiManagementServiceName
}

resource backend 'Microsoft.ApiManagement/service/backends@2020-06-01-preview' = {
resource backend 'Microsoft.ApiManagement/service/backends@2021-08-01' = {
name: name
parent: service
properties: {
Expand Down
4 changes: 2 additions & 2 deletions arm/Microsoft.ApiManagement/service/backends/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This module deploys API Management Service Backends.

| Resource Type | API Version |
| :-- | :-- |
| `Microsoft.ApiManagement/service/backends` | 2020-06-01-preview |
| `Microsoft.ApiManagement/service/backends` | 2021-08-01 |

### Resource dependency

Expand Down Expand Up @@ -128,4 +128,4 @@ The following resources are required to be able to deploy this resource.

## Template references

- [Service/Backends](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2020-06-01-preview/service/backends)
- [Service/Backends](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2021-08-01/service/backends)
4 changes: 2 additions & 2 deletions arm/Microsoft.ApiManagement/service/caches/deploy.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ module pid_cuaId '.bicep/nested_cuaId.bicep' = if (!empty(cuaId)) {
params: {}
}

resource service 'Microsoft.ApiManagement/service@2021-04-01-preview' existing = {
resource service 'Microsoft.ApiManagement/service@2021-08-01' existing = {
name: apiManagementServiceName
}

resource cache 'Microsoft.ApiManagement/service/caches@2020-06-01-preview' = {
resource cache 'Microsoft.ApiManagement/service/caches@2021-08-01' = {
name: name
parent: service
properties: {
Expand Down
4 changes: 2 additions & 2 deletions arm/Microsoft.ApiManagement/service/caches/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This module deploys an API Management Service Cache.

| Resource Type | API Version |
| :-- | :-- |
| `Microsoft.ApiManagement/service/caches` | 2020-06-01-preview |
| `Microsoft.ApiManagement/service/caches` | 2021-08-01 |

### Resource dependency

Expand Down Expand Up @@ -36,4 +36,4 @@ The following resources are required to be able to deploy this resource.

## Template references

- [Service/Caches](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2020-06-01-preview/service/caches)
- [Service/Caches](https://docs.microsoft.com/en-us/azure/templates/Microsoft.ApiManagement/2021-08-01/service/caches)
Loading