Create express route circuit authorization key for avs

Hello folks, im new to terraform just done my training. I used terraform to create avs cluster in my test subscription. I’m trying to create express route key so I can pair my avs with ER for global reach connection. I’m going through article “Terraform Registry)”. If I just use below section replacing name with our ER, will this generate and export auth key? and I guess i can use “azurerm_express_route_circuit_authorization.example” to call this key to pair AVS with ER?

resource “azurerm_express_route_circuit_authorization” “example” {
name = “exampleERCAuth”
express_route_circuit_name =
resource_group_name =