• Skip to primary navigation
  • Skip to main content
Carbon60

Carbon60

The Managed Cloud Difference

  • Show Search
  • Contact Us
  • Get Started
Hide Search
  • Managed Private Cloud
    Managed Private Cloud

    Safe, stable, fast, compliant, secure and fully managed – get a reliable and data sovereign cloud infrastructure platform for your applications.

    • Managed Hosting
    • Dedicated Private Cloud
    • Managed Edge Cloud
    • Cloud Backup
    • Cloud Disaster Recovery
    • Cloud Disaster Recovery
  • Managed Public Cloud
    Managed Public Cloud

    Experience matters. Whether you choose Managed AWS, Azure or Google Cloud, we can take care of the heavy lifting while you focus on your business.

    • AWS Managed Services
    • Azure Managed Services
    • VMware Cloud on AWS
    • Azure Virtual Desktop
    • Microsoft 365
  • Managed Security
    Managed Security
    • Managed Risk
    • Managed Detection & Response
    • Managed Security Awareness
    • SIEM
    • Vulnerability Management
    • Penetration Testing
    • Endpoint Protection
    • Web Application Firewall
  • Cloud Adoption
    Cloud Adoption

    Starting or continuing on your cloud journey — whether public, private or hybrid — is a complex undertaking. But no matter your company size or industry, our cloud consulting experts can help with end-to-end solutions to plan, migrate and operate your business in the cloud.

    • Cloud Readiness Assessment

      Chart a new course for your IT environment with a Cloud Readiness Assessment. With a proven process, we take into consideration your technology, people and business strategy and tailor a public, private or hybrid cloud environment that will set your organization up for success.

      Learn more
    • Cloud Migration Services

      Cloud migration can transform your business and give you a competitive edge – when done properly. Our cloud experts will help you move complex workloads to the right cloud environment, the right way – tailored for your specific needs.

      Learn more
    • Cloud Launchpad
    • Modernization
    • Cloud Security & Compliance
    • Cloud Advisory Services
  • Industries
    Industries

    When it comes to financial services, healthcare, public sector and technology – there is simply no room for error or uncertainty when it comes to data security and compliance. There are specific and important considerations that we are well-versed in navigating. We’re trusted by governments and organizations to safely house mission-critical functions every day.

    • Financial Services

      Increase go-to-market speed, while meeting SOC2, PCI-DSS and OSFI B10 regulatory and organizational obligations.

      Learn more
    • Healthcare

      Get secure, scalable high-performance data, while improving the patient experience and addressing every compliance and privacy requirement.

      Learn more
    • Public Sector
    • Technology
  • About
    About

    We’re on a mission to bring digital transformation to more businesses, by making forward-thinking cloud strategy – and high-performance cloud services – more accessible.

    • Leadership

      Meet the leadership team who are driving our vision forward.

      Learn more
    • About Carbon60

      Learn more about who we are, and how we help our customers evolve with confidence.

      Learn more
    • Careers
    • News
    • Partners

      Simply put – the right technology and the right platform is the one that’s right for your business. We’re highly certified and experienced in the major public clouds – so regardless of complexity, customization or preference – we’re well-equipped to have your back every step of the way.

      Learn more
    • Insights

      Sharing knowledge and expertise is a big part of how we’ve evolved - and how we help our customers.

      Learn more
  • Contact Us
  • Get Started

Validating User Resources for Deploying a Service Template

October 1, 2012

The System Center VMM PowerShell module is very rich and contains more than 400 cmdlets, but it is missing some trivial cmdlets IMO that will help determine if a specific user has enough resources to deploy a new virtual machine or a new service template. Initially it sounds like an easy task, just get the quota and the usage, subtract and return the result, but because VMM has a flexible mechanism to configure quota it becomes a bit trickier. There are 4 factors to consider when checking for enough resources:

  1. Template required resources
  2. Destination cloud capacity/usage
  3. User-Role quota/usage
  4. User account quota/usage

And for each factor there are 5 categories that need to be validated:

  1. Total CPU number
  2. Total virtual machine number
  3. Total memory amount
  4. Total storage amount
  5. Total custom points

To fulfill this need I developed the following 3 PowerShell functions:

  1. Get-SCServiceTemplateResources – Iterates over the service template tiers and aggregates the required resources
  2. Get-SCUserAvailableResource – Retrieves user’s available resources for a given cloud and user-role. The calculation considers the user-role quota, user quota, cloud capacity, user-role usage, user usage and cloud usage
  3. HasResourceForNewService – uses the above 2 functions to return a Boolean result of whether or not the user has the sufficient resources for the new service deployment

IT Advice account quota, cloud computing, PowerShell, quota usage, service template, System Center, Virtual Machine Manager, VMM

Related posts

Code in the Cloud with Cloud9 IDE

July 10, 2012

The “Edge/Origin” Cloud: A New Paradigm

January 6, 2013

Automated Anomaly Detection and Optimization in Cloud Computing

February 8, 2012

Subscribe to receive Carbon60 news

Stay up to date on insights, blog articles, events and services from Carbon60 delivered to your inbox.

Subscribe
Carbon60
  • Managed Private Cloud
    • Managed Hosting
    • Dedicated Private Cloud
    • Managed Edge Cloud
    • Cloud Backup
    • Cloud Disaster Recovery
  • Managed Public Cloud
    • AWS Managed Services
    • Azure Managed Services
    • VMware Cloud on AWS
    • Azure Virtual Desktop
    • Microsoft 365
  • Cloud Adoption
    • Cloud Readiness Assessment
    • Cloud Migration Services
    • Cloud Launchpad
    • Modernization
    • Cloud Security & Compliance
    • Cloud Advisory Services
Follow us on LinkedIn Follow us on Twitter Follow us on YouTube Follow us on YouTube

© Copyright Carbon60 2023

  • Privacy Policy
  • Terms & Conditions
  • Sustainability
  • Contact Us
Carbon60 uses cookies to provide necessary website functionality, improve your experience and analyze our traffic. By using our website, you agree to our Privacy Policy and our cookies usage.AcceptPrivacy Policy