/// <summary> /// Get the specified public IP address in a cloud service. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='cloudServiceName'> /// The name of the cloud service. /// </param> /// <param name='roleInstanceName'> /// The role instance name. /// </param> /// <param name='networkInterfaceName'> /// The name of the network interface. /// </param> /// <param name='ipConfigurationName'> /// The name of the IP configuration. /// </param> /// <param name='publicIpAddressName'> /// The name of the public IP Address. /// </param> /// <param name='expand'> /// Expands referenced resources. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PublicIPAddress> GetCloudServicePublicIPAddressAsync(this IPublicIPAddressesOperations operations, string resourceGroupName, string cloudServiceName, string roleInstanceName, string networkInterfaceName, string ipConfigurationName, string publicIpAddressName, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetCloudServicePublicIPAddressWithHttpMessagesAsync(resourceGroupName, cloudServiceName, roleInstanceName, networkInterfaceName, ipConfigurationName, publicIpAddressName, expand, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }