#PowerShell Azure Script Help

1 messages · Page 1 of 1 (latest)

cloud prairie
#

thats about 3 lines of powershell - can i assume that you are already authenticated to azure?

#

ok, its not 3, i did it in one

#

Get-AzSubscription | ?{$_.Name -like"*pl*" } | select name, id

subtle kernel
#

Ima try that! Thank you.

#

Though right now im on a test account. My subscription is called "Azure subscription 1"

cloud prairie
#

subscriptions dont have locations, they are global

#

given Azure does not yet have a region in poland, i dont believe your statement of "we have servers in poland"

subtle kernel
#

Its alr. I found out.

#

I just needed to find the Subscriptions for poland since the company has departments in poland too.

#

I might not have been clear enough

#

I used this instead

#

Get-AzSubscription | Where-Object Name -like "pl*"

subtle kernel
#

Thank you for your help though.