Azure / Azure/azure-quickstart-templates

Discover Private IP dynamically on scaleset

Open
#1,300 1 comment 0 reactions 1 assignee Claimed by @gatneil View on GitHub
question
Dominant language
Bicep
Stars
14.9k
Forks
16.2k
Avg merge
6d 21h
Merged PRs (30d)
6

Description

What is the method to get the private IP of a vm in a scaleset at deploy time ?
I've tried the method like in standard vm but it doesn't work
it fails :
`Deployment template validation failed: 'The template reference 'yoyonic' is not valid: could not find template resource or resource copy with this name. Please see http://aka.ms/arm-template-expressions/#reference for usage details.'.`

exemple
"commandToExecute": "[concat('bash myscript.sh ', reference(variables('nicName')).ipConfigurations[0].properties.privateIPAddress)]"

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.