public List<Resource> create(AzureProvisionContextObject po, int index, List<Resource> resources) throws Exception {
Stack stack = stackRepository.findById(po.getStackId());
String vmName = filterResourcesByType(resources, ResourceType.AZURE_CLOUD_SERVICE).get(0).getResourceName();
String internalIp = "172.16.0." + (index + VALID_IP_RANGE_START);
AzureTemplate azureTemplate = (AzureTemplate) stack.getTemplate();
AzureCredential azureCredential = (AzureCredential) stack.getCredential();
byte[] encoded = Base64.encodeBase64(vmName.getBytes());
String label = new String(encoded);
Map<String, Object> props = new HashMap<>();
List<Port> ports = new ArrayList<>();
ports.add(new Port("Ambari", "8080", "8080", "tcp"));