F5 Sites
  • F5.com
  • LearnF5
  • NGINX
  • MyF5
  • Partner Central
Contact
  • Under Attack?
  • F5 Support
  • DevCentral Support
  • F5 Sales
  • NGINX Sales
  • F5 Professional Services
Skip to contentBrand Logo
Forums
CrowdSRC
Articles
Groups
EventsSuggestionsHow Do I...?
RegisterSign In
  1. DevCentral
  2. Articles
  3. Technical Articles

Microsoft Powershell with iControl

This component is not supported and we recommend reviewing Joel Newton's Powershell Module for iControlREST Code submission first. From the desk of Joe Pruitt (July 29, 2013) When we shipped DC...
Published Jun 21, 2019
Version 1.0
application delivery
BIG-IP
devops
iControl
powershell
Chase_Abbott's avatar
Chase_Abbott
Icon for Admin rankAdmin
Joined September 17, 2008
View Profile
Chase_Abbott's avatar
Chase_Abbott
Icon for Admin rankAdmin
Joined September 17, 2008
View Profile
The-messenger's avatar
The-messenger
Icon for Cirrostratus rankCirrostratus
Apr 03, 2020

Thanks Leif. Here's my question for just getting started.

Thought I would finally try this out, I have an irule to add to all VIPs using HTTPs. Seemed that would be easy and quick. I loaded the module, all went well and pretty slick. I needed to use -passthrough with the session to be able to run:

Get-VirtualServer | Where-Object {($_.Destination -like "*443*")} | Select-Object Name

with passthrough in my new-f5session command I was good.

Then a few minutes later I got this error and do not know how to get around it.

Invoke-F5RestMethod : "401 F5 Authorization Required: X-F5-Auth-Token does not exist.

I tried new-f5session, logged in again, still got the error. Shut down powershell and tried it all again, still got th error.

 

How do I set my session to last longer?

What are the steps required to set a new token?

Within powershell what is the syntax for add-iruletovirtualserver? I have an irule that I want to apply to virtual servers, is this run with the get-virtualserver context?

get-virtualserver $vsname | add-iruletovirtualserver $irulename?

I keep getting False returned.

@Joel Newton(MVP) can you help?

ABOUT DEVCENTRAL

DevCentral NewsTechnical ForumTechnical ArticlesTechnical CrowdSRCCommunity GuidelinesDevCentral EULAGet a Developer Lab LicenseBecome a DevCentral MVP

RESOURCES

Product DocumentationWhite PapersGlossaryCustomer StoriesWebinarsFree Online CoursesF5 CertificationLearnF5 Training

SUPPORT

Manage SubscriptionsProfessional ServicesProfessional ServicesCreate a Service RequestSoftware DownloadsSupport Portal

PARTNERS

Find a Reseller PartnerTechnology AlliancesBecome an F5 PartnerLogin to Partner Central

F5 logo©2024 F5, Inc. All rights reserved.
TrademarksPoliciesPrivacyCalifornia PrivacyDo Not Sell My Personal Information