-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into vanguardcosmosdbacct03
- Loading branch information
Showing
1,602 changed files
with
28,294 additions
and
17,372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.21.3 | ||
1.21.6 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
module "naming" { | ||
source = "Azure/naming/azurerm" | ||
version = "0.4.0" | ||
prefix = [var.prefix] | ||
} | ||
|
||
resource "azurerm_resource_group" "example" { | ||
name = module.naming.resource_group.name | ||
location = var.location | ||
} | ||
|
||
resource "azurerm_iothub_dps_certificate" "example" { | ||
name = module.naming.iothub_dps_certificate.name | ||
resource_group_name = azurerm_resource_group.example.name | ||
iot_dps_name = var.iot_hub_dps_name | ||
certificate_content = filebase64(var.dps_cert_content) | ||
is_verified = false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
output "id" { | ||
value = azurerm_iothub_dps_certificate.example.id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
variable "prefix" { | ||
type = string | ||
description = "Value to be prepended to all resources in this example" | ||
} | ||
|
||
variable "location" { | ||
type = string | ||
description = "Region where resources will be deployed" | ||
default = "westeurope" | ||
} | ||
|
||
variable "iot_hub_dps_name" { | ||
type = string | ||
description = "Name of the IoT Hub DPS instance" | ||
} | ||
|
||
variable "dps_cert_content" { | ||
type = string | ||
description = "The Base-64 representation of the X509 leaf certificate .cer file or just a .pem file content" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
provider "azurerm" { | ||
features {} | ||
} | ||
|
||
module "naming" { | ||
source = "Azure/naming/azurerm" | ||
version = "0.4.0" | ||
prefix = [var.prefix] | ||
} | ||
|
||
resource "azurerm_resource_group" "example" { | ||
name = module.naming.resource_group.name | ||
location = "westeurope" | ||
} | ||
|
||
resource "azurerm_iothub_dps" "example" { | ||
name = module.naming.iothub_dps.name | ||
resource_group_name = azurerm_resource_group.example.name | ||
location = azurerm_resource_group.example.location | ||
allocation_policy = "Hashed" | ||
data_residency_enabled = false | ||
public_network_access_enabled = true | ||
|
||
linked_hub { | ||
connection_string = var.iot_hub_connection_string | ||
location = azurerm_resource_group.example.location | ||
allocation_weight = 1 | ||
apply_allocation_policy = true | ||
} | ||
|
||
sku { | ||
name = "S1" | ||
capacity = 1 | ||
} | ||
|
||
tags = { | ||
environment = "Development" | ||
region = azurerm_resource_group.example.location | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
output "id" { | ||
value = azurerm_iothub_dps.example.id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
variable "prefix" { | ||
type = string | ||
description = "Value to be prepended to all resources in this example" | ||
} | ||
|
||
variable "iot_hub_connection_string" { | ||
type = string | ||
description = "Connection string for the IoT Hub" | ||
} |
Oops, something went wrong.