• Skip to primary navigation
  • Skip to main content
Carbon60

Carbon60

Unlock the Endless Power of Cloud

  • Show Search
  • Contact Us
  • Get Started
Hide Search
  • Outcomes
    • StrategyTurn your cloud vision into reality. We assess your IT, craft tailored strategies, and provide actionable recommendations for success.
      • Strategy
      • Cloud Assessment
      • Cloud Advisory
    • TransformationUnlock agility, scalability, and security with our comprehensive transformation services. We handle everything from cloud migration to managing your cloud infrastructure.
      • Transformation
      • Migration Services
      • Managed Infrastructure
        • Dedicated Private Cloud
        • Managed Hosting
        • Azure Operations
        • AWS Operations
        • Azure Virtual Desktop (AVD)
        • Edge Computing
    • ResilienceSafeguard your business with our robust IT resilience solutions. We provide security, compliance, and disaster recovery services to ensure business continuity.
      • Resilience
      • Security
        • Managed Detection & Response
        • Managed Security Awareness
        • Managed Risk
        • Incident Response Retainer
        • Web Application Firewall
        • SIEM
        • Endpoint Protection
        • Penetration Testing
        • Vulnerability Management
      • Compliance
      • Disaster Recovery
  • Services
    • Professional Services
      • Professional Services
      • Cloud Assessment
      • Cloud Advisory
    • Migration Services
    • Managed Infrastructure
      • Managed Infrastructure
      • Dedicated Private Cloud
      • Managed Hosting
      • AWS Operations
      • Azure Operations
      • Azure Virtual Desktop (AVD)
      • Edge Computing
    • Security
      • Security
      • Managed Detection & Response
      • Managed Security Awareness
      • Managed Risk
      • Incident Response Retainer
      • Web Application Firewall
      • SIEM
      • Endpoint Protection
      • Penetration Testing
      • Vulnerability Management
    • Compliance
    • Disaster Recovery
  • Partners
    • AWS
    • Azure
    • Google
    • VMware
  • Industries
    • Financial Services
    • Healthcare
    • Technology
    • Public Sector
  • Insights
    • Blog
    • Resources
    • Events
    • News
  • About
    • Leadership
    • Careers
    • About Carbon60
  • OpsGuru
  • C60 Digital

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 Insights account quota, cloud computing, PowerShell, quota usage, service template, System Center, Virtual Machine Manager, VMM

Related posts

Milliseconds are Money: How Much Performance Matters in the Cloud

January 31, 2012

InfiniBand: The New Standard of Cloud Computing

January 31, 2012

Webinar Replay: Is Your MSP Helping You Enable Innovation?

April 10, 2018

Subscribe to receive Carbon60 news

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

Subscribe
Carbon60
  • Strategy
    • Cloud Assessment
    • Cloud Advisory
  • Transformation
    • Migration Services
    • Managed Infrastructure
      • — Dedicated Private Cloud
      • — Managed Hosting
      • — Azure Operations
      • — AWS Operations
      • — Azure Virtual Desktop
      • — Edge Computing
  • Resilience
    • Security
      • — Managed Detection & Response
      • — Managed Security Awareness
      • — Managed Risk
      • — Incident Response Retainer
      • — Web Application Firewall
      • — SIEM
      • — Endpoint Protection
      • — Penetration Testing
      • — Vulnerability Management
    • Cloud Security & Compliance
    • Disaster Recovery
  • Industries
    • Financial Services
    • Healthcare
    • Public Sector
    • Technology
Follow us on LinkedIn Follow us on YouTube Follow us on YouTube

© Copyright Carbon60 2025

  • 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