• Skip to primary navigation
  • Skip to main content
Carbon60

Carbon60

The Managed Cloud Difference

  • Show Search
  • Log In
  • Contact Us
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
        • Hybrid Cloud
        • Dedicated Private Cloud
        • Multi-Tenant Private Cloud
        • Azure Operations
        • AWS Operations
        • Azure Virtual Desktop
        • 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
        • MFA
      • Compliance
      • Disaster Recovery
  • Services
    • Professional Services
      • Professional Services
      • Cloud Assessment
      • Cloud Advisory
    • Migration Services
    • Managed Infrastructure
      • Managed Infrastructure
      • Hybrid Cloud
      • Dedicated Private Cloud
      • Multi-Tenant Private Cloud
      • Azure Operations
      • AWS Operations
      • Azure Virtual Desktop
      • 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
      • MFA
    • Compliance
    • Disaster Recovery
  • Partners
    • AWS
    • Microsoft Azure
    • Google Cloud
    • VMware
  • Industries
    • Financial Services
    • Accounting
    • Healthcare
    • Marketing
    • Technology
    • Legal
    • Public Sector
    • Utilities
    • Oil & Gas
    • Transportation/Logistics
  • Insights
    • Blog
    • Resources
    • Events
    • News
  • About
    • Leadership
    • Careers
    • About Carbon60
  • Contact Us

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

Accelerating Web Sites and Applications: a Cloud Caching Primer

January 31, 2012

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
    • Edge Cloud
    • Backup
    • DR
  • Managed Public Cloud
    • Azure Managed Operations
    • AWS Managed Operations
    • VMware on AWS
    • Azure Virtual Desktop
    • Microsoft 365
  • Industries
    • Financial Services
    • Healthcare
    • Public Sector
    • Technology
  • Migration Services
    • Cloud Assessment
    • Cloud Migration
    • Cloud Advisory
Follow us on LinkedIn Follow us on Twitter Follow us on YouTube Follow us on YouTube

© Copyright Carbon60 2025

  • Privacy Policy
  • Terms & Conditions
  • 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