Azure Powershell module not connecting to Azure subscription

<p style=“margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; color: #000000; font-family: Arial, ‘Liberation Sans’, ‘DejaVu Sans’, sans-serif; line-height: 18px;”>Hi,</p>
<p style=“margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; color: #000000; font-family: Arial, ‘Liberation Sans’, ‘DejaVu Sans’, sans-serif; line-height: 18px;”>I am having some problems trying to learn PS and azure cloud services. I created a free trial subscription in Windows Azure, and installed Azure Powershell module in a Windows server 2008 machine.</p>
<p style=“margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; color: #000000; font-family: Arial, ‘Liberation Sans’, ‘DejaVu Sans’, sans-serif; line-height: 18px;”>I downloaded and imported my publish settings file executing the following commands:</p>
<p style=“margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; color: #000000; font-family: Arial, ‘Liberation Sans’, ‘DejaVu Sans’, sans-serif; line-height: 18px;”><strong style=“margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent;”>PS> Get-AzurePublishSettingsFile</p>
<p style=“margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; color: #000000; font-family: Arial, ‘Liberation Sans’, ‘DejaVu Sans’, sans-serif; line-height: 18px;”><strong style=“margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent;”>PS> Import-AzurePublishSettingsFile -PublishSettingsFile</p>
<p style=“margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; color: #000000; font-family: Arial, ‘Liberation Sans’, ‘DejaVu Sans’, sans-serif; line-height: 18px;”>The import command returns nothing in the output and you say that it should return the subscription name.</p>
<p style=“margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; color: #000000; font-family: Arial, ‘Liberation Sans’, ‘DejaVu Sans’, sans-serif; line-height: 18px;”>Then when I try to see my subscription’s information I get the following error:</p>
<p style=“margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; color: #000000; font-family: Arial, ‘Liberation Sans’, ‘DejaVu Sans’, sans-serif; line-height: 18px;”><strong style=“margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent;”>PS> Get-AzureSubscription</p>
<p style=“margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; color: #000000; font-family: Arial, ‘Liberation Sans’, ‘DejaVu Sans’, sans-serif; line-height: 18px;”><strong style=“margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; background-color: transparent;”>get-azuresubscription : Please connect to internet before executing this cmdlet</p>
<p style=“margin: 0px 0px 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; background-color: #ffffff; clear: both; word-wrap: break-word; color: #000000; font-family: Arial, ‘Liberation Sans’, ‘DejaVu Sans’, sans-serif; line-height: 18px;”>Hope you guys can help me. Thanks in advance</p>

You’ll want to edit that and not paste from Word ;).

Sorry I copied directly from other forum textbox.

 

<span style=“color: #444444; font-family: ‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 20px; background-color: #ffffff;”>I am having some problems trying to learn PS and azure cloud services. I created a free trial subscription in Windows Azure, and installed Azure Powershell module in a Windows server 2008 machine.</span>

<span style=“color: #444444; font-family: ‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 20px; background-color: #ffffff;”>I downloaded and imported my pub</span><span style=“color: #444444; font-family: ‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 20px; background-color: #ffffff;”>lish settings file executing the following commands:</span>

<span style=“color: #444444; font-family: ‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 20px; background-color: #ffffff;”>PS> Get-AzurePublishSettingsFile</span>

PS> Import-AzurePublishSettingsFile -<span style=“background-color: #ffffff; color: #444444; font-family: ‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 20px;”>PublishSettingsFile <my file’s absolute path></span>

This command does no return any output at all.

<span style=“color: #444444; font-family: ‘Open Sans’, Helvetica, Arial, sans-serif; font-size: 12px; line-height: 20px; background-color: #ffffff;”>Then when I try to see my subscription’s information I get the following error:</span>

PS> Get-AzureSubscription

get-azuresubscription : Please connect to internet before executing this cmdlet

 

Hope you can help me. Thanks in advance.

 

Ok tis is embarrassing. Here I go again.

I am having problems with the azure powershell module and my azure subscription.

I downloaded and tried to import my publish settings file using the following commands:

PS> Get-AzurePublishSettingsFile
PS> Import-AzurePublishSettingsFile -PublishSettingsFile <my file’s absolut path>

This command does not return any output at all.

Then when I try to see my account information I get the following error.

PS> Get-AzureSubscription
get-azuresubscription : Please connect to internet before executing this cmdlet.

Hope you can help me.

Thanks