bentinata
bentinata

Reputation: 334

ServiceName And Name Differences?

So I was lingering around my Azure account, and found some way to set static IP.

Commands to set static IP is:

Get-AzureVM -ServiceName <service-name> -Name <name> | Set-AzureStaticVNetIP -IPAddress <ip-address> | Update-AzureVM

When I do:

Get-AzureVM -ServiceName <service-name> | Set-AzureStaticVNetIP -IPAddress <ip-address> | Update-AzureVM

; or:

Get-AzureVM -Name <name> | Set-AzureStaticVNetIP -IPAddress <ip-address> | Update-AzureVM

it still succeeded.

What's the differences between ServiceName and Name?

And, related question. How do I list VMs that have IP address set to static?

Upvotes: 3

Views: 737

Answers (1)

Danila Polevshchikov
Danila Polevshchikov

Reputation: 2278

According to manual:

-Service-name return information about all VM running in cloud service, -Name return info about exactly one VM.

Upvotes: 1

Related Questions