Thursday, June 30, 2016

Azure Active Directory-Module : Import-Module : Could not load file or assembly file:///C:\Windows\system32 \WindowsPowerShell\v1.0\ Modules\MSOnline\Microsoft Online Administration Automation PSModule dll or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded

while , I was trying to make one account password never expire, I was trying to connect to azure by using the AAD powershell command utility.
when I open AAD powershell tool I got below error "Azure Active Directory-Module : Import-Module : Could not load file or assembly file:///C:\Windows\system32 \WindowsPowerShell\v1.0\ Modules\MSOnline\Microsoft Online Administration Automation PSModule dll or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded".
when I check the version of powershell, it was 2.0, but the above needs 3.0.
Hence download 3.0 from https://www.microsoft.com/en-sg/download/details.aspx?id=34595 (do as per 32 or 64) and install and then try to connect.

Regards,
Sudhanshu

The job failed. The quota for the monthly total job run time has been reached for the subscription. To get more job run time you change to a different Automation plan or wait until next month when the quota will be reset.

While working on Azure automation.
I had set up auto start/stop for my VMs morning and night to save $$$$.
OK, once I got my monthly bill so HIGH, then I noticed by VMs running 24x7. heck.....
then saw automation job failed, reason is the subject line and as below...
"The job failed. The quota for the monthly total job run time has been reached for the subscription. To get more job run time you change to a different Automation plan or wait until next month when the quota will be reset."
 this means, change your tier for automation.
by default it is free for 500 mnts. for basic it charges $0.002 / minute. more details https://azure.microsoft.com/en-us/pricing/details/automation/


How to change the plan
login to you Azure subscription, then select Automation on left Icons. (below screens are from new portal)
then select "Pricing tier and usage".
the highlighted 54/500, shows how much time (in mnts) it ran out of 500 (this is free one).
 now click "Pricing tier" , you will get Free and Basic. then select Basic and save.
now you are done from this disaster..


hope this helps...


Regards,


yes.sudhanshu

Friday, November 13, 2015

understanding and troubleshooting evaluation windows version and activation failures on azure vms

Hi ,

when I was working on Azure, I got below scenario.
I have created a VM by using LCS, which was demo env. hence the licensing and all were evaluation.
this URL ( Click Here )says more on demo env license.

so this env gives a period, in my case of 90 days for OS.
so you must activate this or reamr to extend this to a grace period.
 to get grace period follow below.

ReArm, get grace period of 180 days
there are some standard scripts given inside VM to do so under C:\DemoFiles\StartupScripts\Rearm. open command prompt as Admin. then run
rearm.cmd and then activate.cmd . make sure your VM connected to internet.

else run below command in elevated command prompt

slmgr.vbs /rearm

now restart your VM.

now activate it
slmgr.vbs /ato
slmgr.vbs /dlv

if you have any error while doTroubleshooting Windows activation failures on Azure VMsing so, please follow below link....
http://blogs.msdn.com/b/mast/archive/2014/12/23/troubleshooting-windows-activation-failures-on-azure-vms.aspx

you can also activate to MSDN key

MSDN Key
this is very simple, you need to have the respective MSDN version key with you.
to get the version you can run below command in elevated command prompt or power shell
DISM.exe /Online /Get-TargetEditions
this result will help to know, to which edition you can activate.
in my caseI got below, mine is ServerDatacenter

PS C:\Users\Administrator> DISM.exe /Online /Get-TargetEditions
Deployment Image Servicing and Management tool
Version: 6.3.9600.17031
Image Version: 6.3.9600.17031
Editions that can be upgraded to:
Target Edition : ServerDatacenter
The operation completed successfully
you can get the current version with command DISM.exe /Online /Get-CurrentEdition

not you get your MSDN data center key and run below command
DISM /online /Set-Edition:ServerDatacenter /ProductKey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /AcceptEula
 
this should show a success message and will ask you for restart and enter Y (make sure you have saved your work)
I got below result

PS C:\Users\Administrator> DISM /online /Set-Edition:ServerDatacenter /ProductKey: XXXXX-XXXXX-XXXXX-XXXXX-XXXXX/AcceptEula
 
Deployment Image Servicing and Management tool
Version: 6.3.9600.17031
 
Image Version: 6.3.9600.17031
 
Starting to update components...
Starting to install product key...
Finished installing product key.
 
Removing package Microsoft-Windows-ServerDatacenterEvalEdition~31bf3856ad364e35~amd64~~6.3.9600.16384
[==========================100.0%==========================]
Finished updating components.
 
Starting to apply edition-specific settings...
Finished applying edition-specific settings.
 
The operation completed successfully.
Restart Windows to complete this operation.
Do you want to restart the computer now? (Y/N) Y
Hope this will help someone.
 
Regards,
Sudhanshu 



 

Wednesday, November 11, 2015

Azure number of VMs, more than you subscribed, 1 domain names are needed for this configuration, but only 0 domain names (of 20) remain in your subscription.Request an increase

while working in azure, I was trying to create a vm and got below error
in new portal
Azure number of VMs, more than you subscribed, 1 domain names are needed for this configuration, but only 0 domain names (of 20) remain in your subscription.Request an increase

in old portal

this means, that you have exceeded the maximum number of VMs you can create under your subscription. this is good has been done from MS side, that there is an alert in a certain range.

so to get this you need to request to MS to increase the max number of VMs you can have, check if this has any relation with the number of cores that you can have.
cause the initial assigned cores you might not have used for all 20 VMs.

hope this will help.

Regards,
Yes.Sudhanshu

Sunday, August 16, 2015

A Membership Provider has not been configured correctly. Check the web.config settings for this web application. FBA configuration AX dynamics 2012

while configuring claim base login for dynamics ax 2012 with sharepoint 2013, I configured everything, but while going to Site Settings > FBA User Management , I got the below error

"A Membership Provider has not been configured correctly. Check the web.config settings for this web application."

but I thoroughly checked all my configs are correct, including the membership and permissions in DB as well.

finally I found that my app pools ( Ep site and STS site) were running in different accounts. hence causing this issue.
finally I make them all same and all were OK.

Regards,
Yes.Sudhanshu

Wednesday, August 12, 2015

WARNING: No deployment found in service: in Windows Azure

hi while setting a static IP to one of my Azure VM, I got the below warning message.
"WARNING: No deployment found in service: <service name>"
however I was able to do so earlier.
then I realise that I have multiple subscriptions in same login.
so this is issue of subscription.
so before you use the command you must set your subscription for which you wan to work.
get the list of subscriptions you have
Get-AzureSubscription | Select SubscriptionName

now set to the desired subscription
Select-AzureSubscription -SubscriptionName "<Your-Desired-Subscription-Name-Here>"
then use your command.

Regards,
yes.sudhanshu

Wednesday, May 6, 2015

How to change the authentication (Multifactor authentication) mode setting in Azure

initially I had MFA call to mobile, when I set the MFA.
then I tot when I will travel, I need to hv the app. so this is how you can change to other options...

login to you azure subscription.
on the top right corner and select "Additional security verification" and that will drive you another screen as below as select as highlighted..

after this click Configure and then it will as you to scan the bar code, before that you must install the Multi-factor App (make sure you download the correct one from MS), then follow the steps in the screen. then you are done.
 
same way you can change to other options...
hope this will help surely...
 
Regards,
Yes.Sudhanshu