Skip to content

Commit

Permalink
Merge pull request #1 from terraform-providers/master
Browse files Browse the repository at this point in the history
q
  • Loading branch information
samart authored Oct 25, 2019
2 parents 885a36c + da69893 commit a4ba7fe
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ IMPROVEMENTS:
* devspace: updating to API version `2019-04-01` [GH-4597]
* frontdoor: updating to use API version `2019-04-01` [GH-4609]
* provider: switching to use the Provider SDK from `github.com/hashicorp/terraform-provider-sdk` [GH-4474]
* provider: sending Microsoft's Terraform Partner ID in the user agent if a custom Partner ID isn’t specified [GH-4663]
* Data Source: `azurerm_lb_backend_address_pool` - exposing `backend_ip_configurations` [GH-4605]
* `azurerm_cosmosdb_mongo_collection` - add support for the `throughput` property [GH-4467]
* `azurerm_firewall` - support for `zones` [GH-4670]
Expand All @@ -32,6 +33,7 @@ BUG FIXES:
* `azurerm_api_management` - deprecate the `disable_backend_ssl30`, `disable_backend_tls10`, `disable_backend_tls11`, `disable_triple_des_ciphers`, `disable_frontend_ssl30`, `disable_frontend_tls10`, `disable_frontend_tls11` properties as `true` actually meant enable in favour of `enable_backend_ssl30`, `enable_backend_tls10`, `enable_backend_tls11`, `enable_triple_des_ciphers`, `enable_frontend_ssl30`, `enable_frontend_tls10`, `enable_frontend_tls11` [GH-4534]
* `azurerm_devspace_controller`: the `host_suffix` field is now read-only due to a change in Azure [GH-4597]
* `azurerm_key_vault_certificate` - switches the `emails`, `dns_names `, `upns` of the `subject_alternative_names` property to use `TypeSet` [GH-4645]
* `azurerm_kubernetes_cluster` - fixing a crash when the `service_principal_profile` block was nil [GH-4697]
* `azurerm_kubernetes_cluster` - the `log_analytics_workspace_id` property is now optional [GH-4513]
* `azurerm_media_services_account` - fixes the `invalid address to set: []string{"tags"}` error [GH-4537]
* `azurerm_monitor_activity_log_alert` - fixing support for the category `ServiceHealth` [GH-4646]
Expand Down
8 changes: 6 additions & 2 deletions azurerm/internal/common/client_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,13 @@ func setUserAgent(client *autorest.Client, tfVersion, partnerID string) {
client.UserAgent = fmt.Sprintf("%s %s", client.UserAgent, azureAgent)
}

if partnerID != "" {
client.UserAgent = fmt.Sprintf("%s pid-%s", client.UserAgent, partnerID)
// only one pid can be interpreted currently
// hence, send partner ID if present, otherrwise send Terraform GUID
if partnerID == "" {
// Microsoft’s Terraform Partner ID is this specific GUID
partnerID = "222c6c49-1b0a-5959-a213-6608f9eb8820"
}
client.UserAgent = fmt.Sprintf("%s pid-%s", client.UserAgent, partnerID)

log.Printf("[DEBUG] AzureRM Client User Agent: %s\n", client.UserAgent)
}
2 changes: 1 addition & 1 deletion azurerm/resource_arm_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ func flattenAzureRmKubernetesClusterServicePrincipalProfile(profile *containerse
val = v.List()
}

if len(val) > 0 {
if len(val) > 0 && val[0] != nil {
raw := val[0].(map[string]interface{})
clientSecret = raw["client_secret"].(string)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: |-

Manages an App Service source control token.

~> **NOTE:** Source Control Token's are configured at the subscription level, not on each App Service - as such this can only be configured Subscription-wide
~> **NOTE:** Source Control Tokens are configured at the subscription level, not on each App Service - as such this can only be configured Subscription-wide

## Example Usage

Expand Down
6 changes: 3 additions & 3 deletions website/docs/r/front_door.html.markdown
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
layout: "azurerm"
page_title: "Azure Resource Manager: azurerm_frontdoor"
page_title: "Azure Resource Manager: azurerm_front_door"
sidebar_current: "docs-azurerm-resource-front-door"
description: |-
Manages an Azure Front Door instance.
---

# azurerm_frontdoor
# azurerm_front_door

Manages an Azure Front Door instance.

Expand All @@ -20,7 +20,7 @@ Below are some of the key scenarios that Azure Front Door Service addresses:
## Example Usage

```hcl
resource "azurerm_frontdoor" "example" {
resource "azurerm_front_door" "example" {
name = "example-FrontDoor"
location = "${azurerm_resource_group.example.location}"
resource_group_name = "${azurerm_resource_group.example.name}"
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/storage_blob.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ resource "azurerm_storage_blob" "test" {
resource_group_name = "${azurerm_resource_group.test.name}"
storage_account_name = "${azurerm_storage_account.test.name}"
storage_container_name = "${azurerm_storage_container.test.name}"
type = "blob"
type = "Block"
source = "some-local-file.zip"
}
```
Expand Down

0 comments on commit a4ba7fe

Please sign in to comment.