Search This Blog

Q11-Q15

Q11. What is Azure API management?
Q12. While doing deployment using ARM template the deployment carried out type is parallel, sequential?
Q13. What is Incremental mode of deployment?
Q14. What is Complete mode of deployment?
Q15. How to confirm that storage account is made before VM in templates?
---------------------------------------------------------------------------------------------------------------------------
Q11. What is Azure API management?

Answer:

Refer: Azure: API Management within this blog. 
---------------------------------------------------------------------------------------------------------------------------
Q12. While doing deployment using ARM template the deployment carried out type is parallel, sequential?

Answer:
Both Parallel and sequential. Resource Manager evaluates the dependencies between resources and deploys them in their dependent order.

By default, ARM template tries to deploy resources in parallel wherever possible. If resources are not dependent, then they will be deployed in parallel. 

For dependent resources for example, a SQL server must exist before attempting to deploy a SQL database. Resource Manager will use the sequential deployment. 
---------------------------------------------------------------------------------------------------------------------------
Q13. What is Incremental mode of deployment?

Answer:
By default, Resource Manager uses the incremental mode. [ADD, UPDATE, NO CHANGE]

ADD - Add as per new defined resources in ARM template
UPDATE - Update as per updated resources in ARM templates
NO CHANGE- Existing resources not defined in the template remain unchanged.

---------------------------------------------------------------------------------------------------------------------------
Q14. What is Complete mode of deployment?

Answer:
In complete mode, [ADD, UPDATE, DELETE]
ADD, UPDATE, DELETE resources to exactly match the ARM template.
DELETE- Existing resources not defined in the template will be deleted. 

---------------------------------------------------------------------------------------------------------------------------
Q15. How to confirm that storage account is made before VM in templates?

Answer:

 By defining dependsOn element or by using reference function. 

More about depends on
there can be other resources that must exist before the resource is deployed. 
For example, a SQL server must exist before attempting to deploy a SQL database. You define this relationship by marking one resource as dependent on the other resource. You define a dependency with the dependsOn element, or by using the reference function.
 
Resource Manager evaluates the dependencies between resources and deploys them in their dependent order. When resources are not dependent on each other, Resource Manager deploys them in parallel. 

You only need to define dependencies for resources that are deployed in the same template.
{
  "type": "Microsoft.Compute/virtualMachineScaleSets",
  "name": "[variables('namingInfix')]",
  "location": "[variables('location')]",
  "apiVersion": "2016-03-30",
  "tags": {
    "displayName": "VMScaleSet"
  },
  "dependsOn": [
    "[variables('loadBalancerName')]",
    "[variables('virtualNetworkName')]",
    "storageLoop",
  ],
  ...
}

---------------------------------------------------------------------------------------------------------------------------

No comments:

Post a Comment