Programmatically change management cert for multiple (600+) subscriptions

Our service has 600+ subscriptions, and they all share the same management cert.
Due to security reason, we would like to change management cert on the subscriptions periodically, but I have not yet found a way to do so programmatically.
I have found the "Add Service Certificate" cmdlet but it only allows you to upload the "Service certificate per service",
and I need to be able to change "Management cert" for all 600+ subscriptions.
Could you please tell me if there is a programmatic way to do so?

I'v just write a blog show how to use Managment class libraries.
You can refer to my
blog, or Download the
code sample I upload to MSDN and add the managment class libraries to your project.
Then Add Certificate like this:
ComputeManagementClient client = new ComputeManagementClient(cloudCredentials);
ServiceCertificateCreateParameters parm = new ServiceCertificateCreateParameters()
Data = certByte,//the certificate your want to add(convert to byte[] the certificate should be pfx )
CertificateFormat = CertificateFormat.Pfx,
Password="YouPassword"
var hostedServices = client.HostedServices.List();
foreach (var service in hostedServices)
client.ServiceCertificates.Create(service.ServiceName, parm);
Console.ReadLine();
Please mark post as answered if it helped!

Similar Messages

  • Can't change sort settings for multiple items in iTunes 7.1

    iTunes 7.1 introduces a great feature—the ability to set a separate Sort Name, Sort Artist, Sort Album, etc. This means that "Weird Al" Yankovic songs can finally appear down among the Y's instead of up at the top of every list, by changing the Sort Artist to Yankovic, Weird Al.
    Unfortunately, this feature is fatally crippled in 7.1. As far as I can tell, you can only change the Sorting information on individual tracks. When you change the information for multiple tracks, the Sorting tab doesn't show up. This renders the feature all but useless.
    Let's say (hypothetically) that your friend is an enormous nerd (in theory) and your friend has 139 "Weird Al" Yankovic tracks (for the purposes of this example only, of course). Instead of just selecting all these tracks at once and changing the Sort Artist to Yankovic, "Weird Al", I (I mean, he) has to retype this information for each individual track. That's crazy! Surely this must be a bug.
    Core 2 Duo 20" iMac   Mac OS X (10.4.8)  

    I just found the solution to this myself.
    In a very un-Apple way, this is an undocumented feature only accessible by right- (or control-) clicking.
    1. Change one track to your desired sort settings (for instance, set the Sort Artist to Yankovic, Weird Al.
    2. Right-click on that track. In the contextual menu that appears, there is a new submenu called "Apply Sort Field." If you choose "Same Artist," it will apply your new sorting information to all your other tracks by "Weird Al" Yankovic (or, if you are not a huge nerd, any other artist you substitute).

  • How to install Oracle Change Management Pack for 11g database.

    Hi,
    I need to setup "Oracle Change Management Pack" for my oracle11g database. Can any body help to do the same. i am able to configure following.
    Oracle Configuration Management Pack
    Oracle Data Masking Pack
    Oracle Diagnostic Pack
    Oracle Tuning Pack
    using following URL
    http://docs.oracle.com/cd/B28359_01/license.111/b28287/options.htm#CIHBGJCC but not able to install "Oracle Change Management Pack for 11g database". Can any body share any pointers if any...
    Regards
    DBA.

    As far as I could understand, this is a part of Oracle EM/Grid installation:
    The sections that follow describe the Oracle management packs. The management packs can be purchased only with Enterprise Edition. The features in these packs are accessible through Oracle Enterprise Manager Database Control, Oracle Enterprise Manager Grid Control, and APIs provided with Oracle Database software.

  • How to change billing information for my annual subscription as the chart through which I was paying

    The option that gives me my brand Subscription error and I can not make changes.

    It solved the problem of changing the credit card for payment of a subcripción.
    thanks
    Date: Wed, 18 Jul 2012 14:22:59 -0600
    From: [email protected]
    To: [email protected]
    Subject: How to change billing information for my annual subscription as the chart through which I was paying
        Re: How to change billing information for my annual subscription as the chart through which I was paying
        created by David__B in Adobe Creative Cloud - View the full discussion
    Hi Beto, What information are you attempting to change (address, credit card)? What is the error message you are getting? Would it be possible to post a screen shot of the error? -Dave
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4565913#4565913
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4565913#4565913. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Creative Cloud by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Best Practice for managing variables for multiple environments

    I am very new to Java WebDynPro and have a question
    concerning our deployments to Sandbox, Development, QA,
    and Production environments.
    What is the 'best practice' that people use so that if
    you have information specific to each environment you
    don't hard-code it in your Java WebDynPro code.
    I could put the value in a properties file, but how do I
    make that variant?  Otherwise I'd still have to make a
    change for each environment to the property file and
    re-deploy.  I know there are some configurations on the
    Portal but am not sure if that will work in my instance.
    For example, I have a URL that varies based on my
    environment.  I don't want to hard-code and re-compile
    for each environment.  I'd prefer to get that
    information on the fly by knowing which environment I'm
    running in and load the appropriate URL.
    So far the only thing I've found that is close to
    telling me where I'm running is by using a Parameter Map
    but the 'key' in the map is the URL not the value and I
    suspect there's a cleaner way to get something like that.
    I used Eclipse's autosense in Netweaver to discover some
    of the things available in my web context.
    Here's the code I used to get that map:
    TaskBinder.getCurrentTask().getWebContextAdapter().getRequestParameterMap();
    In the forum is an example that gets the IP address of
    the site you're serving from. It sounds like it is going
    to be or has been deprecated (it worked on my system
    right now) and I would really rather have something like
    the DNS name, not something like an IP that could change.
    Here's that code:
    String remoteHost = TaskBinder.getCurrentTask().getWebContextAdapter().getHttpServletRequest().getRemoteHost();
    Thanks in advance for any clues you can throw my way -
    Greg

    Hi Greg:
         I suggest you that checks the "Software Change Managment Guide", in this guide you can find an explication of the best practices to work with a development infrastructure.
    this is the link :
    http://help.sap.com/saphelp_erp2005/helpdata/en/83/74c4ce0ed93b4abc6144aafaa1130f/frameset.htm
    Now if you can gets the ip of your server or the name of your site you can do the next thing:
    HttpServletRequest request = ((IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();
    String server_name = request.getServerName();
    String remote_address =     request.getRemoteAddr()
    String remote_host = request.getRemoteHost()
    Only you should export the servlet.jar in your project properties > Build Path > Libraries.
    Good Luck
    Josué Cruz

  • Changing Assignment Details for multiple user

    Hi everyone,
    In the RelationShips tab of a bundle, how can we change the "Assignment Details" for multiple user at once? Per exemple, I have a bundle that have about 100 user assignments. The bundle show on Start Menu but no on the Nal. If we want all of our users to have this bundle on the Nal Windows, how can we instruct that easily and quickly, instead of selecting each user and changing the Assignment Details ?
    thank you for your help !
    DM

    I am also trying to update the shortcut locations on many apps for a mass amount of users. Mr. Pond, or dominicm, can you explain or give a example ZMAN command that would be able to do this? From the documentation I can find it only seems to affect the distribution and scheduling but not the shortcut location.

  • Change Management Configuration for SolMan 4.0 SP13

    Hi SolMan Experts,
    Recently, we have build SolMan4.0. As of now, we have configured this for System monitoring and EWA reports.
    Now, we are planning to configure for Change Management.
    Could you please provide me the useful documents for CHANGE MANAGEMENT configuration on SolMan4.0.
    Thanks in advance!
    Regards,
    Hari.

    Hello
    Follow the same steps which mentioned for SP12, as per my understanding there is not much difference in basic configuration of solution manager 4.0.
    Create systems in SMSY, RFC connections, create logical system, create project, activate charm, these are the basic steps.
    You will get information on this on saphelp and also go through the solman rkt (service.sap.com/rkt),
    sap market place  sap support infrastructure  solution manager  media library (u will find all documents)
    Even they gave given the charm configuration guide for SP12, u will find that in technical papers.
    Hope this will help
    Regards,
    Sharmishtha

  • Manager Process for Multiple DB's

    Hi Experts,
      I am trying to understand goldengate for my setup in LAB.
    Currently I have the below setup and need some clarification(s).
    Source & Target -  2 node RAC(11.2.0.3); RHEL 6
    GG Version : 12.1.2.0
    On Source i have 3 databases and of them 2 targets are corresponded to same source but the third target is different
    so do we need to have same manager , that will take care of othere process for EACH db or we need to have seperate MGR for each DB.
    If i understood clearly having a dedicate mgr process for EACH DB will be much better making more sense. ( correct me if i am wrong) but now comes the question with single binary setup how can we maintain multiple manager process
    If only 1 mgr is allowed how do we know which process is responsible for which database.
    Appreciate your thoughts. ( sorry if i was wrong . . . just in learner mode)

    Hi,
    You can have a single manager configured with multiple extract/replicat processes which connects to its respective databases through sql net connection.
    Manager doesnot need to connect to any of the databases except for doing the maintenance tasks at the os level to delete the trail files, managing the processes to start automatically when it is started, etc.
    Hope this helps!
    Thanks
    Vivek-Oracle

  • Can't change "Open with" for multiple files

    For some reason, all swfs on my computer won't open in the Flash player that came with Flash 9. If I select 1 swf and set it to open with the player, it will work, however, if I select multiple ones, get info and try to set them all to open in the player (or "Change All") I get a dialogue saying I don't "have privileges to change the application for these documents only. Do you want to change all similar documents to open with the application Flash Player.app?" This is rediculous because I could so this in Tiger just fine. Also, I'm the admin and i'm in MY account, so I should be able to do anything I want, right?
    Any insights? I've repaired disk permissions by the way.
    Dan P.

    This is sometimes a problem with the launchservices database. You can try the following to fix it:
    Rebuild LaunchServices Database
    For Tiger users
    Open the Terminal application in your Utilities folder. At the prompt paste in the following command in its entirety:
    /System/Library/Frameworks/ApplicationServices.framework/Frameworks/LaunchServic es.framework/Support/lsregister -kill -r -domain local -domain system -domain user
    Press RETURN.
    For Leopard users
    Open the Terminal application in your Utilities folder. At the prompt paste in the following command in its entirety:
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user
    Press RETURN.
    If this isn't successful then there may be other problems involved. You can try this:
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger and Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.0 for Tiger, and 4.1 for Leopard) and/or TechTool Pro (4.6.1 for Leopard) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    You can install the freeware preference pane, RCDefaultApp - VersionTracker or MacUpdate - which is useful for extensive control over various file associations.

  • Changing video kind for multiple videos

    How do u change the video kind for multiple videos? I have more than 200 tv show episodes in my itunes and it would take forever to change them to movies one by one. Please help:)

    Make sure you have the latest version of itunes software (itunes 6.0.4)
    can download here:
    http://www.apple.com/itunes/download
    Easiest way to do this would be to have all 200+ shows in one playlist. Click on one show in the list, then go to edit and click on "select all."
    From the Advanced menu, choose Convert Selection for iPod. While converting, you will notice an item named "Converting Songs..." appear in the iTunes Source list. The "Converting Songs..." item disappears after the conversion is over.
    For a complete walkthrough, refer to the kbase article "Verifying iTunes video conversion and iPod video syncing using sample QuickTime files":
    http://docs.info.apple.com/article.html?artnum=302892

  • Change Management process for Report Painter tool...

    Hi everyone,
    I am curious to see what process is used out in the industry to allow report painter reports to be defined and executed in production.  Do users define their reports in DEV and use the STMS or the export/import feature or do they create them directly in the PROD environment?  I personnally think it should be created in DEV and promoted to the remaining servers within the landscape for proper change and release management. 
    Do any of your technical resource monitor and look at reports before they are moved to another environment or do you allow your systems analyst or even end users to create their own report without any monitoring by technical resources?  How stable is report painter and is there any major performance issue while defining any type of reports?
    Any comments are welcomed and appreciated.
    Thanks in advance,
    Luc

    Hi Luc,
    In vast majority of project I have been participated, the report painter was in responsibility of the consultants and not the users. Usually, these reports were created in test system and then exported, via standard export/import functionalities, to production.
    Of course, one can create those reports directly in production (though, without creating a transaction code for them - this will involve CR), but I'd recommend to stick to 'first TEST, then PROD' model. This would put some order in the reports directories, as the creation of a new report will be controlled.
    Since, these reports based on totals tables, no performance problems are anticipated.
    Regards,
    Eli

  • Changing field labels for multiple people.

    I am quite new to applescript, so please bear with me.
    I am just looking for a script to change a groups phone label to mobile. If anyone could point me in the right direction, or even give me a simple script, it would be greatly appreciated.

    I haven't tested this (not quite brave enough), but I'd expect the script to look something like:
    tell application 'Address Book"
     -- get the people in the group
     set thePeople to every person of group "GroupName"
     -- iterate through them
     repeat with eachPerson in thePeople
      -- get their phone numbers
      set thePhones to every phone of eachPerson
      -- and iterate through the phones
      repeat with eachPhone in thePhones
       -- set the label appropriately
       set label of eachPhone to "Mobile"
      end repeat
     end repeat
    end tell
    Note this does mean if someone has multiple phone numbers they'll all be labelled 'Mobile'. I don't know how you want/expect to address that.

  • Changing Phone description for multiple devices

    Hi all
    My first post here.
    I have custom descriptions for phones on the phone control field in Jabber
    Like here
    https://supportforums.cisco.com/discussion/11983771/multiple-selections-use-my-phone-calls-jabber-924
    Where on CUCM do i change this?
    I have turned every stone on our CUCM 10.5.2
    Best regards 
    Jón Ragnar

    Hi jonragnar,
     that's the correct behavior:
    <'Device Type'>: for only one 'Device Type'
    <'Device Type'>-<'Device Phone > Description'>: for 2 or more of the same 'Device Type'.
    As soon as you have only one 9971 and only one 7940, the only option is the 'Device Type' ... if you have two 9971 (for example), then you would be able to change the Description.
    Regards.

  • How to configure request manager service for multiple website in one web application

    I have set up sp 2013 as below:
     web application : wa1
    site collection : sc1
    sp site: site1, site2
    I used 2 WFE, 1 APP, how can I use request manager service to control  site1 to wfe1, site2 to wfe2?
    Awen

    That's not what i'd describe as load balancing.
    A better description would be load-isolation. In your description then if the load on site1 was large (and growing) but site2 was quiet then site1 would struggle and eventually become unable to handle the number of users but site2 would still be ok. That's
    fine from a QOS point of view but it's not the norm for load balancing. It would work in simple scenarios but the out of the box load balancing tools are much better suited than that sort of approach.
    This article shows how to configure the RMS and may help show how your request is difficult to configure:
    http://www.harbar.net/articles/sp2013rm2.aspx

  • Managing apps for multiple users in one iTunes library

    Hi - my wife and I both have iPhones and separate iTunes ID's.  We both share music in one iTunes library and sync to the same library.  We also backup our phones to that same computer.  We have some apps on both phones (for example, Pandora) and when we backup/restore our phones, iTunes apparently will put "my" version of apps on her phone and "her" version of apps on my phone.  Afterwards, when I update apps, my phone will ask for BOTH my iTunes ID AND her iTunes ID.   Similarly, her phone asks for both her ID and my ID.  Presumably, this also uses two of my FIVE authorized devices, which is also a problem.
    My question is how can we manage our apps separately on iTunes so that we can get rid of this annoying behavior?  It is very common for families to share one common iTunes library, so I don't see why this would be unsupported.
    Thanks for any assistance!

    Bump

Maybe you are looking for