as said in the title, I can't assign an IP to my cloud service.
I've followed a lot of forums and StackOverflow articles/posts but I've still the issue.
When I try to run
Set-AzureReservedIPAssociation -ReservedIPName primosguardo365reservedip -ServiceName primosguardo365
I get this error
Set-AzureReservedIPAssociation : ResourceNotFound: No deployments were found.
At line:1 char:1
+ Set-AzureReservedIPAssociation -ReservedIPName primosguardo365reserve ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Set-AzureReservedIPAssociation], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.SetAzureReservedIPAssociationCmdlet
but if I try to get the resources using the same name
λ Get-AzureReservedIP
ReservedIPName : Group Primosguardo365 primosguardo365reservedip
Address : **.**.**.**
Id : ******************
Label :
Location : West Europe
State : Created
InUse : False
ServiceName :
DeploymentName :
VirtualIPName :
OperationDescription : Get-AzureReservedIP
OperationId : ************************
OperationStatus : Succeeded
λ Get-AzureService "primosguardo365"
ServiceName : primosguardo365
Url : https://management.core.windows.net.................
Label : primosguardo365
Description : primosguardo365
Location : West Europe
AffinityGroup :
Status : Created
ExtendedProperties : {[ResourceGroup, Primosguardo365], [ResourceLocation, westeurope], [ProvisioningSource,
AzureResourceManager]}
DateModified : 28/03/2017 12:13:20
DateCreated : 28/03/2017 11:26:03
ReverseDnsFqdn :
WebWorkerRoleSizes : {}
VirtualMachineRoleSizes : {}
OperationDescription : Get-AzureService
OperationId : ****************************
OperationStatus : Succeeded
Does anyone have any suggestion?
Thanks in advance!
EDIT:
VIP can only be assigned to a deployed PRODUCTION instance.
But that's useless, cause CloudServices already have static IP.
Thanks to all!
In my test, I reproduce your error, I just create a cloud service via new portal, and then associate a reserved IP address to it, the error occur.
PS C:\Users> Set-AzureReservedIPAssociation -ReservedIPName my9 -ServiceName "jasontest323"
Set-AzureReservedIPAssociation : ResourceNotFound: No deployments were found.
At line:1 char:1
+ Set-AzureReservedIPAssociation -ReservedIPName my9 -ServiceName "jaso ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Set-AzureReservedIPAssociation], CloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.SetAzureReservedIPAssociationCmdlet
After that, I create another cloud service and a VM, then assiscate a reserved IP address to this cloud service, it works.
PS C:\Users> Set-AzureReservedIPAssociation -ReservedIPName my9 -ServiceName "jasonvm3659"
OperationDescription OperationId OperationStatus
-------------------- ----------- ---------------
Set-AzureReservedIPAssociation 05ccff35-5642-7cc6-9c6b-b5dfe2d1603d Succeeded
So, I check the status of the two cloud service, I find when the Production is running, the command will work.
We can use PowerShell to check the deployment:
PS C:\Users> Get-AzureDeployment -ServiceName jasontest323
Get-AzureDeployment : ResourceNotFound: No deployments were found.
OperationID : '27da300bc3c67a5bbdbc954c1c19e3e7'
At line:1 char:1
+ Get-AzureDeployment -ServiceName jasontest323
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-AzureDeployment], ComputeCloudException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.HostedServices.GetAzureDeploymentCommand
PS C:\Users> Get-AzureDeployment -ServiceName jasonvm3659
SdkVersion :
RollbackAllowed : False
Slot : Production
Name : jasonvm3659
DeploymentName : jasonvm3659
Url : http://jasonvm3659.cloudapp.net/
Status : Running
CurrentUpgradeDomain : 0
CurrentUpgradeDomainState :
UpgradeType :
RoleInstanceList : {jasonvm}
Configuration : <ServiceConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration">
<Role name="jasonvm">
<Instances count="1" />
</Role>
</ServiceConfiguration>
DeploymentId : fc627acb502a4a979b08c42f69cccf72
Label : jasonvm3659
VNetName : Group jasontest321 jasontest321
DnsSettings :
OSVersion :
RolesConfiguration : {[jasonvm, Microsoft.WindowsAzure.Commands.ServiceManagement.Model.RoleConfiguration]}
VirtualIPs : {jasonvm3659ContractContract}
ReservedIPName : my9
CreatedTime : 3/29/2017 1:10:28 PM
LastModifiedTime : 3/29/2017 1:27:42 PM
Locked : False
InternalLoadBalancerName :
LoadBalancers : {}
ExtensionConfiguration :
ServiceName : jasonvm3659
OperationDescription : Get-AzureDeployment
OperationId : f8b8xxxx-xxxx-xxxx-xxxx-xxxx2cdc1daa
OperationStatus : Succeeded
The reserved IPs work for classic module, only be used for VMs and cloud service instance roles exposed through a VIP.
So we should check the deployment with powershell Get-AzureDeployment -ServiceName primosguardo365 first.
Related
Any one know How to fix Storage Module Cmdlets when then can't run on powershell over Windows 10 ?
I have try all Cmdlets like get-disk , get-volume but all gives the following massage
PS C:\Users\administrator.HUPCHONGFURNITU\Documents> get-volume
get-volume : Invalid property
+ CategoryInfo : MetadataError: (MSFT_Volume:ROOT/Microsoft/...age/MSFT_Volume) [Get-Volume],
CimException
+ FullyQualifiedErrorId : HRESULT 0x80041031,Get-Volume
PS C:\Users\administrator.HUPCHONGFURNITU\Documents> Get-Disk
Get-Disk : Invalid property
+ CategoryInfo : MetadataError: (MSFT_Disk:ROOT/Microsoft/Windows/Storage/MSFT_Disk) [Get-Disk],
CimException
+ FullyQualifiedErrorId : HRESULT 0x80041031,Get-Disk
I'm trying to update RDP login/password on a Service Fabric VMSS. I use the default script proposed here :
https://blogs.technet.microsoft.com/mckittrick/how-to-reset-password-for-vmss-scale-set-instances/
However I have this issue when lauching the last Update-AzureRmVmss command (I don't try to change any zones parameter) :
Update-AzureRmVmss : Changing property 'zones' is not allowed.
ErrorCode: PropertyChangeNotAllowed
ErrorMessage: Changing property 'zones' is not allowed.
StatusCode: 409
ReasonPhrase: Conflict
OperationID : df197d60-0694-4d38-bad6-1de2163de550
At line:13 char:1
+ Update-AzureRmVmss -ResourceGroupName $vmssResourceGroup -Name $vmssN ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Update-AzureRmVmss], ComputeCloudException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Compute.Common.ComputeCloudException,Microsoft.Azure.Commands.Compute.Automation.UpdateAzureRmVmss
Any idea ?
thank you
I am running PSVersion 5.1.14393.206. Is there something that I must configure or call before Get-VpnConnection?
PS C:\Users\pwatson> Get-VpnConnection -AllUserConnection
Get-VpnConnection : Invalid class
At line:1 char:1
+ Get-VpnConnection -AllUserConnection
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (PS_VpnConnection:root/Microsoft/...S_VpnConnection) [Get-VpnConnection], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041010,Get-VpnConnection
Same result in 64-bit and 32-bit shell.
if you doesn't have VPN connection use you will get error but if u have use this :
Get-VpnConnection
your output will your VPN information .
you don't need any thing for this service .
I’m running this script I found on technet.
Export Managed/Crawled Properties from Enterprise Search
https://gallery.technet.microsoft.com/office/Export-ManagedCrawled-7548d31b
Why am I receiving the following error below?
PS C:> .\Export-SpSearchManagedProperties.ps1
Get-SPEnterpriseSearchMetadataManagedProperty : SearchApplication Search Service not found.
At C:\Staging\Export-SpSearchManagedProperties.ps1:14 char:67
+ $ManagedPropreties = Get-SPEnterpriseSearchMetadataManagedProperty <<<< -SearchApplication $SearchServiceApp
+ CategoryInfo : InvalidData: (Microsoft.Offic...ManagedProperty:GetSearchMetadataManagedProperty) [Get-S
PEnterpris...ManagedProperty], KeyNotFoundException
+ FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.GetSearchMetadataManagedProperty
You cannot call a method on a null-valued expression.
At C:\Staging\Export-SpSearchManagedProperties.ps1:28 char:32
+ $Mappings = $MP.GetMappings <<<< ()
+ CategoryInfo : InvalidOperation: (GetMappings:String) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\Staging\Export-SpSearchManagedProperties.ps1:33 char:29
+ if ($CP.Contains <<<< (":") -eq $true){
+ CategoryInfo : InvalidOperation: (Contains:String) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
PS C:>
=======================================================================
Environment –
Windows Server 2008 R2 Datacenter
64-bit
$PSVersionTable
Name Value
PSVersion 2.0
$host
Name : ConsoleHost
Version : 2.0
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
Get-SPEnterpriseSearchServiceInstance -local
TypeName : SharePoint Server Search
Description : Index content and serve search queries
Role : None
Status : Online
I believe I found the issue. I needed to change the parameter for $SearchServiceApp to "Search Service Application".
System: Windows Server 2012 R2 | PowerShell v4 | Jenkins v1.607 | 64-Bit Java Version 8u60
For whatever reason, I am able to login to the Windows server that Jenkins is running on, and execute the following code without issues:
Start-Job -Credential $Creds -ScriptBlock {Get-Process}
Get-Job | Wait-Job | Receive-Job
Upon trying to execute the same code within a Jenkins job, utilizing the PowerShell plugin, with the same user credentials I was using in $Creds, it fails without any helpful information. Credentials have been verified. This is the error that I get:
[localhost] The background process reported an error with the following message: .
+ CategoryInfo : OpenError: (localhost:String) [], PSRemotingTransportException
+ FullyQualifiedErrorId : 2100,PSSessionStateBroken
I used the Resolve-Error function, as found here, to try and get more information. Here was the output:
writeErrorStream : True
PSMessageDetails :
Exception : System.Management.Automation.Remoting.PSRemotingTransportException: The background process
reported an error with the following message: .
TargetObject : localhost
CategoryInfo : OpenError: (localhost:String) [], PSRemotingTransportException
FullyQualifiedErrorId : 2100,PSSessionStateBroken
ErrorDetails : [localhost] The background process reported an error with the following message: .
InvocationInfo :
ScriptStackTrace :
PipelineIterationInfo : {}
00000000000000000000000000000000000000000000000000000000000000000000000000000000
ErrorCode : 2100
TransportMessage :
ErrorRecord : The background process reported an error with the following message: .
StackTrace :
WasThrownFromThrowStatement : False
Message : The background process reported an error with the following message: .
Data : {}
InnerException :
TargetSite :
HelpLink :
Source :
HResult : -2146233087
Still no helpful information. I'm at a loss as to what may be the issue, and have no idea how to proceed.