Microsoft Designer expands preview with new AI design features

Microsoft Designer expands preview with new AI design features

This article is contributed. See the original author and article here.

Today, we’re excited to announce we’re removing the waitlist and adding an expanded set of features to the Microsoft Designer preview. With new AI technology at the core, Microsoft Designer simplifies the creative journey by helping you get started quickly, augment creative workflows, and overcome creative roadblocks.

The post Microsoft Designer expands preview with new AI design features appeared first on Microsoft 365 Blog.

Brought to you by Dr. Ware, Microsoft Office 365 Silver Partner, Charleston SC.

Azure Database for MySQL – Flexible Server failover across regions without connection string changes

Azure Database for MySQL – Flexible Server failover across regions without connection string changes

This article is contributed. See the original author and article here.

With Azure Database for MySQL – Flexible Server, you can configure high availability with automatic failover within a region. The high availability solution is designed to ensure that committed data is never lost because of failures and that the database won’t be a single point of failure in your software architecture.


 


Note: For more information, see Azure Database for MySQL – Flexible Server – High Availability Concepts.


 


Within a region, there are three potential options to consider, as shown in the following table:


 






















Option (Mode)



Committed SLA



Non-HA



99.9%



Same Zone HA



99.95%



Zone Redundant HA (ZHRA)*



99.99%



*ZRHA is only available in regions that support availability zones. For the latest list of Azure regions, in the Azure Database for MySQL documentation, see Azure regions.


 


In addition to the ‘in-region’ modes listed above, there’s also an option to design for protection of database services across Azure regions. One common pattern we’ve seen with several customers is the need for maximum in-region availability along with a cross region disaster recovery capability. This manifests itself as ZRHA in the primary region and a Read Replica in another region, preferably the paired region, as illustrated in the following diagram:


 


Azure Database for MySQL - Flexible Server1 .PNG


 


With ZRHA, failover between the Primary and Standby servers is automatically managed by the Azure platform, and importantly, the service endpoint name does not change. On the other hand, the manual process associated with a regional failover does introduce a change to the service endpoint name. Some customers have expressed an interest in being able to perform a regional failover without later having to update the associated application connection strings.


 


In this post, I’ll explain how to address this requirement and provide a regional failover that requires no application connection string changes.


 


For our purposes, we’ll use the following simplified architecture diagram as a starting point:


 


Azure Database for MySQL - Flexible Server2a.png


 


In this illustration, there’s a single Primary server located in Australia East and a Replica is hosted in Australia Southeast. With this setup, it’s important to understand some implementation details, especially around networking and guidance:



  • Each server is deployed using the Private Access option.

  • Each server is registered to the same Azure Private DNS Zone, in this case, myflex.private.mysql.database.azure.com.

  • Each server is on separate a VNet, and the two VNets are peered with each other.

  • Each VNet is linked to the Private DNS zone.


The server name, IP address, server type, and region for the two servers I created are shown in the following table:


 
























Server / Service name



IP address



Role



Region



primary01.mysql.database.azure.com



10.0.2.4



Primary



Australia East



replica01.mysql.database.azure.com



192.168.100.4



Replica



Australia Southeast



 


Note: For more information about Azure Database for MySQL connectivity and networking, see the article Connectivity and networking concepts for Azure Database for MySQL – Flexible Server.


 


When configured properly, the Private DNS Zone (should appear as shown in the following image:


 


bmckerrMSFT_2-1682460495762.png


 


It’s possible to resolve these DNS names from within either VNet. For example, the Linux shell shows the following detail for a Linux VM, which happens to be on the Australia East VNet, and it can resolve the both the service name and the private DNS zone name of each of the servers.


 


Note: This Linux VM is being used simply to host the ‘nslookup’ and ‘mysql’ binaries that we are using in this article:


 


bmckerrMSFT_3-1682460495767.png


 


In addition to name resolution and courtesy of our VNet peering, I can also connect to both databases using either the service name or the private DNS name. Running the command-line application ‘mysql’, I’ll connect to the primary server using both DNS names as shown in the following image:


 


bmckerrMSFT_4-1682460495792.png


 


And next, I’ll use ‘mysql’ again to connect to both DNS names for the replica server:


 


bmckerrMSFT_5-1682460495813.png


 


To recap, we have set up a primary server in one region and replica service in another region using the Private Access networking, standard VNET peering, and Private DNS Zone features. I then verified that I could connect to both databases using the service name, or the name allocated by the Private DNS zone. The remaining question, however, is how to failover to the replica database, for example in a DR drill, and allow my application to connect to the promoted replica without making any changes to the application configuration? The answer, it turns out, is pretty simple…


 


In addition to typical DNS record types of ‘A’ Address and ‘PTR’ Pointer, ‘CNAME’ is another useful record type that I can use as an “alias” to effectively point to another DNS entry. Next, I’ll demonstrate how to configure a ‘CNAME’ record to point to either of the databases in our set up.


 


For this example, I’ll create a CNAME record with value ‘prod’ that points at the ‘A’ record for the Primary server. Inside the Private DNS Zone you can add a new record by choosing ‘+ Record Set’. Then you can add a CNAME record like so:


 


bmckerrMSFT_6-1682460495816.png


 


While the default TTL is 1 hour, I’ve reduced this to 30 seconds to limit DNS clients and applications from caching an answer for too long, which can have a significant impart during or after a failover. After I’ve added the CNAME record, the DNS zone looks like this:


 


bmckerrMSFT_7-1682460495821.png


 


Notice that the new ‘prod’ name points to the ‘A’ record for the primary server.


 


Now, I’ll verify that I can use the CNAME record to connect to the primary database:


 


bmckerrMSFT_8-1682460495833.png


 


Cool! That’s just DNS doing its thing with the CNAME record type.


 


It is also possible to edit the CNAME DNS record to point it to the replica:


 


bmckerrMSFT_9-1682460495838.png


 


After saving the updated CNAME, when I connect to ‘prod’, it is now connecting to the replica, which is in READ-ONLY mode. I can verify this by trying a write operation, such as creating a table:


 


bmckerrMSFT_10-1682460495849.png


 


Sure enough, the CNAME ‘prod’ now points to the replica, as expected.


 


Given what I’ve shown so far, it’s clear the using the flexibility of Azure Private DNS and CNAME records is ideal for this use case.


 


The last step in this process is to perform the failover and complete the testing.


 


In the Azure portal, navigate to the Replication blade of either the Replica server or the Standby server, and then ‘Promote’ the Replica:


 


bmckerrMSFT_11-1682460495852.png


 


After selecting Promote, the following window appears:


 


bmckerrMSFT_12-1682460495859.png


 


When the newly promoted Replica server is available, I want to verify two things, that the:



  • CNAME record points to the Replica (now Primary)

  • Database is writeable


 


bmckerrMSFT_13-1682460495889.png


 


From an application perspective (the application is the mysql client in this article), we haven’t had to make any changes to connect to our database regardless of which region is hosting the workload. This method can be easily integrated within DR procedures or failover testing.  Making use of the Azure CLI to semi-automate these changes is also possible and could possibly reduce the likelihood of human errors associated with changing DNS records. However, DNS changes are, in general, less risky than making application configuration changes.


 


If you have any feedback or questions about the information provided above, please leave a comment below or email us at AskAzureDBforMySQL@service.microsoft.com. Thank you!

Microsoft Designer expands preview with new AI design features

From Copilot in Microsoft Viva to the new Intune Suite—here’s what’s new in Microsoft 365

This article is contributed. See the original author and article here.

Discover the latest in Microsoft 365, including Copilot in Microsoft Viva, Microsoft Viva Glint, Windows 365 Frontline, and Microsoft Intune Suite.

The post From Copilot in Microsoft Viva to the new Intune Suite—here’s what’s new in Microsoft 365 appeared first on Microsoft 365 Blog.

Brought to you by Dr. Ware, Microsoft Office 365 Silver Partner, Charleston SC.

What’s new in SynapseML v0.11

What’s new in SynapseML v0.11

This article is contributed. See the original author and article here.

Announcing SynapseML v0.11. The new version contains many new features to help you build scalable machine learning pipelines.Announcing SynapseML v0.11. The new version contains many new features to help you build scalable machine learning pipelines.


 


 


We are pleased to announce SynapseML v0.11, a new version of our open-source distributed machine learning library that simplifies and accelerates the development of scalable AI. In this release, we are excited to introduce many new features from the past year of developments well as many bug fixes and improvements. Though this post will give a high-level overview of the most salient new additions, curious readers can check out the full release notes for all of the new additions.


 


OpenAI Language Models and Embeddings


A new release wouldn’t be complete without joining the large language model (LLM) hype train and SynapseML v0.11 features a variety of new features that make large-scale LLM usage simple and easy. In particular, SynapseML v0.11 introduces three new APIs for working with foundation models: `OpenAIPrompt`, ` OpenAIEmbedding`, and `OpenAIChatCompletion`. The `OpenAIPrompt` API makes it easy to construct complex LLM prompts from columns of your dataframe. Here’s a quick example of translating a dataframe column called “Description” into emojis.


 

from synapse.ml.cognitive.openai import OpenAIPrompt

emoji_template = """
  Translate the following into emojis
  Word: {Description}
  Emoji: """

results = (OpenAIPrompt()
    .setPromptTemplate(emoji_template)
    .setErrorCol("error")
    .setOutputCol("Emoji")
    .transform(inputs))

 


 


This code will automatically look for a database column called “Description” and prompt your LLM (ChatGPT, GPT-3, GPT-4) with the created prompts. Our new OpenAI embedding classes make it easy to embed large tables of sentences quickly and easily from your Apache Spark clusters.  To learn more, see our docs on using OpenAI embeddings API and the SynapseML KNN model to create an LLM-based vector search engine directly on your spark cluster. Finally, the new OpenAIChatCompletion transformer allows users to submit large quantities of chat-based prompts to ChatGPT, enabling parallel inference of thousands of conversations at a time. We hope you find the new OpenAI integrations useful for building your next intelligent application.


 


Simple Deep Learning


SynapseML v0.11 introduces a new Simple deep learning package that allows for the training of custom text and deep vision classifiers with only a few lines of code. This package integrates the power of distributed deep network training with PytorchLightning with the simple and easy APIs of SynapseML. The new API allows users to fine-tune visual foundation models from torchvision as well as a variety of state-of-the-art text backbones from HuggingFace.


 


Here’s a quick example showing how to fine-tune custom vision networks:


 

from synapse.ml.dl import DeepVisionClassifier

train_df = spark.createDataframe([
    ("PATH_TO_IMAGE_1.jpg", 1),
    ("PATH_TO_IMAGE_2.jpg", 2)
], ["image", "label"])

deep_vision_classifier = DeepVisionClassifier(
    backbone="resnet50",
    num_classes=2,
    batch_size=16,
    epochs=2,
)

deep_vision_model = deep_vision_classifier.fit(train_df)

 


 


Keep an eye out with upcoming new releases of SynapseML featuring additional simple deep-learning algorithms that will make it easier than ever to train and deploy models at scale.


 


LightGBM v2


LightGBM is one of the most used features of SynapseML and we heard your feedback on better performance! SynapseML v0.11 introduces a completely refactored integration between LightGBM and Spark, called LightGBM v2. This integration aims for high performance by introducing a variety of new streaming APIs in the core LightGBM library to enable fast and memory-efficient data sharing between spark and LightGBM. In particular, the new “Streaming execution mode” has a >10x lower memory footprint than earlier versions of SynapseML yielding fewer memory issues and faster training. Best of all, you can use the new mode by just passing a single extra flag to your existing LightGBM models in SynapseML.


 


ONNX Model Hub


SynapseML supports a variety of new deep learning integrations with the ONNX runtime for fast, hardware-accelerated inference in all of the SynapseML languages (Scala, Java, Python, R, and .NET).  In version 0.11 we add support for the new ONNX model hub, which is an open collection of state-of-the-art pre-trained ONNX models that can be quickly downloaded and embedded into spark pipelines. This allowed us to completely deprecate and remove our old dependence on the CNTK deep learning library.  


 


To learn more about how you can embed deep networks into Spark pipelines, check out our ONNX episode in the new SynapseML video series:


 


 


Causal Learning


SynapseML v0.11 introduces a new package for causal learning that can help businesses and policymakers make more informed decisions. When trying to understand the impact of a “treatment” or intervention on an outcome, traditional approaches like correlation analysis or prediction models fall short as they do not necessarily establish causation. Causal inference aims to overcome these shortcomings by bridging the gap between prediction and decision-making. SynapseML’s causal learning package implements a technique called “Double machine learning”, which allows us to estimate treatment effects without data from controlled experiments. Unlike regression-based approaches, this approach can model non-linear relationships between confounders, treatment, and outcome. Users can run the DoubleMLEstimator using a simple code snippet like the one below:


 

from pyspark.ml.classification import LogisticRegression
from synapse.ml.causal import DoubleMLEstimator

dml = (DoubleMLEstimator()
      .setTreatmentCol("Treatment")
      .setTreatmentModel(LogisticRegression())
      .setOutcomeCol("Outcome")
      .setOutcomeModel(LogisticRegression())
      .setMaxIter(20))

dmlModel = dml.fit(dataset)

 


 


For more information, be sure to check out Dylan Wang’s guided tour of the DoubleMLEstimator on the SynapseML video series:


 


Vowpal Wabbit v2


Finally, SynapseML v0.11 introduces Vowpal Wabbit v2, the second-generation integration between the Vowpal Wabbit (VW) online optimization library and Apache Spark. With this update, users can work with Vowpal wabbit data directly using the new “VowpalWabbitGeneric” model. This makes working with Spark easier for existing VW users. This more direct integration also adds support for new cost functions and use cases including “multi-class” and “cost-sensitive one against all” problems. The update also introduces a new progressive validation strategy and a new Contextual Bandit Offline policy evaluation notebook to demonstrate how to evaluate VW models on large datasets.


 


Conclusion


In conclusion, we are thrilled to share the new SynapseML library with you with you and hope you will find that it simplifies your distributed machine learning pipelines.  This blog only covered the highlights, so be sure to check out the full release notes for all the updates and new features. Whether you are working with large language models, training custom classifiers, or performing causal inference, SynapseML makes it easier and faster to develop and deploy machine learning models at scale.


 


Learn more


Como criar uma extensão customizada para o Azure DevOps

Como criar uma extensão customizada para o Azure DevOps

This article is contributed. See the original author and article here.

Como criar uma extensão customizada para o Azure DevOps


Em alguns casos, é necessário criar uma extensão personalizada para o Azure DevOps, seja para adicionar funcionalidades que não estão disponíveis nativamente ou para modificar alguma funcionalidade existente que não atenda às necessidades do projeto. Neste artigo, mostraremos como criar uma extensão personalizada para o Azure DevOps e como publicá-la no Marketplace do Azure DevOps.


Antes de começar certifique:



  • Ter uma conta no Azure DevOps. Caso ainda não tenha uma, você pode criar uma seguindo as instruções disponíveis aqui.

  • Ter um editor de código instalado, como o Visual Studio Code, que pode ser baixado em code.visualstudio.com.

  • Ter a versão LTS do Node.js instalada, disponível para download em, nodejs.org. Ter o compilador de TypeScript instalado, sendo a versão recomendada 4.0.2 ou superior. Ele pode ser instalado via npm em npmjs.com.

  • Ter o CLI do TFX instalado, sendo a versão recomendada 0.14.0 ou superior. Ele pode ser instalado globalmente via npm com o comando npm i -g tfx-cli ou conferindo mais detalhes em TFX-CLI npm i -g tfx-cli.


Preparando o ambiente de desenvolvimento




  1. Crie uma pasta para a extensão, por exemplo, my-extension e dentro desta pasta crie a uma subpasta, por exemplo, task.




  2. Abra o terminal na pasta criada e execute o comando npm init -y, o parâmetro -y é para aceitar todas as opções padrão. Você vai notar que foi criado um arquivo chamado package.json e nele estão as informações da extensão.


        {
    “name”: “my-extension”,
    “version”: “1.0.0”,
    “description”: “”,
    “main”: “index.js”,
    “scripts”: {
    “build”: “tsc ./index.ts”,
    },
    “keywords”: [],
    “author”: “”,
    “license”: “ISC”
    }



  3. Adicione a azure-pipelines-task-lib como dependência da extensão, execute o comando npm i azure-pipelines-task-lib –save-dev.




  4. Adicione também as tipificações do TypeScript, execute o comando npm i @types/node –save-dev e npm i @types/q –save-dev.




  5. Crie um arquivo .gitignore na pasta raiz da extensão e adicione o seguinte conteúdo:


    node_modules



  6. Instale o compilador de TypeScript, execute o comando npm i typescript –save-dev.




  7. Crie um arquivo tsconfig.json na pasta raiz da extensão e adicione o seguinte conteúdo:


        {
    “compilerOptions”: {
    “target”: “es6”, /* Specify ECMAScript target version: ‘ES3’ (default), ‘ES5’, ‘ES2015’, ‘ES2016’, ‘ES2017’, ‘ES2018’, ‘ES2019’, ‘ES2020’, or ‘ESNEXT’. */
    “module”: “commonjs”, /* Specify module code generation: ‘none’, ‘commonjs’, ‘amd’, ‘system’, ‘umd’, ‘es2015’, ‘es2020’, or ‘ESNext’. */
    “strict”: true, /* Enable all strict type-checking options. */
    “esModuleInterop”: true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies ‘allowSyntheticDefaultImports’. */
    “skipLibCheck”: true, /* Skip type checking of declaration files. */
    “forceConsistentCasingInFileNames”: true /* Disallow inconsistently-cased references to the same file. */
    }
    }



  8. Crie um arquivo chamado vss-extension.json na pasta raiz da extensão my-extension e adicione o seguinte conteúdo:


        {
    “manifestVersion”: 1,
    “id”: “<>”,
    “version”: “1.0.0”,
    “publisher”: “<>”,
    “name”: “My Extension”,
    “description”: “My Extension”,
    “public”: false,
    “categories”: [
    “Azure Pipelines”
    ],
    “targets”: [
    {
    “id”: “Microsoft.VisualStudio.Services”
    }
    ],
    “icons”: {
    “default”: “images/icon.png”
    },
    “files”: [
    {
    “path”: “task”
    }
    ],
    “contributions”: [
    {
    “id”: “my-extension”,
    “description”: “My Extension”,
    “type”: “ms.vss-distributed-task.task”,
    “targets”: [
    “ms.vss-distributed-task.tasks”
    ],
    “properties”: {
    “name”: “my-extension”
    }
    }
    ]
    }

    Substitua o <> por ID único de cada extensão, você pode gerar um ID aqui. Substitua o <> pelo publisher ID criado no passo 1 da etapa de publish.




  9. Na pasta raiz da sua extensão my-extension, crie uma pasta chamada images e adicione uma imagem chamada icon.png com o tamanho de 128×128 pixels. Essa imagem será usada como ícone da sua extensão no Marketplace.




Criando a extensão


Depois de configurar o ambiente, você pode criar a extensão.




  1. Na pasta task crie um arquivo chamado task.json e adicione o seguinte conteúdo:


        {
    “$schema”: “https://raw.githubusercontent.com/Microsoft/azure-pipelines-task-lib/master/tasks.schema.json”,
    “id”: “<>”,
    “name”: “My Extension”,
    “friendlyName”: “My Extension”,
    “description”: “My Extension”,
    “helpMarkDown”: “”,
    “category”: “Utility”,
    “visibility”: [
    “Build”,
    “Release”
    ],
    “author”: “Your Name”,
    “version”: {
    “Major”: 1,
    “Minor”: 0,
    “Patch”: 0
    },
    “groups”: [],
    “inputs”: [],
    “execution”: {
    “Node16”: {
    “target”: “index.js”
    }
    }
    }

    Substitua o <> pelo mesmo GUID gerado no passo 8 da etapa de preparação de ambiente de desenvolvimento.


    Esse arquivo descreve a extensão que será executada no pipeline. Nesse caso, a extensão ainda não faz nada, mas você pode adicionar os inputs e a lógica para executar qualquer coisa.




  2. Na sequência crie um arquivo chamado index.js e adicione o seguinte conteúdo:


        const tl = require(‘azure-pipelines-task-lib/task’);

    async function run() {
    try {
    tl.setResult(tl.TaskResult.Succeeded, ‘My Extension Succeeded!’);
    }
    catch (err) {
    if (err instanceof Error) {
    tl.setResult(tl.TaskResult.Failed, err.message);
    }
    }
    }

    run();


    Esse arquivo é o responsável por executar a extensão. Nesse caso, ele apenas retorna uma mensagem de sucesso. Você pode adicionar a lógica para executar qualquer coisa.




  3. Adicione na pasta task uma imagem chamada icon.png com o tamanho de 32×32 pixels. Essa imagem será usada como ícone da sua extensão no Azure Pipelines.




  4. No terminal, execute o comando tsc, para compilar o código Typescript para Javascript. Esse comando irá gerar um arquivo chamado index.js na pasta task.




  5. Para executar a extensão localmente, execute o comando node index.js. Você deve ver a mensagem My Extension Succeeded!.


        C:tempmy-extensiontask> node index.js
    ##vso[task.debug]agent.TempDirectory=undefined
    ##vso[task.debug]agent.workFolder=undefined
    ##vso[task.debug]loading inputs and endpoints
    ##vso[task.debug]loading INPUT_CLEANTARGETFOLDER
    ##vso[task.debug]loading INPUT_CLIENTID
    ##vso[task.debug]loading INPUT_CLIENTSECRET
    ##vso[task.debug]loading INPUT_CONFLICTBEHAVIOUR
    ##vso[task.debug]loading INPUT_CONTENTS
    ##vso[task.debug]loading INPUT_DRIVEID
    ##vso[task.debug]loading INPUT_failOnEmptySource
    ##vso[task.debug]loading INPUT_FLATTENFOLDERS
    ##vso[task.debug]loading INPUT_SOURCEFOLDER
    ##vso[task.debug]loading INPUT_TARGETFOLDER
    ##vso[task.debug]loading INPUT_TENANTID
    ##vso[task.debug]loaded 11
    ##vso[task.debug]Agent.ProxyUrl=undefined
    ##vso[task.debug]Agent.CAInfo=undefined
    ##vso[task.debug]Agent.ClientCert=undefined
    ##vso[task.debug]Agent.SkipCertValidation=undefined
    ##vso[task.debug]task result: Succeeded
    ##vso[task.complete result=Succeeded;]My Extension Succeeded!
    C:tempmy-extensiontask>



Publicando a extensão no Marketplace


Quando a sua extensão estiver pronta, você pode publicá-la no Marketplace. Para isso será necessário criar um editor de extensão no Marketplace.




  1. Acesse o Marketplace e clique em Publish Extension. Após fazer o login, você será redirecionado para a página de criação de um editor de extensão. Preencha os campos e clique em Create.


    Criando um editor de extensão




  2. No terminal execute o comando tfx extension create –manifest-globs vss-extension.json, na pasta My-Extension. Esse comando irá gerar um arquivo chamado publishID-1.0.0.vsix, que é o arquivo que será publicado no Marketplace.


    CreateExtension




  3. Acesse a página de publicação de extensão no Marketplace e clique New extension e seguida Azure DevOps. Selecione o arquivo my-extension-1.0.0.vsix e clique em Upload.


    UploadExtension


    Se tudo ocorrer bem, você verá algo como a imagem abaixo.


    ExtensionPublished




  4. Com a extensão publicada, será necessário compartilhá-la com a sua organização. Para isso, clique no menu de contexto da extensão e clique em Share/UnShare.


    ShareExtension


    Clique em + Organization.


    ShareExtension1


    E digite o nome da sua Organização, ao clicar fora da caixa de digitação a validação é feita e o compartilhamento é realizado.


    ShareExtension2




Instalando a extensão na sua organização


Após publicar a extensão no Marketplace, você pode instalá-la na sua organização, para isso siga os passos abaixo.




  1. Clique no menu de contexto da extensão e clique em View Extension.


    InstallExtension


    Você verá algo como a imagem abaixo.


    InstallExtension1




  2. Clique em Get it free.




  3. Verifique se sua organização está selecionada e clique em Install.


    InstallExtension2


    Se a instalação ocorrer tudo bem, você verá algo como a imagem abaixo.


    InstallExtension3


    Após a instalação, você verá a extensão na lista de extensões instaladas e poderá ser utilizada nos seus pipelines.




Conclusão


O uso de extensões customizadas no Azure DevOps desbloqueiam funcionalidades que não estão disponíveis. Neste artigo, você aprendeu como criar uma extensão customizada e como publicá-la no Marketplace. Espero que tenha gostado e que possa aplicar o conhecimento adquirido em seus projetos.


Referências



  1. Criar uma organização

  2. Referência de manifesto de extensão

  3. Build/Release Task Exemplos

  4. Extensões de pacote e publicação