# Questions - Deploy and manage Azure compute resources
###### tags: `az-104` `azure`
## Resource location
A network interface can be only assigned to a virtual network that exists in the **same subscription and location** as the network interface
A network interface can only be added to a virtual machine when it exists in the **same subscription and location** as the network interface
###### How public IP to network interface?
## App Service Plan
Backup/Restore is only available for App Service Plan sku: standard, Premium, Isolated

## VM can be move to another subscription
refer to https://docs.microsoft.com/en-us/azure/virtual-machines/windows/move-vm
## How to add a network interface to a VM
1. The VM need to be stopped first
2. Attch the network interface
## Virtual machine SLA
- For all Virtual Machines that have two or more instances deployed across two or more Availability Zones in the same Azure region, we guarantee you will have Virtual Machine Connectivity to at least one instance at least 99.99% of the time.
- For all Virtual Machines that have two or more instances deployed in the same Availability Set or in the same Dedicated Host Group, we guarantee you will have Virtual Machine Connectivity to at least one instance at least 99.95% of the time.
- For any Single Instance Virtual Machine using Premium SSD or Ultra Disk for all Operating System Disks and Data Disks, we guarantee you will have Virtual Machine Connectivity of at least 99.9%.
- For any Single Instance Virtual Machine using Standard SSD Managed Disks for Operating System Disk and Data Disks, we guarantee you will have Virtual Machine Connectivity of at least 99.5%.
- For any Single Instance Virtual Machine using Standard HDD Managed Disks for Operating System Disks and Data Disks, we guarantee you will have Virtual Machine Connectivity of at least 95%.
Refer to https://azure.microsoft.com/en-us/support/legal/sla/virtual-machines/v1_9/
## AvailabilitySet vs AvailabilityZone
| AS | AZ |
| -- | -- |
| Protect from Hardware error within date center | Protect from entire data center error |
| SLA 99.95% | SLA 99.99% |
## How quota calculate
Quota is calculated based on the total number of cores in use **both allocated and deallocated**