Skip to content

Commit

Permalink
analysis server arm
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWoolfenden committed May 16, 2023
1 parent 417433c commit ddb80ef
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/arm/lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func lookup(myType string) []byte {
"Microsoft.Network/virtualNetworks": azurermVirtualNetwork,
"Microsoft.Storage/storageAccounts": azurermStorageAccount,
"Microsoft.Network/virtualNetworks/subnets": azurermSubnet,
"Microsoft.AnalysisServices/servers": azurermAnalysisServicesServer,
}

var myContent []byte
Expand Down
3 changes: 3 additions & 0 deletions src/arm/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ var azurermStorageAccount []byte

//go:embed resources/azurerm_subnet.template
var azurermSubnet []byte

//go:embed resources/azurerm_analysis_services_server.template
var azurermAnalysisServicesServer []byte
32 changes: 32 additions & 0 deletions src/arm/resources/azurerm_analysis_services_server.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
resource "azurerm_analysis_services_server" "{{.item}}" {
{{- if .resource.location}}
location = {{ .resource.location|Quote }}
{{- else}}
location = data.azurerm_resource_group.sato.location
{{- end }}
name = {{ .resource.name|Quote }}
{{- if .resource.resourceGroupName }}
resource_group_name = {{ .resource.resourceGroupName|Quote }}
{{- else }}
resource_group_name = data.azurerm_resource_group.sato.name
{{- end}}
sku = {{ .resource.sku.name|Quote }}
{{- if .resource.properties.adminUsers}}
admin_users = {{Array .resource.properties.adminUsers}}
{{- end}}1
{{- if .resource.properties.querypoolConnectionMode}}
querypool_connection_mode = {{ .resource.properties.querypoolConnectionMode}}
{{- end}}
{{- if .resource.properties.backupBlobContainerUri}}
backup_blob_container_uri = {{ .resource.properties.backupBlobContainerUri}}
{{- end}}
{{- if .resource.properties.enablePowerBiService}}
enable_power_bi_service = {{ .resource.properties.enablePowerBiService}}
{{- end}}
{{- if .resource.properties.ipV4FirewallSettings}}
ipv4_firewall_rule = {{ .resource.properties.ipV4FirewallSettings}}
{{- end}}
{{- if .resource.properties.tags}}
tags = {{.resource.properties.tags}}
{{- end}}
}
7 changes: 3 additions & 4 deletions todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ E:\code\aws-cloudformation-templates\aws\services\iot\lambda-iot-topicrule.yml
E:\code\cf\aws-cloudformation-templates\aws\services\AppRunner [master ≡ +1 ~0 -1 !]> sato parse -f .\Template.yaml -d AppRunnerServiceFromECR
11:51PM WRN AWS::AppRunner::Service not found

- write data.tf for built in datasource/functions
and provider.tf

variables not encased in quotes:
"local.maaEndpoint","maaTenantName":"var.maaTenantName"
"local.maaEndpoint","maaTenantName":"var.maaTenantName"

parse object variables

0 comments on commit ddb80ef

Please sign in to comment.