Skip to content

Commit

Permalink
azurerm_cosmosdb_account: revert setting both failover_policy and geo…
Browse files Browse the repository at this point in the history
…_location on read, resulted in endless plans
  • Loading branch information
katbyte committed Apr 17, 2018
1 parent 37e8096 commit 2e14ba6
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 21 deletions.
6 changes: 2 additions & 4 deletions azurerm/data_source_snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ func dataSourceArmSnapshot() *schema.Resource {
Type: schema.TypeString,
Required: true,
},
"resource_group_name": {
Type: schema.TypeString,
Required: true,
},

"resource_group_name": resourceGroupNameForDataSourceSchema(),

// Computed
"os_type": {
Expand Down
6 changes: 1 addition & 5 deletions azurerm/resource_arm_container_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@ func resourceArmContainerGroup() *schema.Resource {

"location": locationSchema(),

"resource_group_name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"resource_group_name": resourceGroupNameSchema(),

"ip_address_type": {
Type: schema.TypeString,
Expand Down
5 changes: 3 additions & 2 deletions azurerm/resource_arm_container_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ func resourceArmContainerService() *schema.Resource {
},

"vm_size": {
Type: schema.TypeString,
Required: true,
Type: schema.TypeString,
Required: true,
DiffSuppressFunc: ignoreCaseDiffSuppressFunc,
},
},
},
Expand Down
7 changes: 4 additions & 3 deletions azurerm/resource_arm_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,10 @@ func resourceArmKubernetesCluster() *schema.Resource {
},

"vm_size": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Type: schema.TypeString,
Required: true,
ForceNew: true,
DiffSuppressFunc: ignoreCaseDiffSuppressFunc,
},

"os_disk_size_gb": {
Expand Down
5 changes: 3 additions & 2 deletions azurerm/resource_arm_virtual_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ func resourceArmVirtualMachine() *schema.Resource {
},

"vm_size": {
Type: schema.TypeString,
Required: true,
Type: schema.TypeString,
Required: true,
DiffSuppressFunc: ignoreCaseDiffSuppressFunc,
},

"storage_image_reference": {
Expand Down
6 changes: 1 addition & 5 deletions azurerm/resource_arm_virtual_network_gateway_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ func resourceArmVirtualNetworkGatewayConnection() *schema.Resource {
ForceNew: true,
},

"resource_group_name": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"resource_group_name": resourceGroupNameSchema(),

"location": locationSchema(),

Expand Down

0 comments on commit 2e14ba6

Please sign in to comment.