Hi Team,
Thanks in advance, I'm planning to use IIS with Virtual Machine Scale Set. Hence i used generalize the VM and then created an Image out of it. Now when i try to create a simple VM to check and verify if application would work in VMSS i found that I've to set the credentials of the website manually by going to IIS Console and then clicking Edit Basic Setting and then clicking connect as button.
I've created a custom script extension to do the same (setting the credentials) using PowerShell and it works. But I've few questions.
Q1 ) In VMSS and IIS scenario, everybody does this stuff of setting up the credentials as i think IIS is allergic to VM generalize. What I'm doing is the right approach of setting the credentials using custom script extension?
Q2) Let us assume I've an update to the application i.e some files needs to be replaced in the application. I'm thinking of putting the file on the blob storage and then creating SAS of it and then using custom script extension to apply it. In PS script of custom script extension I'm mentioning it to download and replace my app file (This is normal application update which I'm doing)
So the query is, if scale set rule is hit and a new VM instance is created in scale set. Will my Custom script extension applied to the VM while the VM is up and running? or VM comes up and some traffic is routed from app gateway as it is scale set and then my custom script extension runs and my app will be updated after sometime. Till that time many request would have already been arrived at my new VM instance.