SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Downloaden Sie, um offline zu lesen
Azure Service Management API

     A journey ending in billing,
        monitoring and usage
What are we going to learn?
• How Visual Studio deploys under the covers
• How to use tools and scripts to automate parts of
  the deployment
• How to monitor asynchronous operations in a
  deployment
• The fundamentals of how we interact Azure
  beneath all of the libraries and layers of
  abstraction
• A small part of the Service Management API –
  there is much more SO does this interest me
  enough to work on a group Codeplex project?
What can I manage?
•   Hosted services
•   Storage accounts
•   Affinity groups
•   Security (X509v3 certificates)
•   Subscription history
•   Access Control Services
What tools can I use to manage?
• The management portal!
• Windows Azure Powershell CmdLets
• The Azure MMC SnapIn
• Visual Studio.NET
• Third party tools such as those by Neudesic,
  Cerebrata, Paraleap and others
• An RDP Client
• Any device!
What do we mean by Management?
•   Create-Read-Update-Delete (CRUD)
•   Manage transaction security
•   Checking full audit history
•   Locations and “affinity groups”
•   Accessing and managing storage accounts
•   Track asynchronous long running operations
•   Get information about the host operating
•   Managing Access Control Services
Management API details
• RESTful (REpresentational State Transfer)
• Use of OData (ACS Management)
• Use of HTTP and multiple verbs
  – GET, PUT, POST, DELETE
• Endpoints are HTTPS protecting data in transit
• Each request needs a “Management
  Certificate” attached for authentication
  purposes
Management Examples (CRUD)
• Listing hosted services
   – GET http://management.core.windows.net/[subscription
     id]/services/hostedservices HTTP/1.1
• Creating a hosted service
   – POST http://management.core.windows.net/[subscription
     id]/services/hostedservices HTTP/1.1
• Deleting a hosted service
   – DELETE http://management.core.windows.net/[subscription
     id]/services/hostedservices/[SERVICE NAME] HTTP/1.1
• Updating a hosted Service
   – PUT http://management.core.windows.net/[subscription
     id]/services/hostedservices/[SERVICE NAME] HTTP/1.1
What else goes into the request?
•   Header x-ms-version: 2011-10-01
•   Content-type: application/xml
•   X509v3 certificate
•   Either blank request OR
•   XML Document with well known schema
DEMO

Creating and Deleting a Hosted
   Service Programmatically
My Request Message
<?xml version="1.0" encoding="utf-8"?>
<CreateHostedService
xmlns="http://schemas.microsoft.com/windowsazure">
   <ServiceName>lwaugtest1.bad</ServiceName>
   <Label>djE=</Label>
   <Description>this is the first test service for the user
   group</Description>
   <Location>North Europe</Location>
</CreateHostedService>
My Response Exception
HTTP/1.1 400 Bad Request
Content-Length: 194
Content-Type: application/xml; charset=utf-8
Server: Microsoft-HTTPAPI/2.0
x-ms-request-id: 3badf9cdddc540cd922993fa01598297
Date: Mon, 05 Dec 2011 18:16:45 GMT

<Error xmlns="http://schemas.microsoft.com/windowsazure"
xmlns:i="http://www.w3.org/2001/XMLSchema-
instance"><Code>BadRequest</Code><Message>The hosted
service name is invalid.</Message></Error>
DEMO

Creating and Deleting a Hosted
   Service with Powershell
Steps to Using Powershell CmdLets to
                   Deploy
•   Generate a certificate with the following command:
     – makecert -r -pe -n "CN=Richard's New Cert" -a sha1 -len 2048 -ss My "C:richard2.cer“
•   Add the certificate through the management portal
•   Open powershell after CmdLets are installed and enter:
     – Add-PSSnapin AzureManagementToolsSnapIn
•   Create new Blob container via Storage Services API
•   Upload .cspkg to Blob Storage
•   Enter the following into Powershell:
     – New-Deployment -serviceName lwaugtestone -subscriptionId edd1c493-f3f5-42d0-ba03-
       7bf1eb2cfcaa -certificate (get-item
       cert:CurrentUserMY7A67E9C2225C4930CBFCEF869C993EB560A3B1A4) -slot production –
       package http://lwaugbe.blob.core.windows.net/packages/HelloCloud.cspkg -configuration
       "C:ProjectsTech ProjectsLondon Windows Azure User
       GroupHelloCloudHelloCloudbinReleaseapp.publishServiceConfiguration.Cloud.cscfg" -
       label lwaugtestone
•   Followed by:
     – Set-DeploymentStatus -subscriptionId edd1c493-f3f5-42d0-ba03-7bf1eb2cfcaa -certificate
       (get-item cert:CurrentUserMY7A67E9C2225C4930CBFCEF869C993EB560A3B1A4) -
       ServiceName lwaugtestone -Status Running -slot Production
DEMO

Using Fiddler to check on a
       Deployment
Steps to Using Fiddler and Azure
• Use Request Builder
• Add certificate file to C:UsersxxxMy
  DocsFiddler2ClientCertificate.cer
• Add the ms-version-x header
• Request the following:
  – GET https://management.core.windows.net/edd1c493-f3f5-
    42d0-ba03-7bf1eb2cfcaa/operations/[token] HTTP/1.1
• Look for an InProgress or Succeeded response
Summary
• Service Management is web friendly, open, platform
  independent and standardised
• There are a variety of tools and APIs available to manage
  services
• RESTful services mean you can manage from ANY client
  application
• Ability to create complex continuous integration testing
  scenarios and deployments with staging and production
  environments
• Ability to manage multiple subscriptions simultaneously
• No real constraint on the activities that can be
  accomplished
• All transactions are fully secure
http://azuresm.codeplex.com
  Azure Service Manager is an enterprise application
 which provides an subscriber-based API through WCF
   to allow clients to collect information on multiple
  Azure subscriptions, including hosted services, SQL
 Azure and storage services. It provides service, usage
                     and billing data.
Azure Service Manager

Weitere ähnliche Inhalte

Was ist angesagt?

Best practices with SharePoint 2010 sandboxed solutions
Best practices with SharePoint 2010 sandboxed solutionsBest practices with SharePoint 2010 sandboxed solutions
Best practices with SharePoint 2010 sandboxed solutionsToni Frankola
 
System Center & SharePoint on prem
System Center & SharePoint on premSystem Center & SharePoint on prem
System Center & SharePoint on premMatija Blagus
 
Nanoservices and Microservices with Java
Nanoservices and Microservices with JavaNanoservices and Microservices with Java
Nanoservices and Microservices with JavaEberhard Wolff
 
Mostafa Elzoghbi: SharePoint 2010 Sandbox Solutions Best Practices
Mostafa Elzoghbi: SharePoint 2010 Sandbox Solutions Best PracticesMostafa Elzoghbi: SharePoint 2010 Sandbox Solutions Best Practices
Mostafa Elzoghbi: SharePoint 2010 Sandbox Solutions Best PracticesSharePoint Saturday NY
 
End user-experience monitoring
End user-experience monitoring End user-experience monitoring
End user-experience monitoring Site24x7
 
Mobile Services for Windows Azure
Mobile Services for Windows AzureMobile Services for Windows Azure
Mobile Services for Windows AzureAbhishek Sur
 
Selenium WebDriver
Selenium WebDriverSelenium WebDriver
Selenium WebDriverSachin-QA
 
Serverless Computing With Azure Functions
Serverless Computing With Azure FunctionsServerless Computing With Azure Functions
Serverless Computing With Azure FunctionsJaliya Udagedara
 
NServiceBus introduction
NServiceBus introductionNServiceBus introduction
NServiceBus introductionBoris Tveritnev
 
Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?
Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?
Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?Eberhard Wolff
 
Data Architecture not Just for Microservices
Data Architecture not Just for MicroservicesData Architecture not Just for Microservices
Data Architecture not Just for MicroservicesEberhard Wolff
 
Deployment - Done Right!
Deployment - Done Right!Deployment - Done Right!
Deployment - Done Right!Eberhard Wolff
 
Authentication in microservice systems - fsto 2017
Authentication in microservice systems - fsto 2017Authentication in microservice systems - fsto 2017
Authentication in microservice systems - fsto 2017Dejan Glozic
 
BizTalk Server 2013 in Windows Azure IaaS
BizTalk Server 2013 in Windows Azure IaaSBizTalk Server 2013 in Windows Azure IaaS
BizTalk Server 2013 in Windows Azure IaaSBizTalk360
 
A deep dive into supporting xen desktop
A deep dive into supporting xen desktopA deep dive into supporting xen desktop
A deep dive into supporting xen desktopsolarisyougood
 
WSO2 Mashups and BPM
WSO2 Mashups and BPMWSO2 Mashups and BPM
WSO2 Mashups and BPMWSO2
 

Was ist angesagt? (20)

Best practices with SharePoint 2010 sandboxed solutions
Best practices with SharePoint 2010 sandboxed solutionsBest practices with SharePoint 2010 sandboxed solutions
Best practices with SharePoint 2010 sandboxed solutions
 
System Center & SharePoint on prem
System Center & SharePoint on premSystem Center & SharePoint on prem
System Center & SharePoint on prem
 
Nanoservices and Microservices with Java
Nanoservices and Microservices with JavaNanoservices and Microservices with Java
Nanoservices and Microservices with Java
 
Mostafa Elzoghbi: SharePoint 2010 Sandbox Solutions Best Practices
Mostafa Elzoghbi: SharePoint 2010 Sandbox Solutions Best PracticesMostafa Elzoghbi: SharePoint 2010 Sandbox Solutions Best Practices
Mostafa Elzoghbi: SharePoint 2010 Sandbox Solutions Best Practices
 
End user-experience monitoring
End user-experience monitoring End user-experience monitoring
End user-experience monitoring
 
Mobile Services for Windows Azure
Mobile Services for Windows AzureMobile Services for Windows Azure
Mobile Services for Windows Azure
 
Selenium WebDriver
Selenium WebDriverSelenium WebDriver
Selenium WebDriver
 
Serverless Computing With Azure Functions
Serverless Computing With Azure FunctionsServerless Computing With Azure Functions
Serverless Computing With Azure Functions
 
K8s rbac-sso
K8s rbac-ssoK8s rbac-sso
K8s rbac-sso
 
NServiceBus introduction
NServiceBus introductionNServiceBus introduction
NServiceBus introduction
 
Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?
Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?
Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?
 
Data Architecture not Just for Microservices
Data Architecture not Just for MicroservicesData Architecture not Just for Microservices
Data Architecture not Just for Microservices
 
J j-j-jea power
J j-j-jea powerJ j-j-jea power
J j-j-jea power
 
Deployment - Done Right!
Deployment - Done Right!Deployment - Done Right!
Deployment - Done Right!
 
Authentication in microservice systems - fsto 2017
Authentication in microservice systems - fsto 2017Authentication in microservice systems - fsto 2017
Authentication in microservice systems - fsto 2017
 
BizTalk Server 2013 in Windows Azure IaaS
BizTalk Server 2013 in Windows Azure IaaSBizTalk Server 2013 in Windows Azure IaaS
BizTalk Server 2013 in Windows Azure IaaS
 
Understanding iis part1
Understanding iis part1Understanding iis part1
Understanding iis part1
 
A deep dive into supporting xen desktop
A deep dive into supporting xen desktopA deep dive into supporting xen desktop
A deep dive into supporting xen desktop
 
Jbpm6
Jbpm6Jbpm6
Jbpm6
 
WSO2 Mashups and BPM
WSO2 Mashups and BPMWSO2 Mashups and BPM
WSO2 Mashups and BPM
 

Ähnlich wie Service management Dec 11

Citirx Day 2013: Citrix Enterprise Mobility
Citirx Day 2013: Citrix Enterprise MobilityCitirx Day 2013: Citrix Enterprise Mobility
Citirx Day 2013: Citrix Enterprise MobilityDigicomp Academy AG
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementSharkrit JOBBO
 
Enter The Matrix Securing Azure’s Assets
Enter The Matrix Securing Azure’s AssetsEnter The Matrix Securing Azure’s Assets
Enter The Matrix Securing Azure’s AssetsBizTalk360
 
Što danas zamjenjuje Small Business Server?
Što danas zamjenjuje Small Business Server?Što danas zamjenjuje Small Business Server?
Što danas zamjenjuje Small Business Server?Tomislav Lulic
 
Workflow Manager - a technical overview (Sam Vanhoutte)
Workflow Manager - a technical overview (Sam Vanhoutte)Workflow Manager - a technical overview (Sam Vanhoutte)
Workflow Manager - a technical overview (Sam Vanhoutte)Sam Vanhoutte
 
20140211 BTUG.be - Workflow Manager
20140211 BTUG.be - Workflow Manager20140211 BTUG.be - Workflow Manager
20140211 BTUG.be - Workflow ManagerBTUGbe
 
Integration Testing as Validation and Monitoring
 Integration Testing as Validation and Monitoring Integration Testing as Validation and Monitoring
Integration Testing as Validation and MonitoringMelissa Benua
 
Scoping for BMC Discovery (ADDM) Deployment by Traversys Limited
Scoping for BMC Discovery (ADDM) Deployment by Traversys LimitedScoping for BMC Discovery (ADDM) Deployment by Traversys Limited
Scoping for BMC Discovery (ADDM) Deployment by Traversys LimitedWes Moskal-Fitzpatrick
 
Powering Remote Developers with Amazon Workspaces
Powering Remote Developers with Amazon WorkspacesPowering Remote Developers with Amazon Workspaces
Powering Remote Developers with Amazon WorkspacesAmazon Web Services
 
V mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kitV mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kitsolarisyougood
 
vCenter Server 5.5 Single Sign-On VMDir deep dive
vCenter Server 5.5 Single Sign-On VMDir deep divevCenter Server 5.5 Single Sign-On VMDir deep dive
vCenter Server 5.5 Single Sign-On VMDir deep divefbuechsel
 
10 ways to trigger runbooks from Orchestrator
10 ways to trigger runbooks from Orchestrator10 ways to trigger runbooks from Orchestrator
10 ways to trigger runbooks from OrchestratorFredrik Knalstad
 
Fredrik Knalstad - 10 ways to trigger orchestrator runbooks in the it jungle
Fredrik Knalstad - 10 ways to trigger orchestrator runbooks in the it jungleFredrik Knalstad - 10 ways to trigger orchestrator runbooks in the it jungle
Fredrik Knalstad - 10 ways to trigger orchestrator runbooks in the it jungleNordic Infrastructure Conference
 
Fredrik knalstad 10 ways to trigger orchestrator runbooks in the it jungle
Fredrik knalstad   10 ways to trigger orchestrator runbooks in the it jungleFredrik knalstad   10 ways to trigger orchestrator runbooks in the it jungle
Fredrik knalstad 10 ways to trigger orchestrator runbooks in the it junglePer Riis
 
Azure from scratch part 2 By Girish Kalamati
Azure from scratch part 2 By Girish KalamatiAzure from scratch part 2 By Girish Kalamati
Azure from scratch part 2 By Girish KalamatiGirish Kalamati
 
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...CodeMill digital skills
 
AzureConf 2014 - Azure hybrid connections (Sam Vanhoutte)
AzureConf 2014 - Azure hybrid connections (Sam Vanhoutte)AzureConf 2014 - Azure hybrid connections (Sam Vanhoutte)
AzureConf 2014 - Azure hybrid connections (Sam Vanhoutte)Sam Vanhoutte
 

Ähnlich wie Service management Dec 11 (20)

Citirx Day 2013: Citrix Enterprise Mobility
Citirx Day 2013: Citrix Enterprise MobilityCitirx Day 2013: Citrix Enterprise Mobility
Citirx Day 2013: Citrix Enterprise Mobility
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server Management
 
Enter The Matrix Securing Azure’s Assets
Enter The Matrix Securing Azure’s AssetsEnter The Matrix Securing Azure’s Assets
Enter The Matrix Securing Azure’s Assets
 
SCORCH: Tying it All Together
SCORCH: Tying it All TogetherSCORCH: Tying it All Together
SCORCH: Tying it All Together
 
Što danas zamjenjuje Small Business Server?
Što danas zamjenjuje Small Business Server?Što danas zamjenjuje Small Business Server?
Što danas zamjenjuje Small Business Server?
 
Workflow Manager - a technical overview (Sam Vanhoutte)
Workflow Manager - a technical overview (Sam Vanhoutte)Workflow Manager - a technical overview (Sam Vanhoutte)
Workflow Manager - a technical overview (Sam Vanhoutte)
 
20140211 BTUG.be - Workflow Manager
20140211 BTUG.be - Workflow Manager20140211 BTUG.be - Workflow Manager
20140211 BTUG.be - Workflow Manager
 
Integration Testing as Validation and Monitoring
 Integration Testing as Validation and Monitoring Integration Testing as Validation and Monitoring
Integration Testing as Validation and Monitoring
 
Scoping for BMC Discovery (ADDM) Deployment by Traversys Limited
Scoping for BMC Discovery (ADDM) Deployment by Traversys LimitedScoping for BMC Discovery (ADDM) Deployment by Traversys Limited
Scoping for BMC Discovery (ADDM) Deployment by Traversys Limited
 
Powering Remote Developers with Amazon Workspaces
Powering Remote Developers with Amazon WorkspacesPowering Remote Developers with Amazon Workspaces
Powering Remote Developers with Amazon Workspaces
 
V mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kitV mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kit
 
vCenter Server 5.5 Single Sign-On VMDir deep dive
vCenter Server 5.5 Single Sign-On VMDir deep divevCenter Server 5.5 Single Sign-On VMDir deep dive
vCenter Server 5.5 Single Sign-On VMDir deep dive
 
10 ways to trigger runbooks from Orchestrator
10 ways to trigger runbooks from Orchestrator10 ways to trigger runbooks from Orchestrator
10 ways to trigger runbooks from Orchestrator
 
Fredrik Knalstad - 10 ways to trigger orchestrator runbooks in the it jungle
Fredrik Knalstad - 10 ways to trigger orchestrator runbooks in the it jungleFredrik Knalstad - 10 ways to trigger orchestrator runbooks in the it jungle
Fredrik Knalstad - 10 ways to trigger orchestrator runbooks in the it jungle
 
Fredrik knalstad 10 ways to trigger orchestrator runbooks in the it jungle
Fredrik knalstad   10 ways to trigger orchestrator runbooks in the it jungleFredrik knalstad   10 ways to trigger orchestrator runbooks in the it jungle
Fredrik knalstad 10 ways to trigger orchestrator runbooks in the it jungle
 
Azure from scratch part 2 By Girish Kalamati
Azure from scratch part 2 By Girish KalamatiAzure from scratch part 2 By Girish Kalamati
Azure from scratch part 2 By Girish Kalamati
 
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
 
AzureConf 2014 - Azure hybrid connections (Sam Vanhoutte)
AzureConf 2014 - Azure hybrid connections (Sam Vanhoutte)AzureConf 2014 - Azure hybrid connections (Sam Vanhoutte)
AzureConf 2014 - Azure hybrid connections (Sam Vanhoutte)
 
Cloud APIs Overview Tucker
Cloud APIs Overview   TuckerCloud APIs Overview   Tucker
Cloud APIs Overview Tucker
 
Chinnasamy Manickam
Chinnasamy ManickamChinnasamy Manickam
Chinnasamy Manickam
 

Mehr von Richard Conway

UK Azure User Group - Blazor and Azure (Tim Ebenezer)
UK Azure User Group - Blazor and Azure (Tim Ebenezer)UK Azure User Group - Blazor and Azure (Tim Ebenezer)
UK Azure User Group - Blazor and Azure (Tim Ebenezer)Richard Conway
 
Mastering Azure Monitor
Mastering Azure MonitorMastering Azure Monitor
Mastering Azure MonitorRichard Conway
 
Azure synapse analytics overview elasta cloud3
Azure synapse analytics overview   elasta cloud3Azure synapse analytics overview   elasta cloud3
Azure synapse analytics overview elasta cloud3Richard Conway
 
Getting the most from Windows Virtual Desktop in Azure
Getting the most from Windows Virtual Desktop in AzureGetting the most from Windows Virtual Desktop in Azure
Getting the most from Windows Virtual Desktop in AzureRichard Conway
 
Building a Citizen IoT Network on Microsoft Azure
Building a Citizen IoT Network on Microsoft AzureBuilding a Citizen IoT Network on Microsoft Azure
Building a Citizen IoT Network on Microsoft AzureRichard Conway
 
Building a citizen sensor network in windows azure
Building a citizen sensor network in windows azureBuilding a citizen sensor network in windows azure
Building a citizen sensor network in windows azureRichard Conway
 
Building your own windows azure portal
Building your own windows azure portalBuilding your own windows azure portal
Building your own windows azure portalRichard Conway
 
3. hd insight on windows azure
3. hd insight on windows azure3. hd insight on windows azure
3. hd insight on windows azureRichard Conway
 
Windows azure mobile services
Windows azure mobile servicesWindows azure mobile services
Windows azure mobile servicesRichard Conway
 
Introduction to Windows Azure
Introduction to Windows AzureIntroduction to Windows Azure
Introduction to Windows AzureRichard Conway
 
Caching with windows azure
Caching with windows azureCaching with windows azure
Caching with windows azureRichard Conway
 

Mehr von Richard Conway (12)

UK Azure User Group - Blazor and Azure (Tim Ebenezer)
UK Azure User Group - Blazor and Azure (Tim Ebenezer)UK Azure User Group - Blazor and Azure (Tim Ebenezer)
UK Azure User Group - Blazor and Azure (Tim Ebenezer)
 
Mastering Azure Monitor
Mastering Azure MonitorMastering Azure Monitor
Mastering Azure Monitor
 
Azure synapse analytics overview elasta cloud3
Azure synapse analytics overview   elasta cloud3Azure synapse analytics overview   elasta cloud3
Azure synapse analytics overview elasta cloud3
 
Getting the most from Windows Virtual Desktop in Azure
Getting the most from Windows Virtual Desktop in AzureGetting the most from Windows Virtual Desktop in Azure
Getting the most from Windows Virtual Desktop in Azure
 
Building a Citizen IoT Network on Microsoft Azure
Building a Citizen IoT Network on Microsoft AzureBuilding a Citizen IoT Network on Microsoft Azure
Building a Citizen IoT Network on Microsoft Azure
 
UK Azure Users Group
UK Azure Users Group UK Azure Users Group
UK Azure Users Group
 
Building a citizen sensor network in windows azure
Building a citizen sensor network in windows azureBuilding a citizen sensor network in windows azure
Building a citizen sensor network in windows azure
 
Building your own windows azure portal
Building your own windows azure portalBuilding your own windows azure portal
Building your own windows azure portal
 
3. hd insight on windows azure
3. hd insight on windows azure3. hd insight on windows azure
3. hd insight on windows azure
 
Windows azure mobile services
Windows azure mobile servicesWindows azure mobile services
Windows azure mobile services
 
Introduction to Windows Azure
Introduction to Windows AzureIntroduction to Windows Azure
Introduction to Windows Azure
 
Caching with windows azure
Caching with windows azureCaching with windows azure
Caching with windows azure
 

Kürzlich hochgeladen

Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationIES VE
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAshyamraj55
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding TeamAdam Moalla
 
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...UbiTrack UK
 
Building AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxBuilding AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxUdaiappa Ramachandran
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6DianaGray10
 
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfIaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfDaniel Santiago Silva Capera
 
Linked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesLinked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesDavid Newbury
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8DianaGray10
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfDianaGray10
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration WorkflowsIgniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration WorkflowsSafe Software
 
Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdfPedro Manuel
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDELiveplex
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Will Schroeder
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...DianaGray10
 
AI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarAI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarPrecisely
 
NIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopNIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopBachir Benyammi
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URLRuncy Oommen
 
Machine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdfMachine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdfAijun Zhang
 

Kürzlich hochgeladen (20)

Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve DecarbonizationUsing IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
Using IESVE for Loads, Sizing and Heat Pump Modeling to Achieve Decarbonization
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team
 
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
 
Building AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxBuilding AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptx
 
UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6
 
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfIaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
 
Linked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond OntologiesLinked Data in Production: Moving Beyond Ontologies
Linked Data in Production: Moving Beyond Ontologies
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8
 
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdfUiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
UiPath Solutions Management Preview - Northern CA Chapter - March 22.pdf
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration WorkflowsIgniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
 
20230104 - machine vision
20230104 - machine vision20230104 - machine vision
20230104 - machine vision
 
Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdf
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
 
AI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarAI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity Webinar
 
NIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 WorkshopNIST Cybersecurity Framework (CSF) 2.0 Workshop
NIST Cybersecurity Framework (CSF) 2.0 Workshop
 
Designing A Time bound resource download URL
Designing A Time bound resource download URLDesigning A Time bound resource download URL
Designing A Time bound resource download URL
 
Machine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdfMachine Learning Model Validation (Aijun Zhang 2024).pdf
Machine Learning Model Validation (Aijun Zhang 2024).pdf
 

Service management Dec 11

  • 1. Azure Service Management API A journey ending in billing, monitoring and usage
  • 2. What are we going to learn? • How Visual Studio deploys under the covers • How to use tools and scripts to automate parts of the deployment • How to monitor asynchronous operations in a deployment • The fundamentals of how we interact Azure beneath all of the libraries and layers of abstraction • A small part of the Service Management API – there is much more SO does this interest me enough to work on a group Codeplex project?
  • 3. What can I manage? • Hosted services • Storage accounts • Affinity groups • Security (X509v3 certificates) • Subscription history • Access Control Services
  • 4. What tools can I use to manage? • The management portal! • Windows Azure Powershell CmdLets • The Azure MMC SnapIn • Visual Studio.NET • Third party tools such as those by Neudesic, Cerebrata, Paraleap and others • An RDP Client • Any device!
  • 5. What do we mean by Management? • Create-Read-Update-Delete (CRUD) • Manage transaction security • Checking full audit history • Locations and “affinity groups” • Accessing and managing storage accounts • Track asynchronous long running operations • Get information about the host operating • Managing Access Control Services
  • 6. Management API details • RESTful (REpresentational State Transfer) • Use of OData (ACS Management) • Use of HTTP and multiple verbs – GET, PUT, POST, DELETE • Endpoints are HTTPS protecting data in transit • Each request needs a “Management Certificate” attached for authentication purposes
  • 7. Management Examples (CRUD) • Listing hosted services – GET http://management.core.windows.net/[subscription id]/services/hostedservices HTTP/1.1 • Creating a hosted service – POST http://management.core.windows.net/[subscription id]/services/hostedservices HTTP/1.1 • Deleting a hosted service – DELETE http://management.core.windows.net/[subscription id]/services/hostedservices/[SERVICE NAME] HTTP/1.1 • Updating a hosted Service – PUT http://management.core.windows.net/[subscription id]/services/hostedservices/[SERVICE NAME] HTTP/1.1
  • 8. What else goes into the request? • Header x-ms-version: 2011-10-01 • Content-type: application/xml • X509v3 certificate • Either blank request OR • XML Document with well known schema
  • 9. DEMO Creating and Deleting a Hosted Service Programmatically
  • 10. My Request Message <?xml version="1.0" encoding="utf-8"?> <CreateHostedService xmlns="http://schemas.microsoft.com/windowsazure"> <ServiceName>lwaugtest1.bad</ServiceName> <Label>djE=</Label> <Description>this is the first test service for the user group</Description> <Location>North Europe</Location> </CreateHostedService>
  • 11. My Response Exception HTTP/1.1 400 Bad Request Content-Length: 194 Content-Type: application/xml; charset=utf-8 Server: Microsoft-HTTPAPI/2.0 x-ms-request-id: 3badf9cdddc540cd922993fa01598297 Date: Mon, 05 Dec 2011 18:16:45 GMT <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema- instance"><Code>BadRequest</Code><Message>The hosted service name is invalid.</Message></Error>
  • 12. DEMO Creating and Deleting a Hosted Service with Powershell
  • 13. Steps to Using Powershell CmdLets to Deploy • Generate a certificate with the following command: – makecert -r -pe -n "CN=Richard's New Cert" -a sha1 -len 2048 -ss My "C:richard2.cer“ • Add the certificate through the management portal • Open powershell after CmdLets are installed and enter: – Add-PSSnapin AzureManagementToolsSnapIn • Create new Blob container via Storage Services API • Upload .cspkg to Blob Storage • Enter the following into Powershell: – New-Deployment -serviceName lwaugtestone -subscriptionId edd1c493-f3f5-42d0-ba03- 7bf1eb2cfcaa -certificate (get-item cert:CurrentUserMY7A67E9C2225C4930CBFCEF869C993EB560A3B1A4) -slot production – package http://lwaugbe.blob.core.windows.net/packages/HelloCloud.cspkg -configuration "C:ProjectsTech ProjectsLondon Windows Azure User GroupHelloCloudHelloCloudbinReleaseapp.publishServiceConfiguration.Cloud.cscfg" - label lwaugtestone • Followed by: – Set-DeploymentStatus -subscriptionId edd1c493-f3f5-42d0-ba03-7bf1eb2cfcaa -certificate (get-item cert:CurrentUserMY7A67E9C2225C4930CBFCEF869C993EB560A3B1A4) - ServiceName lwaugtestone -Status Running -slot Production
  • 14. DEMO Using Fiddler to check on a Deployment
  • 15. Steps to Using Fiddler and Azure • Use Request Builder • Add certificate file to C:UsersxxxMy DocsFiddler2ClientCertificate.cer • Add the ms-version-x header • Request the following: – GET https://management.core.windows.net/edd1c493-f3f5- 42d0-ba03-7bf1eb2cfcaa/operations/[token] HTTP/1.1 • Look for an InProgress or Succeeded response
  • 16. Summary • Service Management is web friendly, open, platform independent and standardised • There are a variety of tools and APIs available to manage services • RESTful services mean you can manage from ANY client application • Ability to create complex continuous integration testing scenarios and deployments with staging and production environments • Ability to manage multiple subscriptions simultaneously • No real constraint on the activities that can be accomplished • All transactions are fully secure
  • 17. http://azuresm.codeplex.com Azure Service Manager is an enterprise application which provides an subscriber-based API through WCF to allow clients to collect information on multiple Azure subscriptions, including hosted services, SQL Azure and storage services. It provides service, usage and billing data.