Deployment of Linux VM fails - Package iptables-persistent cannot be found.
VM has reported a failure when processing extension 'CustomScript' (publisher 'Microsoft.Azure.Extensions' and type 'CustomScript'). Error message: "Enable failed: failed to execute command: command terminated with exit status=2
[stdout]
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_redirects = 0
Installing IPTables-Persistent
Reading package lists...
Building dependency tree...
Reading state information...
[stderr]
E: Unable to locate package iptables-persistent
linuxrouter.sh: 24: linuxrouter.sh: cannot create /etc/iptables/rules.v4: Directory nonexistent
". More information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot. (Code: VMExtensionProvisioningError)
Deployment of Linux VM fails - Package
iptables-persistent
cannot be found.