def _get_public_ip(name, resource_group):
    '''
    Get the public ip address details by name.
    '''
    netconn = get_conn(client_type='network')
    try:
        pubip_query = netconn.public_ip_addresses.get(
            resource_group_name=resource_group,
            public_ip_address_name=name
        )
        pubip = pubip_query.as_dict()
    except CloudError as exc:
        __utils__['azurearm.log_cloud_error']('network', exc.message)
        pubip = {'error': exc.message}

    return pubip
def _get_public_ip ( name , resource_group ) : netconn = get_conn ( client_type = 'network' ) try : pubip_query = netconn . public_ip_addresses . get ( resource_group_name = resource_group , public_ip_address_name = name ) pubip = pubip_query . as_dict ( ) except CloudError as exc : __utils__ [ 'azurearm.log_cloud_error' ] ( 'network' , exc . message ) pubip = { 'error' : exc . message } return pubip
Get the public ip address details by name.