Complete the code to create a static public IP address in Azure.
az network public-ip create --resource-group myResourceGroup --name myPublicIP --allocation-method [1]The allocation-method must be set to static to reserve a fixed public IP address.
Complete the code to associate a public IP address with a network interface.
az network nic ip-config update --resource-group myResourceGroup --nic-name myNic --name ipconfig1 --public-ip-address [1]The --public-ip-address parameter requires the name of the public IP resource to associate.
Fix the error in the command to create a public IP with DNS name prefix.
az network public-ip create --resource-group myResourceGroup --name myPublicIP --allocation-method static --dns-name [1]The --dns-name should be a unique DNS label, not a resource group or NIC name.
Fill both blanks to create a public IP with a SKU and IP version.
az network public-ip create --resource-group myResourceGroup --name myPublicIP --sku [1] --ip-version [2]
The --sku can be Standard or Basic. The --ip-version can be IPv4 or IPv6. Here, Standard SKU and IPv4 are chosen.
Fill all three blanks to create a public IP with static allocation, Standard SKU, and IPv6 version.
az network public-ip create --resource-group myResourceGroup --name myPublicIP --allocation-method [1] --sku [2] --ip-version [3]
To create a public IP with static allocation, Standard SKU, and IPv6, use static for allocation-method, Standard for SKU, and IPv6 for IP version.