assuming that your external IP is public IP. if the IP was reserved earlier and still available in your subscription still you can reuse the IP with below.
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.kubernetes.io/azure-load-balancer-resource-group: myResourceGroup
name: azure-load-balancer
spec:
loadBalancerIP: 40.121.183.52
type: LoadBalancer
ports:
- port: 80
selector:
app: azure-load-balancer
if the previous IP was dynamic it is not possible to get the IP back. you can follow below article to reserve the IP and use static IP going further.